RE: 3.0.20 compile failure

2005-09-21 Thread Randy McMurchy
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.0 
+
+++ samba-3.0.20/source/include/includes.h  2005-09-04 13:45:01.0 
+
@@ -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


Re: 3.0.20 compile failure

2005-09-21 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Randy McMurchy wrote:

 
 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.

Yeah.  It is a heimdal issue.  They are using reserved C++
keywords.  There was a change in Samba 3.0.20 to allow for
building VFS modules written in C++.  I'm pretty sure the
heimdal folks are aware of this.

I'm not going to change anything on our end just yet.



cheers, jerry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDMa9xIR7qMdg1EfYRAofgAJ0TuhtNtAdaEuAO0kE38if1y0JB6ACeMIRm
6HAei4aw7SoNWp0bFfE5Vog=
=lvDf
-END PGP SIGNATURE-
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: 3.0.20 compile failure

2005-09-21 Thread Randy McMurchy
Gerald (Jerry) Carter wrote these words on 09/21/05 14:07 CST:

 Yeah.  It is a heimdal issue.  They are using reserved C++
 keywords.  There was a change in Samba 3.0.20 to allow for
 building VFS modules written in C++.  I'm pretty sure the
 heimdal folks are aware of this.
 
 I'm not going to change anything on our end just yet.

At this point, I believe it to be best to go ahead and update the book
to the current Samba version (3.0.20) and I'll add the patch as a
required dependency if you have Heimdal installed.

Does this approach sound good to everyone?

-- 
Randy

rmlscsi: [GNU ld version 2.15.94.0.2 20041220] [gcc (GCC) 3.4.3]
[GNU C Library stable release version 2.3.4] [Linux 2.6.10 i686]
14:10:00 up 172 days, 13:43, 3 users, load average: 1.06, 0.90, 0.48
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: 3.0.20 compile failure

2005-09-21 Thread Bruce Dubbs
Randy McMurchy wrote:
 Gerald (Jerry) Carter wrote these words on 09/21/05 14:07 CST:
 
 
Yeah.  It is a heimdal issue.  They are using reserved C++
keywords.  There was a change in Samba 3.0.20 to allow for
building VFS modules written in C++.  I'm pretty sure the
heimdal folks are aware of this.

I'm not going to change anything on our end just yet.
 
 
 At this point, I believe it to be best to go ahead and update the book
 to the current Samba version (3.0.20) and I'll add the patch as a
 required dependency if you have Heimdal installed.
 
 Does this approach sound good to everyone?

Looks right to me.
  -- Bruce


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