Configured and compiled : - heimdal-0.7.tar.gz - openldap-stable-20051018.tgz Then downloaded samba-latest and after this configure: nblor2:/home/ekita/kerberos/samba-3.0.20b/source # ./configure --prefix=/opt/samba-3.0.13 --with-ldap --with-ads --with-krb5 --with-pam --with-winbind SAMBA VERSION: 3.0.20b . . checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking sys/filio.h usability... Tried to make: nblor2:/home/ekita/kerberos/samba-3.0.20b/source # make Using FLAGS = -O -D_SAMBA_BUILD_ -I./popt -Iinclude -I/home/ekita/kerberos/samba-3.0.20b/source/include -I/home/ekita/kerberos/samba-3.0.20b/source/ubiqx -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/home/ekita/kerberos/samba-3.0.20b/source -I/home/ekita/kerberos/samba-3.0.20b/source/tdb LIBS = -lcrypt -lresolv -lnsl -ldl LDSHFLAGS = -shared -Wl,-Bsymbolic -Wl,--allow-shlib-undefined LDFLAGS = PIE_CFLAGS = PIE_LDFLAGS = Compiling dynconfig.c In file included from include/includes.h:452, from /home/ekita/kerberos/samba-3.0.20b/source/dynconfig.c:21: /usr/include/krb5.h:660: error: syntax error at '#' token /usr/include/krb5.h:660: error: parse error before "DONT_USE_CPLUSPLUS_RESERVED_NAMES" In file included from /usr/include/krb5.h:750, from include/includes.h:452, from /home/ekita/kerberos/samba-3.0.20b/source/dynconfig.c:21: /usr/include/krb5-protos.h:1750: error: parse error before "krb5_get_init_creds_opt" /usr/include/krb5-protos.h:1760: error: parse error before "krb5_get_init_creds_opt" /usr/include/krb5-protos.h:1770: error: parse error before "krb5_get_init_creds_opt" /usr/include/krb5-protos.h:1775: error: parse error before "krb5_get_init_creds_opt" /usr/include/krb5-protos.h:1778: error: parse error before '*' token /usr/include/krb5-protos.h:1781: error: parse error before '*' token /usr/include/krb5-protos.h:1785: error: parse error before '*' token /usr/include/krb5-protos.h:1790: error: parse error before '*' token /usr/include/krb5-protos.h:1798: error: parse error before "krb5_get_init_creds_opt" /usr/include/krb5-protos.h:1802: error: parse error before '*' token /usr/include/krb5-protos.h:1808: error: parse error before '*' token /usr/include/krb5-protos.h:1814: error: parse error before "krb5_get_init_creds_opt" /usr/include/krb5-protos.h:1821: error: parse error before "krb5_get_init_creds_opt" /usr/include/krb5-protos.h:1827: error: parse error before "krb5_get_init_creds_opt" /usr/include/krb5-protos.h:1838: error: parse error before '*' token /usr/include/krb5-protos.h:1844: error: parse error before '*' token /usr/include/krb5-protos.h:1849: error: parse error before '*' token /usr/include/krb5-protos.h:1854: error: parse error before '*' token /usr/include/krb5-protos.h:1859: error: parse error before '*' token /usr/include/krb5-protos.h:1872: error: parse error before "krb5_get_init_creds_opt" make: *** [dynconfig.o] Error 1 nblor2:/home/ekita/kerberos/samba-3.0.20b/source # Checked bugtrack and saw this happened on 3.0.20. Recurring problem?
See: http://www.mail-archive.com/blfs-dev@linuxfromscratch.org/msg02044.html
This is fixed in the latest heimdal-0.7 snapshot (heimdal-0.7-20051020), which is post 0.7.1. The check for reserved constant is (temporarily) disabled in 3.0.21pre1 and might be reactivated later.