vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I am having trouble compiling samba-3.0.25b on Slackware-11.0, this is the error message I get: ======================= Using FLAGS = -O2 -march=i486 -mtune=i686 -D_SAMBA_BUILD_=3 -I/ home/lwedding/prog/samba/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 -DLDAP_DEPRECATED -I/home/ lwedding/prog/samba/samba-3.0.25b/source/lib -D_SAMBA_BUILD_=3 PICFLAG = -fPIC LIBS = -lcrypt -lcap -lresolv -lresolv -lnsl -ldl LDFLAGS = -pie DYNEXP = -Wl,--export-dynamic LDSHFLAGS = -shared -Wl,-Bsymbolic SHLIBEXT = so SONAMEFLAG = -Wl,-soname= Compiling dynconfig.c In file included from ./lib/replace/system/filesys.h:33, from include/includes.h:104, from /home/lwedding/prog/samba/samba-3.0.25b/source/ dynconfig.c:21: /usr/include/sys/mount.h:36: error: syntax error before numeric constant /usr/include/sys/mount.h:52: error: syntax error before numeric constant The following command failed: gcc -O2 -march=i486 -mtune=i686 -D_SAMBA_BUILD_=3 -I/home/lwedding/ prog/samba/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 -DLDAP_DEPRECATED -I/home/lwedding/prog/samba/ samba-3.0.25b/source/lib -D_SAMBA_BUILD_=3 -DCONFIGFILE="/etc/samba/ smb.conf" -DSBINDIR="/usr/sbin" -DBINDIR="/usr/bin" -DLMHOSTSFILE="/ etc/samba/lmhosts" -DSWATDIR="/usr/share/swat" -DLOCKDIR="/var/cache/ samba" -DPIDDIR="/var/run" -DLIBDIR="/usr/lib/samba" -DLOGFILEBASE="/ var/log/samba" -DSHLIBEXT="so" -DCONFIGDIR="/etc/samba" - DSMB_PASSWD_FILE="/etc/samba/private/smbpasswd" -DPRIVATE_DIR="/etc/ samba/private" -fPIC -c /home/lwedding/prog/samba/samba-3.0.25b/source/ dynconfig.c -o dynconfig.o make: *** [dynconfig.o] Error 1 ======================= The last version of samba I have successfully compiled is samba-3.0.23d, I have had not success compiling any of the samba-3.0.25* versions. However samba-3.0.25a has been released as a patch for Slackware-11.0, so it seems it must be possible to compile it. Any clues or tips? Note some additional things I have installed, if that would make any difference: nss_ldap-255 openldap-2.3.37 kernel 2.6.20.7 Thanks, Leigh. |
| |||
| On Wed, 15 Aug 2007 19:29:27 -0700, leigh wrote: > I have had not success compiling any of the samba-3.0.25* versions. > However samba-3.0.25a has been released as a patch for Slackware-11.0, > so it seems it must be possible to compile it. Why are you trying to compile it? > Any clues or tips? Yes. Install the package/patch. No compiling needed. -- "Bother!" said Pooh, as Eyeore resisted his advances. |
| |||
| Dan C <youmustbejoking@lan.invalid> writes: > On Wed, 15 Aug 2007 19:29:27 -0700, leigh wrote: > > > I have had not success compiling any of the samba-3.0.25* versions. > > However samba-3.0.25a has been released as a patch for Slackware-11.0, > > so it seems it must be possible to compile it. > > Why are you trying to compile it? There is no samba-3.0.25b installation package/patch, the latest official package I could find is samba-3.0.25a! > > > Any clues or tips? > > Yes. Install the package/patch. No compiling needed. > > > -- > "Bother!" said Pooh, as Eyeore resisted his advances. > -- Leigh Wedding leigh.wedding@telstra.DELETE-this.com |
| |||
| On Thu, 16 Aug 2007 10:18:12 +0000, Leigh Wedding wrote: snip... > There is no samba-3.0.25b installation package/patch, the latest > official package I could find is samba-3.0.25a! > Yes, S12 has b, not S11. > >> > Any clues or tips? >> >> Yes. Install the package/patch. No compiling needed. >> Not wise mixing S12 packages on S11 due to new toolchain. mount.h, where your problem lies. should be investigated. Try this... (this is from an S12 installation) $ grep "usr/include/sys/mount.h" /var/log/packages/* /var/log/packages/glibc-2.5-i486-4:usr/include/sys/mount.h (this is from S11) /var/log/packages/glibc-2.3.6-i486-6:usr/include/sys/mount.h If it shows up in more than one package, you overwrote the glibc version. The lines with your error message It should be part of the glibc package. In addition, please look at the build script used and emulate it. Check for incompatibilities between your kernel and glibc with samba (see samba.org). S11 uses glibc 2.3.6 and S12 uses glibc 2.5. That could be affecting your results. Try downloading the S12 build script for Samba and use the Samba 3.0.25b tarball. Good luck -- Peter |
| |||
| On Thu, 16 Aug 2007 10:18:12 +0000, Leigh Wedding wrote: >> Why are you trying to compile it? > There is no samba-3.0.25b installation package/patch, the latest official > package I could find is samba-3.0.25a! I see. And what, exactly, does the .25b version offer that's so critically needed? -- "Bother!" said Pooh, as Christopher Robin pleaded to be spanked again. |
| |||
| Dan C <youmustbejoking@lan.invalid> writes: > On Thu, 16 Aug 2007 10:18:12 +0000, Leigh Wedding wrote: > > >> Why are you trying to compile it? > > > There is no samba-3.0.25b installation package/patch, the latest official > > package I could find is samba-3.0.25a! > > I see. And what, exactly, does the .25b version offer that's so > critically needed? > Probably not much really, but I have itchy fingers; I can't resist trying to install a new version. Also I just like compiling stuff myself, a bit strange I guess. -- Leigh Wedding leigh.wedding@telstra.DELETE-this.com |
| |||
| Dan C <youmustbejoking@lan.invalid> wrote: > I see. And what, exactly, does the .25b version offer that's so > critically needed? According to the Release Notes (on www.samba.org): > Major bug fixes included in Samba 3.0.25b are: > o Offline caching of files with Windows XP/Vista clients. > o Improper cleanup of expired or invalid byte range locks > on files. > o Crashes in idmap_ldap and idmap_rid. There is a more detailed list too, but that's about a page long. But 3.0.25b _has_ been out since June 26 already! -- ************************************************** ****************** ** Eef Hartman, Delft University of Technology, dept. EWI/TW ** ** e-mail: E.J.M.Hartman@math.tudelft.nl, fax: +31-15-278 7295 ** ** snail-mail: P.O. Box 5031, 2600 GA Delft, The Netherlands ** ************************************************** ****************** |
| ||||
| leigh <leigh.wedding@telstra.com> writes: > I am having trouble compiling samba-3.0.25b on Slackware-11.0, this > is the error message I get: > > ======================= > Using FLAGS = -O2 -march=i486 -mtune=i686 -D_SAMBA_BUILD_=3 -I/ > home/lwedding/prog/samba/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 -DLDAP_DEPRECATED -I/home/ > lwedding/prog/samba/samba-3.0.25b/source/lib -D_SAMBA_BUILD_=3 > PICFLAG = -fPIC > LIBS = -lcrypt -lcap -lresolv -lresolv -lnsl -ldl > LDFLAGS = -pie > DYNEXP = -Wl,--export-dynamic > LDSHFLAGS = -shared -Wl,-Bsymbolic > SHLIBEXT = so > SONAMEFLAG = -Wl,-soname= > Compiling dynconfig.c > In file included from ./lib/replace/system/filesys.h:33, > from include/includes.h:104, > from /home/lwedding/prog/samba/samba-3.0.25b/source/ > dynconfig.c:21: > /usr/include/sys/mount.h:36: error: syntax error before numeric > constant > /usr/include/sys/mount.h:52: error: syntax error before numeric > constant > The following command failed: > gcc -O2 -march=i486 -mtune=i686 -D_SAMBA_BUILD_=3 -I/home/lwedding/ > prog/samba/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 -DLDAP_DEPRECATED -I/home/lwedding/prog/samba/ > samba-3.0.25b/source/lib -D_SAMBA_BUILD_=3 -DCONFIGFILE="/etc/samba/ > smb.conf" -DSBINDIR="/usr/sbin" -DBINDIR="/usr/bin" -DLMHOSTSFILE="/ > etc/samba/lmhosts" -DSWATDIR="/usr/share/swat" -DLOCKDIR="/var/cache/ > samba" -DPIDDIR="/var/run" -DLIBDIR="/usr/lib/samba" -DLOGFILEBASE="/ > var/log/samba" -DSHLIBEXT="so" -DCONFIGDIR="/etc/samba" - > DSMB_PASSWD_FILE="/etc/samba/private/smbpasswd" -DPRIVATE_DIR="/etc/ > samba/private" -fPIC -c /home/lwedding/prog/samba/samba-3.0.25b/source/ > dynconfig.c -o dynconfig.o > make: *** [dynconfig.o] Error 1 > ======================= > > The last version of samba I have successfully compiled is > samba-3.0.23d, > I have had not success compiling any of the samba-3.0.25* versions. > However samba-3.0.25a has been released as a patch for Slackware-11.0, > so it seems it must be possible to compile it. > > Any clues or tips? > > Note some additional things I have installed, if that would make any > difference: > nss_ldap-255 > openldap-2.3.37 > kernel 2.6.20.7 > > Thanks, > Leigh. > Fixed my own problem with 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 ============== There was some sort of imcompatiblity problem between <sys/capability.h> (installed by FreeRock Gnome, included by "system/capability.h") and <sys/mount.h> (included by "system/filesys.h"). But seemed to work if capability.h was included after "system/filesys.h". -- Leigh Wedding lwedding@bigpond.net.au |