[Samba] Re: AW: Probs to

Leigh Wedding leigh.wedding at telstra.com
Sun Aug 19 07:56:25 GMT 2007


 <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.





More information about the samba mailing list