Hi Jerry,

You wrote:

> What exactly fails to compile?  I've tried on SunOS5.9 with gcc 4.0.0
> and things are ok.  I'm upgrading to 4.0.1 now.

I believe it has to do with having Kerberos (in my instance the
Heimdal package) installed. Then I pass this configure line:

./configure --prefix=/usr \
            --sysconfdir=/etc \
            --localstatedir=/var \
            --with-piddir=/var/run \
            --with-fhs \
            --with-smbmount \
            --with-pam \
            --with-smbwrapper \
            --with-pam_smbpass \
            --with-python=python \

Which ends up with this result after issuing 'make':

Using FLAGS
=  -O -D_SAMBA_BUILD_  -Iinclude -I/home/rml/build/samba-3.0.20/source/include 
-I/home/rml/build/samba-3.0.20/source/ubi
qx -I/home/rml/build/samba-3.0.20/source/smbwrapper -I. -D_LARGEFILE64_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/ho
me/rml/build/samba-3.0.20/source
      LIBS = -lcrypt -lresolv -lnsl -ldl
      LDSHFLAGS = -shared -Wl,-Bsymbolic -Wl,--allow-shlib-undefined  
-Wl,-rpath,/usr/lib
      LDFLAGS = -Wl,-rpath,/usr/lib
      PIE_CFLAGS = -fPIE
      PIE_LDFLAGS = -pie
Generating smbd/build_options.c
Building include/proto.h
creating /home/rml/build/samba-3.0.20/source/include/proto.h
Building include/wrepld_proto.h
creating /home/rml/build/samba-3.0.20/source/include/wrepld_proto.h
Building include/build_env.h
creating /home/rml/build/samba-3.0.20/source/nsswitch/winbindd_proto.h
creating /home/rml/build/samba-3.0.20/source/web/swat_proto.h
creating /home/rml/build/samba-3.0.20/source/client/client_proto.h
creating /home/rml/build/samba-3.0.20/source/utils/net_proto.h
creating /home/rml/build/samba-3.0.20/source/utils/ntlm_auth_proto.h
Compiling dynconfig.c
In file included from include/includes.h:452,
                 from dynconfig.c:21:
/usr/include/krb5.h:660: error: stray '#' in program
/usr/include/krb5.h:660: error: syntax error before 
'DONT_USE_CPLUSPLUS_RESERVED_NAMES'
In file included from /usr/include/krb5.h:750,
                 from include/includes.h:452,
                 from dynconfig.c:21:
/usr/include/krb5-protos.h:1750: error: syntax error before 
'krb5_get_init_creds_opt'
/usr/include/krb5-protos.h:1760: error: syntax error before 
'krb5_get_init_creds_opt'
/usr/include/krb5-protos.h:1770: error: syntax error before 
'krb5_get_init_creds_opt'
/usr/include/krb5-protos.h:1775: error: syntax error before 
'krb5_get_init_creds_opt'
/usr/include/krb5-protos.h:1778: error: syntax error before '*' token
/usr/include/krb5-protos.h:1781: error: syntax error before '*' token
/usr/include/krb5-protos.h:1785: error: syntax error before '*' token
/usr/include/krb5-protos.h:1790: error: syntax error before '*' token
/usr/include/krb5-protos.h:1798: error: syntax error before 
'krb5_get_init_creds_opt'
/usr/include/krb5-protos.h:1802: error: syntax error before '*' token
/usr/include/krb5-protos.h:1808: error: syntax error before '*' token
/usr/include/krb5-protos.h:1814: error: syntax error before 
'krb5_get_init_creds_opt'
/usr/include/krb5-protos.h:1821: error: syntax error before 
'krb5_get_init_creds_opt'
/usr/include/krb5-protos.h:1827: error: syntax error before 
'krb5_get_init_creds_opt'
/usr/include/krb5-protos.h:1838: error: syntax error before '*' token
/usr/include/krb5-protos.h:1844: error: syntax error before '*' token
/usr/include/krb5-protos.h:1849: error: syntax error before '*' token
/usr/include/krb5-protos.h:1854: error: syntax error before '*' token
/usr/include/krb5-protos.h:1859: error: syntax error before '*' token
/usr/include/krb5-protos.h:1872: error: syntax error before 
'krb5_get_init_creds_opt'
make: *** [dynconfig.o] Error 1

=====================================================================================
As I've mentioned, I simply comment out the offending part and it
compiles perfect. Here's that patch I use to comment out the bad
stuff.

[EMAIL PROTECTED]: ~/build > cat Installed/samba*patch
--- samba-3.0.20-orig/source/include/includes.h 2005-07-28 13:19:49.000000000 
+0000
+++ samba-3.0.20/source/include/includes.h      2005-09-04 13:45:01.000000000 
+0000
@@ -25,6 +25,7 @@
 #include "config.h"
 #endif

+/*
 #ifndef __cplusplus
 #define class #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
 #define private #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
@@ -36,6 +37,7 @@
 #define delete #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
 #define friend #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
 #endif
+*/

 #include "local.h"


I hope this information is helpful. BTW - It could very well be
an issue with the Heimdal package, though in every other version of
Samba before 3.0.20 (this is where the change to your includes.h
file has been entered), Samba compiled perfectly without the patch.

Let me know if there's anything more I can provide you.

--
Randy


-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to