[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Heimdal PKINIT complile errors



New errors. New solution?
Tried with fedora and gentoo.
libtool 1.5.2-r7, automake 1.8.5-r1, autoconf 2.59-r5, db 4.1.25_p1-r4, 
gcc 3.3.4-r1, linux-2.6.9-gentoo-r8

------------------------------------------------------------------------
In file included from asn1_AlgorithmIdentifier.c:10:
rfc2459_asn1.h:34: error: syntax error before "uint16_t"
rfc2459_asn1.h:34: warning: no semicolon at end of struct or union
rfc2459_asn1.h:35: warning: type defaults to `int' in declaration of `heim_bmp_string'
rfc2459_asn1.h:35: warning: data definition has no type or storage class
rfc2459_asn1.h:39: error: syntax error before "uint32_t"
rfc2459_asn1.h:39: warning: no semicolon at end of struct or union
rfc2459_asn1.h:40: warning: type defaults to `int' in declaration of `heim_universal_string'
rfc2459_asn1.h:40: warning: data definition has no type or storage class
rfc2459_asn1.h:173: error: syntax error before "heim_universal_string"
rfc2459_asn1.h:173: warning: no semicolon at end of struct or union
rfc2459_asn1.h:173: warning: no semicolon at end of struct or union
rfc2459_asn1.h:175: error: syntax error before "bmpString"
rfc2459_asn1.h:175: warning: type defaults to `int' in declaration of `bmpString'
rfc2459_asn1.h:175: warning: data definition has no type or storage class
rfc2459_asn1.h:176: warning: type defaults to `int' in declaration of `u'
rfc2459_asn1.h:176: warning: data definition has no type or storage class
rfc2459_asn1.h:177: error: syntax error before '}' token
rfc2459_asn1.h:177: warning: type defaults to `int' in declaration of `DirectoryString'
rfc2459_asn1.h:177: warning: data definition has no type or storage class
rfc2459_asn1.h:179: warning: type defaults to `int' in declaration of `DirectoryString'
rfc2459_asn1.h:179: error: syntax error before '*' token
rfc2459_asn1.h:180: error: syntax error before "DirectoryString"
rfc2459_asn1.h:181: error: syntax error before '*' token
rfc2459_asn1.h:182: warning: type defaults to `int' in declaration of `DirectoryString'
rfc2459_asn1.h:182: error: syntax error before '*' token
rfc2459_asn1.h:183: warning: type defaults to `int' in declaration of `DirectoryString'
rfc2459_asn1.h:183: error: syntax error before '*' token
rfc2459_asn1.h:214: error: syntax error before "DirectoryString"
rfc2459_asn1.h:214: warning: no semicolon at end of struct or union
rfc2459_asn1.h:215: warning: type defaults to `int' in declaration of `AttributeTypeAndValue'
rfc2459_asn1.h:215: warning: data definition has no type or storage class
rfc2459_asn1.h:217: warning: type defaults to `int' in declaration of `AttributeTypeAndValue'
rfc2459_asn1.h:217: error: syntax error before '*' token
rfc2459_asn1.h:218: error: syntax error before "AttributeTypeAndValue"
rfc2459_asn1.h:219: error: syntax error before '*' token
rfc2459_asn1.h:220: warning: type defaults to `int' in declaration of `AttributeTypeAndValue'
rfc2459_asn1.h:220: error: syntax error before '*' token
rfc2459_asn1.h:221: warning: type defaults to `int' in declaration of `AttributeTypeAndValue'
rfc2459_asn1.h:221: error: syntax error before '*' token
rfc2459_asn1.h:230: error: syntax error before "AttributeTypeAndValue"
rfc2459_asn1.h:230: warning: no semicolon at end of struct or union
rfc2459_asn1.h:231: warning: type defaults to `int' in declaration of `RelativeDistinguishedName'
rfc2459_asn1.h:231: warning: data definition has no type or storage class
rfc2459_asn1.h:233: warning: type defaults to `int' in declaration of `RelativeDistinguishedName'
rfc2459_asn1.h:233: error: syntax error before '*' token
rfc2459_asn1.h:234: error: syntax error before "RelativeDistinguishedName"
rfc2459_asn1.h:235: error: syntax error before '*' token
rfc2459_asn1.h:236: warning: type defaults to `int' in declaration of `RelativeDistinguishedName'
rfc2459_asn1.h:236: error: syntax error before '*' token
rfc2459_asn1.h:237: warning: type defaults to `int' in declaration of `RelativeDistinguishedName'
rfc2459_asn1.h:237: error: syntax error before '*' token
rfc2459_asn1.h:246: error: syntax error before "RelativeDistinguishedName"
rfc2459_asn1.h:246: warning: no semicolon at end of struct or union
rfc2459_asn1.h:247: warning: type defaults to `int' in declaration of `RDNSequence'
rfc2459_asn1.h:247: warning: data definition has no type or storage class
rfc2459_asn1.h:249: warning: type defaults to `int' in declaration of `RDNSequence'
rfc2459_asn1.h:249: error: syntax error before '*' token
rfc2459_asn1.h:250: error: syntax error before "RDNSequence"
rfc2459_asn1.h:251: error: syntax error before '*' token
rfc2459_asn1.h:252: warning: type defaults to `int' in declaration of `RDNSequence'
rfc2459_asn1.h:252: error: syntax error before '*' token
rfc2459_asn1.h:253: warning: type defaults to `int' in declaration of `RDNSequence'
rfc2459_asn1.h:253: error: syntax error before '*' token
rfc2459_asn1.h:268: error: syntax error before "RDNSequence"
rfc2459_asn1.h:268: warning: no semicolon at end of struct or union
rfc2459_asn1.h:268: warning: no semicolon at end of struct or union
rfc2459_asn1.h:269: warning: type defaults to `int' in declaration of `u'
rfc2459_asn1.h:269: warning: data definition has no type or storage class
rfc2459_asn1.h:270: error: syntax error before '}' token
rfc2459_asn1.h:270: warning: type defaults to `int' in declaration of `Name'
rfc2459_asn1.h:270: warning: data definition has no type or storage class
rfc2459_asn1.h:272: warning: type defaults to `int' in declaration of `Name'
rfc2459_asn1.h:272: error: syntax error before '*' token
rfc2459_asn1.h:273: error: syntax error before "Name"
rfc2459_asn1.h:274: error: syntax error before '*' token
rfc2459_asn1.h:275: warning: type defaults to `int' in declaration of `Name'
rfc2459_asn1.h:275: error: syntax error before '*' token
rfc2459_asn1.h:276: warning: type defaults to `int' in declaration of `Name'
rfc2459_asn1.h:276: error: syntax error before '*' token
rfc2459_asn1.h:427: error: syntax error before "Name"
rfc2459_asn1.h:427: warning: no semicolon at end of struct or union
rfc2459_asn1.h:429: error: syntax error before "subject"
rfc2459_asn1.h:429: warning: type defaults to `int' in declaration of `subject'
rfc2459_asn1.h:429: warning: data definition has no type or storage class
rfc2459_asn1.h:434: error: syntax error before '}' token
rfc2459_asn1.h:434: warning: type defaults to `int' in declaration of `TBSCertificate'
rfc2459_asn1.h:434: warning: data definition has no type or storage class
rfc2459_asn1.h:436: warning: type defaults to `int' in declaration of `TBSCertificate'
rfc2459_asn1.h:436: error: syntax error before '*' token
rfc2459_asn1.h:437: error: syntax error before "TBSCertificate"
rfc2459_asn1.h:438: error: syntax error before '*' token
rfc2459_asn1.h:439: warning: type defaults to `int' in declaration of `TBSCertificate'
rfc2459_asn1.h:439: error: syntax error before '*' token
rfc2459_asn1.h:440: warning: type defaults to `int' in declaration of `TBSCertificate'
rfc2459_asn1.h:440: error: syntax error before '*' token
rfc2459_asn1.h:453: error: syntax error before "TBSCertificate"
rfc2459_asn1.h:453: warning: no semicolon at end of struct or union
rfc2459_asn1.h:456: error: syntax error before '}' token
rfc2459_asn1.h:456: warning: type defaults to `int' in declaration of `Certificate'
rfc2459_asn1.h:456: warning: data definition has no type or storage class
rfc2459_asn1.h:458: warning: type defaults to `int' in declaration of `Certificate'
rfc2459_asn1.h:458: error: syntax error before '*' token
rfc2459_asn1.h:459: error: syntax error before "Certificate"
rfc2459_asn1.h:460: error: syntax error before '*' token
rfc2459_asn1.h:461: warning: type defaults to `int' in declaration of `Certificate'
rfc2459_asn1.h:461: error: syntax error before '*' token
rfc2459_asn1.h:462: warning: type defaults to `int' in declaration of `Certificate'
rfc2459_asn1.h:462: error: syntax error before '*' token
rfc2459_asn1.h:471: error: syntax error before "Certificate"
rfc2459_asn1.h:471: warning: no semicolon at end of struct or union
rfc2459_asn1.h:472: warning: type defaults to `int' in declaration of `Certificates'
rfc2459_asn1.h:472: warning: data definition has no type or storage class
rfc2459_asn1.h:474: warning: type defaults to `int' in declaration of `Certificates'
rfc2459_asn1.h:474: error: syntax error before '*' token
rfc2459_asn1.h:475: error: syntax error before "Certificates"
rfc2459_asn1.h:476: error: syntax error before '*' token
rfc2459_asn1.h:477: warning: type defaults to `int' in declaration of `Certificates'
rfc2459_asn1.h:477: error: syntax error before '*' token
rfc2459_asn1.h:478: warning: type defaults to `int' in declaration of `Certificates'
rfc2459_asn1.h:478: error: syntax error before '*' token
rfc2459_asn1.h:571: error: syntax error before "Name"
rfc2459_asn1.h:571: warning: no semicolon at end of struct or union
rfc2459_asn1.h:571: warning: no semicolon at end of struct or union
rfc2459_asn1.h:575: error: syntax error before '}' token
rfc2459_asn1.h:575: warning: type defaults to `int' in declaration of `u'
rfc2459_asn1.h:575: warning: data definition has no type or storage class
rfc2459_asn1.h:576: error: syntax error before '}' token
rfc2459_asn1.h:576: warning: type defaults to `int' in declaration of `GeneralName'
rfc2459_asn1.h:576: warning: data definition has no type or storage class
rfc2459_asn1.h:578: warning: type defaults to `int' in declaration of `GeneralName'
rfc2459_asn1.h:578: error: syntax error before '*' token
rfc2459_asn1.h:579: error: syntax error before "GeneralName"
rfc2459_asn1.h:580: error: syntax error before '*' token
rfc2459_asn1.h:581: warning: type defaults to `int' in declaration of `GeneralName'
rfc2459_asn1.h:581: error: syntax error before '*' token
rfc2459_asn1.h:582: warning: type defaults to `int' in declaration of `GeneralName'
rfc2459_asn1.h:582: error: syntax error before '*' token
rfc2459_asn1.h:591: error: syntax error before "GeneralName"
rfc2459_asn1.h:591: warning: no semicolon at end of struct or union
rfc2459_asn1.h:592: warning: type defaults to `int' in declaration of `GeneralNames'
rfc2459_asn1.h:592: warning: data definition has no type or storage class
rfc2459_asn1.h:594: warning: type defaults to `int' in declaration of `GeneralNames'
rfc2459_asn1.h:594: error: syntax error before '*' token
rfc2459_asn1.h:595: error: syntax error before "GeneralNames"
rfc2459_asn1.h:596: error: syntax error before '*' token
rfc2459_asn1.h:597: warning: type defaults to `int' in declaration of `GeneralNames'
rfc2459_asn1.h:597: error: syntax error before '*' token
rfc2459_asn1.h:598: warning: type defaults to `int' in declaration of `GeneralNames'
rfc2459_asn1.h:598: error: syntax error before '*' token
rfc2459_asn1.h:725: error: syntax error before "GeneralName"
rfc2459_asn1.h:725: warning: no semicolon at end of struct or union
rfc2459_asn1.h:728: error: syntax error before '}' token
rfc2459_asn1.h:728: warning: type defaults to `int' in declaration of `GeneralSubtree'
rfc2459_asn1.h:728: warning: data definition has no type or storage class
rfc2459_asn1.h:730: warning: type defaults to `int' in declaration of `GeneralSubtree'
rfc2459_asn1.h:730: error: syntax error before '*' token
rfc2459_asn1.h:731: error: syntax error before "GeneralSubtree"
rfc2459_asn1.h:732: error: syntax error before '*' token
rfc2459_asn1.h:733: warning: type defaults to `int' in declaration of `GeneralSubtree'
rfc2459_asn1.h:733: error: syntax error before '*' token
rfc2459_asn1.h:734: warning: type defaults to `int' in declaration of `GeneralSubtree'
rfc2459_asn1.h:734: error: syntax error before '*' token
rfc2459_asn1.h:743: error: syntax error before "GeneralSubtree"
rfc2459_asn1.h:743: warning: no semicolon at end of struct or union
rfc2459_asn1.h:744: warning: type defaults to `int' in declaration of `GeneralSubtrees'
rfc2459_asn1.h:744: warning: data definition has no type or storage class
rfc2459_asn1.h:746: warning: type defaults to `int' in declaration of `GeneralSubtrees'
rfc2459_asn1.h:746: error: syntax error before '*' token
rfc2459_asn1.h:747: error: syntax error before "GeneralSubtrees"
rfc2459_asn1.h:748: error: syntax error before '*' token
rfc2459_asn1.h:749: warning: type defaults to `int' in declaration of `GeneralSubtrees'
rfc2459_asn1.h:749: error: syntax error before '*' token
rfc2459_asn1.h:750: warning: type defaults to `int' in declaration of `GeneralSubtrees'
rfc2459_asn1.h:750: error: syntax error before '*' token
rfc2459_asn1.h:761: error: syntax error before "GeneralSubtrees"
rfc2459_asn1.h:761: warning: no semicolon at end of struct or union
rfc2459_asn1.h:762: warning: type defaults to `int' in declaration of `excludedSubtrees'
rfc2459_asn1.h:762: warning: data definition has no type or storage class
rfc2459_asn1.h:763: error: syntax error before '}' token
rfc2459_asn1.h:763: warning: type defaults to `int' in declaration of `NameConstraints'
rfc2459_asn1.h:763: warning: data definition has no type or storage class
rfc2459_asn1.h:765: warning: type defaults to `int' in declaration of `NameConstraints'
rfc2459_asn1.h:765: error: syntax error before '*' token
rfc2459_asn1.h:766: error: syntax error before "NameConstraints"
rfc2459_asn1.h:767: error: syntax error before '*' token
rfc2459_asn1.h:768: warning: type defaults to `int' in declaration of `NameConstraints'
rfc2459_asn1.h:768: error: syntax error before '*' token
rfc2459_asn1.h:769: warning: type defaults to `int' in declaration of `NameConstraints'
rfc2459_asn1.h:769: error: syntax error before '*' token
In file included from asn1_AlgorithmIdentifier.c:12:
der.h:96: error: syntax error before "heim_universal_string"
der.h:98: error: syntax error before "heim_bmp_string"
der.h:136: warning: type defaults to `int' in declaration of `heim_universal_string'
der.h:136: error: syntax error before '*' token
der.h:138: warning: type defaults to `int' in declaration of `heim_bmp_string'
der.h:138: error: syntax error before '*' token
der.h:170: error: syntax error before '*' token
der.h:171: error: syntax error before '*' token
der.h:187: warning: type defaults to `int' in declaration of `heim_bmp_string'
der.h:187: error: syntax error before '*' token
der.h:188: warning: type defaults to `int' in declaration of `heim_universal_string'
der.h:188: error: syntax error before '*' token
der.h:199: warning: type defaults to `int' in declaration of `heim_universal_string'
der.h:199: error: syntax error before '*' token
der.h:200: warning: type defaults to `int' in declaration of `heim_bmp_string'
der.h:200: error: syntax error before '*' token
der.h:206: warning: type defaults to `int' in declaration of `heim_bmp_string'
der.h:206: error: syntax error before '*' token
der.h:207: warning: type defaults to `int' in declaration of `heim_universal_string'
der.h:207: error: syntax error before '*' token
make[3]: *** [asn1_AlgorithmIdentifier.lo] Error 1

Regards

/T

Daniel Kouril wrote:

>On Thu, Nov 18, 2004 at 01:51:54PM +0100, Ted Olsson wrote:
>  
>
>>gen.c:253: warning: implicit declaration of function `TAILQ_FOREACH'
>>gen.c:253: warning: nested extern declaration of `TAILQ_FOREACH'
>>gen.c:253: error: `members' undeclared (first use in this function)
>>gen.c:253: error: (Each undeclared identifier is reported only once
>>gen.c:253: error: for each function it appears in.)
>>gen.c:253: error: syntax error before '{' token
>>gen.c:256: warning: implicit declaration of function `TAILQ_NEXT'
>>gen.c:256: warning: nested extern declaration of `TAILQ_NEXT'
>>gen.c:256: warning: comparison between pointer and integer
>>    
>>
>
>I also had problems with undefined TAILQ_* macros. My debian woody seems
>to contain an older (?) version of /usr/include/sys/queue.h, where these
>definitions are missing. Try using the patch enclosed.
>
>Dan
>  
>
>------------------------------------------------------------------------
>
>--- heimdal-20041021/lib/asn1/gen_locl.h.orig	Thu Oct 21 14:22:19 2004
>+++ heimdal-20041021/lib/asn1/gen_locl.h	Thu Oct 21 14:37:01 2004
>@@ -54,6 +54,28 @@
> #include "asn1-common.h"
> #include "der.h"
> 
>+#define	TAILQ_EMPTY(head)	((head)->tqh_first == NULL)
>+
>+#define	TAILQ_FIRST(head)	((head)->tqh_first)
>+
>+#define TAILQ_FOREACH(var, head, field)					\
>+	for ((var) = TAILQ_FIRST((head));				\
>+	    (var);							\
>+	    (var) = TAILQ_NEXT((var), field))
>+
>+#define	TAILQ_FOREACH_REVERSE(var, head, headname, field)		\
>+	for ((var) = TAILQ_LAST((head), headname);			\
>+	    (var);							\
>+	    (var) = TAILQ_PREV((var), headname, field))
>+
>+#define	TAILQ_LAST(head, headname)					\
>+	(*(((struct headname *)((head)->tqh_last))->tqh_last))
>+
>+#define TAILQ_NEXT(elm, field)	((elm)->field.tqe_next)
>+
>+#define	TAILQ_PREV(elm, headname, field)				\
>+	(*(((struct headname *)((elm)->field.tqe_prev))->tqh_last))
>+	
> void generate_type (const Symbol *);
> void generate_constant (const Symbol *);
> void generate_type_encode (const Symbol *s);
>  
>