-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi everybodey, i can't compile 3.0.20 the following message occurs : Compiling dynconfig.c In file included from include/includes.h:452, ~ from dynconfig.c:21: /usr/local/heimdal-0.7/include/krb5.h:660: error: syntax error at '#' token /usr/local/heimdal-0.7/include/krb5.h:660: warning: no semicolon at end of struct or union /usr/local/heimdal-0.7/include/krb5.h:660: error: parse error before "DONT_USE_CPLUSPLUS_RESERVED_NAMES" /usr/local/heimdal-0.7/include/krb5.h:661: warning: data definition has no type or storage class In file included from /usr/local/heimdal-0.7/include/krb5.h:750, ~ from include/includes.h:452, ~ from dynconfig.c:21: /usr/local/heimdal-0.7/include/krb5-protos.h:1750: error: parse error before "krb5_get_init_creds_opt" /usr/local/heimdal-0.7/include/krb5-protos.h:1760: error: parse error before "krb5_get_init_creds_opt" /usr/local/heimdal-0.7/include/krb5-protos.h:1770: error: parse error before "krb5_get_init_creds_opt" /usr/local/heimdal-0.7/include/krb5-protos.h:1775: error: parse error before "krb5_get_init_creds_opt" /usr/local/heimdal-0.7/include/krb5-protos.h:1778: error: parse error before '*' Any hints from the community ? Greets Harry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) iD8DBQFDPlS37ttRafA1ej8RAoaEAKDHfzJJn083ZK2GCDR2yl6S8H2tQACfYr8O A1Rrr9xYcVgoH2qqk1XOigA=YQ7v -----END PGP SIGNATURE-----
Gerald (Jerry) Carter
2005-Oct-03 12:42 UTC
[Samba] Problems compiling 3.0.20a with heimdal 0.7
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Harry R?ter wrote: | Hi everybodey, | | i can't compile 3.0.20 the following message occurs : | | Compiling dynconfig.c | In file included from include/includes.h:452, | ~ from dynconfig.c:21: | /usr/local/heimdal-0.7/include/krb5.h:660: error: syntax error at '#' token | /usr/local/heimdal-0.7/include/krb5.h:660: warning: no semicolon at end | of struct or union | /usr/local/heimdal-0.7/include/krb5.h:660: error: parse error before | "DONT_USE_CPLUSPLUS_RESERVED_NAMES" | /usr/local/heimdal-0.7/include/krb5.h:661: warning: data definition has | no type or storage class | In file included from /usr/local/heimdal-0.7/include/krb5.h:750, | ~ from include/includes.h:452, | ~ from dynconfig.c:21: | /usr/local/heimdal-0.7/include/krb5-protos.h:1750: error: parse error | before "krb5_get_init_creds_opt" | /usr/local/heimdal-0.7/include/krb5-protos.h:1760: error: parse error | before "krb5_get_init_creds_opt" | /usr/local/heimdal-0.7/include/krb5-protos.h:1770: error: parse error | before "krb5_get_init_creds_opt" | /usr/local/heimdal-0.7/include/krb5-protos.h:1775: error: parse error | before "krb5_get_init_creds_opt" | /usr/local/heimdal-0.7/include/krb5-protos.h:1778: error: parse error | before '*' | | Any hints from the community ? It's the use of the C++ keywords in the Heimdal source code. Comment out these lines in samba/source/include/includes.h and you should be ok. /* comment out for working around heimdal build issues *. #if 0 # ifndef __cplusplus # define class #error DONT_USE_CPLUSPLUS_RESERVED_NAMES /* allow to build with newer heimdal releases */ /* #define private #error DONT_USE_CPLUSPLUS_RESERVED_NAMES */ # define public #error DONT_USE_CPLUSPLUS_RESERVED_NAMES # define protected #error DONT_USE_CPLUSPLUS_RESERVED_NAMES # define template #error DONT_USE_CPLUSPLUS_RESERVED_NAMES # define this #error DONT_USE_CPLUSPLUS_RESERVED_NAMES # define new #error DONT_USE_CPLUSPLUS_RESERVED_NAMES # define delete #error DONT_USE_CPLUSPLUS_RESERVED_NAMES # define friend #error DONT_USE_CPLUSPLUS_RESERVED_NAMES # endif #endif ciao, jerry ====================================================================Alleviating the pain of Windows(tm) ------- http://www.samba.org GnuPG Key ----- http://www.plainjoe.org/gpg_public.asc "There's an anonymous coward in all of us." --anonymous -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDQSbtIR7qMdg1EfYRAvvBAJ0Rh4c1wqfe6/jVTPPG0B2mrOs5qwCff+3Y qv7XFzbX8OaeXq2R62y/dGY=1aTX -----END PGP SIGNATURE-----
Harry, I had this problem as well: https://bugzilla.samba.org/show_bug.cgi?id=2923 The excellent response was: " -------- Additional Comment #2 From Guenther Deschner 2005-07-27 05:24 [reply] ------- As a quick hack for you build with 0.7 to succeed, you can just remove the #define private #error DONT_USE_CPLUSPLUS_RESERVED_NAMES in include/includes.h. We will work on this bug. " regards, Mike. Date: Sat, 01 Oct 2005 11:19:52 +0200 From: Harry R?ter <harry_rueter@gmx.de> Subject: [Samba] Problems compiling 3.0.20a with heimdal 0.7 To: samba@lists.samba.org Message-ID: <433E54B8.1080606@gmx.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi everybodey, i can't compile 3.0.20 the following message occurs : Compiling dynconfig.c In file included from include/includes.h:452, ~ from dynconfig.c:21: /usr/local/heimdal-0.7/include/krb5.h:660: error: syntax error at '#' token /usr/local/heimdal-0.7/include/krb5.h:660: warning: no semicolon at end of struct or union /usr/local/heimdal-0.7/include/krb5.h:660: error: parse error before "DONT_USE_CPLUSPLUS_RESERVED_NAMES" /usr/local/heimdal-0.7/include/krb5.h:661: warning: data definition has no type or storage class In file included from /usr/local/heimdal-0.7/include/krb5.h:750, ~ from include/includes.h:452, ~ from dynconfig.c:21: /usr/local/heimdal-0.7/include/krb5-protos.h:1750: error: parse error before "krb5_get_init_creds_opt" /usr/local/heimdal-0.7/include/krb5-protos.h:1760: error: parse error before "krb5_get_init_creds_opt" /usr/local/heimdal-0.7/include/krb5-protos.h:1770: error: parse error before "krb5_get_init_creds_opt" /usr/local/heimdal-0.7/include/krb5-protos.h:1775: error: parse error before "krb5_get_init_creds_opt" /usr/local/heimdal-0.7/include/krb5-protos.h:1778: error: parse error before '*' Any hints from the community ? Greets Harry
On Sat, Oct 01, 2005 at 11:19:52AM +0200, Harry R?ter wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi everybodey, > > i can't compile 3.0.20 the following message occurs : > > Compiling dynconfig.c > In file included from include/includes.h:452, > ~ from dynconfig.c:21: > /usr/local/heimdal-0.7/include/krb5.h:660: error: syntax error at '#' token > /usr/local/heimdal-0.7/include/krb5.h:660: warning: no semicolon at end > of struct or union > /usr/local/heimdal-0.7/include/krb5.h:660: error: parse error before > "DONT_USE_CPLUSPLUS_RESERVED_NAMES" > /usr/local/heimdal-0.7/include/krb5.h:661: warning: data definition has > no type or storage class > In file included from /usr/local/heimdal-0.7/include/krb5.h:750, > ~ from include/includes.h:452, > ~ from dynconfig.c:21: > /usr/local/heimdal-0.7/include/krb5-protos.h:1750: error: parse error > before "krb5_get_init_creds_opt" > /usr/local/heimdal-0.7/include/krb5-protos.h:1760: error: parse error > before "krb5_get_init_creds_opt" > /usr/local/heimdal-0.7/include/krb5-protos.h:1770: error: parse error > before "krb5_get_init_creds_opt" > /usr/local/heimdal-0.7/include/krb5-protos.h:1775: error: parse error > before "krb5_get_init_creds_opt" > /usr/local/heimdal-0.7/include/krb5-protos.h:1778: error: parse error > before '*' > > Any hints from the community ?Yes - this version of Heimdal isn't clean w.r.t. C++ keywords, and we insist on this in recent verions of Samba. You can remove this restriction by removing these lines : #ifndef __cplusplus #define class #error DONT_USE_CPLUSPLUS_RESERVED_NAMES #define private #error DONT_USE_CPLUSPLUS_RESERVED_NAMES #define public #error DONT_USE_CPLUSPLUS_RESERVED_NAMES #define protected #error DONT_USE_CPLUSPLUS_RESERVED_NAMES #define template #error DONT_USE_CPLUSPLUS_RESERVED_NAMES #define this #error DONT_USE_CPLUSPLUS_RESERVED_NAMES #define new #error DONT_USE_CPLUSPLUS_RESERVED_NAMES #define delete #error DONT_USE_CPLUSPLUS_RESERVED_NAMES #define friend #error DONT_USE_CPLUSPLUS_RESERVED_NAMES #endif from the top of include/includes.h Jeremy.