Michael.Kaiser@InfraServ.Gendorf.de
2007-Aug-07 09:07 UTC
AW: [Samba] Probs to "make" Samba-3.0.25b
Hello List, is there really nobody out there who could give me a tip to solve the issue? Thanks a lot. Mit freundlichen Gr??en Michael Kaiser Business Unit IT-Services Network Solutions InfraServ GmbH & Co. Gendorf KG Industriepark Werk GENDORF> -----Urspr?ngliche Nachricht----- > Von: > samba-bounces+michael.kaiser=infraserv.gendorf.de@lists.samba. > org > [mailto:samba-bounces+michael.kaiser=infraserv.gendorf.de@list > s.samba.org] Im Auftrag von Michael.Kaiser@InfraServ.Gendorf.de > Gesendet: Freitag, 3. August 2007 08:16 > An: samba@lists.samba.org > Betreff: [Samba] Probs to "make" Samba-3.0.25b > > > Hello List, > > I`m up to Install Samba 3.0.25b on a SuSE 8.1 Server. > Samba 3.0.14a is already successfully installed and should be updated. > > By "make" the bins i get following error: > > ------------------cut----------------------- > gilbi:/usr/src/tpe/samba-3.0.25b/source # make > Using FLAGS = -O -D_SAMBA_BUILD_=3 > -I/usr/src/tpe/samba-3.0.25b/source/iniparser/src -Iinclude > -I./include -I. -I. -I./lib/replace -I./lib/talloc > -I./tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H > -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE > -I/usr/src/tpe/samba-3.0.25b/source/lib -D_SAMBA_BUILD_=3 > PICFLAG = -fPIC > LIBS = -lcrypt -lcap -lresolv -lresolv -lnsl -ldl > LDFLAGS = > DYNEXP = -Wl,--export-dynamic > LDSHFLAGS = -shared -Wl,-Bsymbolic -Wl,--allow-shlib-undefined > SHLIBEXT = so > SONAMEFLAG = -Wl,-soname> Generating smbd/build_options.c > Building include/proto.h > creating /usr/src/tpe/samba-3.0.25b/source/include/proto.h > Building include/build_env.h > creating /usr/src/tpe/samba-3.0.25b/source/nsswitch/winbindd_proto.h > creating /usr/src/tpe/samba-3.0.25b/source/web/swat_proto.h > creating /usr/src/tpe/samba-3.0.25b/source/client/client_proto.h > creating /usr/src/tpe/samba-3.0.25b/source/utils/net_proto.h > creating /usr/src/tpe/samba-3.0.25b/source/utils/ntlm_auth_proto.h > Compiling dynconfig.c > In file included from lib/replace/system/filesys.h:33, > from include/includes.h:104, > from > /usr/src/tpe/samba-3.0.25b/source/dynconfig.c:21: > /usr/include/sys/mount.h:36: parse error before numeric constant > /usr/include/sys/mount.h:52: parse error before numeric > constant The following command failed: > gcc -O -D_SAMBA_BUILD_=3 > -I/usr/src/tpe/samba-3.0.25b/source/iniparser/src -Iinclude > -I./include -I. -I. -I./lib/replace -I./lib/talloc > -I./tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H > -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE > -I/usr/src/tpe/samba-3.0.25b/source/lib -D_SAMBA_BUILD_=3 > -DCONFIGFILE="/usr/local/samba/lib/smb.conf" > -DSBINDIR="/usr/local/samba/sbin" > -DBINDIR="/usr/local/samba/bin" > -DLMHOSTSFILE="/usr/local/samba/lib/lmhosts" > -DSWATDIR="/usr/local/samba/swat" > -DLOCKDIR="/usr/local/samba/var/locks" > -DPIDDIR="/usr/local/samba/var/locks" > -DLIBDIR="/usr/local/samba/lib" > -DLOGFILEBASE="/usr/local/samba/var" -DSHLIBEXT="so" > -DCONFIGDIR="/usr/local/samba/lib" > -DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd" > -DPRIVATE_DIR="/usr/local/samba/private" -fPIC -c > /usr/src/tpe/samba-3.0.25b/source/dynconfig.c -o dynconfig.o > make: *** [dynconfig.o] Error 1 > ------------------cut----------------------- > > Do you know about this issue? > > Thanks a lot! > > Mit freundlichen Gr??en > > Michael Kaiser > Business Unit IT-Services > Network Solutions > InfraServ GmbH & Co. Gendorf KG > Industriepark Werk GENDORF > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba >
Hello Herr Kaiser, I really don't know, which part of the configuration or auto-header generator is responsible - but I would assume, that "linux/fs.h" is somehow included before "sys/mount.h". Perhaps it's a simple workaround to delete one of these include options (maybe comment out HAVE_SYS_MOUNT_H in config.h). Hope, that helps, Martin Michael.Kaiser@InfraServ.Gendorf.de schrieb:> Hello List, > > is there really nobody out there who could give me a tip to solve the issue? > > Thanks a lot.[...]>> By "make" the bins i get following error: >>[...]>> Compiling dynconfig.c >> In file included from lib/replace/system/filesys.h:33, >> from include/includes.h:104, >> from >> /usr/src/tpe/samba-3.0.25b/source/dynconfig.c:21: >> /usr/include/sys/mount.h:36: parse error before numeric constant >> /usr/include/sys/mount.h:52: parse error before numeric >> constant The following command failed:[...]
<Michael.Kaiser <at> InfraServ.Gendorf.de> writes:> > Hello List, > > > > I`m up to Install Samba 3.0.25b on a SuSE 8.1 Server. > > Samba 3.0.14a is already successfully installed and should be updated. > > > > By "make" the bins i get following error: > > > > ------------------cut----------------------- > > gilbi:/usr/src/tpe/samba-3.0.25b/source # make > > Using FLAGS = -O -D_SAMBA_BUILD_=3 > > -I/usr/src/tpe/samba-3.0.25b/source/iniparser/src -Iinclude > > -I./include -I. -I. -I./lib/replace -I./lib/talloc > > -I./tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H > > -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE > > -I/usr/src/tpe/samba-3.0.25b/source/lib -D_SAMBA_BUILD_=3 > > PICFLAG = -fPIC > > LIBS = -lcrypt -lcap -lresolv -lresolv -lnsl -ldl > > LDFLAGS = > > DYNEXP = -Wl,--export-dynamic > > LDSHFLAGS = -shared -Wl,-Bsymbolic -Wl,--allow-shlib-undefined > > SHLIBEXT = so > > SONAMEFLAG = -Wl,-soname> > Generating smbd/build_options.c > > Building include/proto.h > > creating /usr/src/tpe/samba-3.0.25b/source/include/proto.h > > Building include/build_env.h > > creating /usr/src/tpe/samba-3.0.25b/source/nsswitch/winbindd_proto.h > > creating /usr/src/tpe/samba-3.0.25b/source/web/swat_proto.h > > creating /usr/src/tpe/samba-3.0.25b/source/client/client_proto.h > > creating /usr/src/tpe/samba-3.0.25b/source/utils/net_proto.h > > creating /usr/src/tpe/samba-3.0.25b/source/utils/ntlm_auth_proto.h > > Compiling dynconfig.c > > In file included from lib/replace/system/filesys.h:33, > > from include/includes.h:104, > > from > > /usr/src/tpe/samba-3.0.25b/source/dynconfig.c:21: > > /usr/include/sys/mount.h:36: parse error before numeric constant > > /usr/include/sys/mount.h:52: parse error before numeric > > constant The following command failed: > > gcc -O -D_SAMBA_BUILD_=3 > > -I/usr/src/tpe/samba-3.0.25b/source/iniparser/src -Iinclude > > -I./include -I. -I. -I./lib/replace -I./lib/talloc > > -I./tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H > > -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE > > -I/usr/src/tpe/samba-3.0.25b/source/lib -D_SAMBA_BUILD_=3 > > -DCONFIGFILE="/usr/local/samba/lib/smb.conf" > > -DSBINDIR="/usr/local/samba/sbin" > > -DBINDIR="/usr/local/samba/bin" > > -DLMHOSTSFILE="/usr/local/samba/lib/lmhosts" > > -DSWATDIR="/usr/local/samba/swat" > > -DLOCKDIR="/usr/local/samba/var/locks" > > -DPIDDIR="/usr/local/samba/var/locks" > > -DLIBDIR="/usr/local/samba/lib" > > -DLOGFILEBASE="/usr/local/samba/var" -DSHLIBEXT="so" > > -DCONFIGDIR="/usr/local/samba/lib" > > -DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd" > > -DPRIVATE_DIR="/usr/local/samba/private" -fPIC -c > > /usr/src/tpe/samba-3.0.25b/source/dynconfig.c -o dynconfig.o > > make: *** [dynconfig.o] Error 1 > > ------------------cut----------------------- > > > > Do you know about this issue? > > > > Thanks a lot! > > > > Mit freundlichen Gr??en > > > > Michael Kaiser > > Business Unit IT-Services > > Network Solutions > > InfraServ GmbH & Co. Gendorf KG > > Industriepark Werk GENDORF > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: https://lists.samba.org/mailman/listinfo/samba > >Try the following patch: ========= cut =============--- source/include/includes.h.orig 2007-08-19 10:15:50.000000000 +1000 +++ source/include/includes.h 2007-08-19 10:15:57.000000000 +1000 @@ -99,9 +99,9 @@ #endif #endif /* RELIANTUNIX */ -#include "system/capability.h" #include "system/dir.h" #include "system/filesys.h" +#include "system/capability.h" #include "system/glob.h" #include "system/iconv.h" #include "system/locale.h" ========= cut ============= I had the same problem on Slackware 11.0 with Freerock Gnome installed. Basically it seemed to be some sort of incompatibility between <sys/capability.h> (included by "system/capability.h") and <sys/mount.h> (included from "system/filesys.h". However if capability.h is included afer "system/filesys.h", then it seems to work. Leigh.