I have a SCO 5.0.6 with no patches installed and Samba 2.2.2 compiles fine. I
installed 506a and Samba won't compile.
I noticed the following message when running configure that does not normally
appear: WARNING: No automated network interface determination
make output:
Using FLAGS = -O -Iinclude -I./include -I./ubiqx -I./smbwrapper -DLOGFILEBASE
="/usr/local/samba/var" -DCONFIGFILE="/usr/local/samba/lib/smb.conf" -DLMHOSTSFI
LE="/usr/local/samba/lib/lmhosts" -DSWATDIR="/usr/local/samba/swat" -DSBINDIR=
"/usr/local/samba/bin" -DLOCKDIR="/usr/local/samba/var/locks" -DCODEPAGEDIR="/us
r/local/samba/lib/codepages" -DDRIVERFILE="/usr/local/samba/lib/printers.def" -D
BINDIR="/usr/local/samba/bin" -DHAVE_INCLUDES_H -DPASSWD_PROGRAM="/bin/passwd"
-DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd" -DTDB_PASSWD_FILE="/usr/l
ocal/samba/private/smbpasswd.tdb"
Using FLAGS32 = -O -Iinclude -I./include -I./ubiqx -I./smbwrapper -DLOGFILEBA
SE="/usr/local/samba/var" -DCONFIGFILE="/usr/local/samba/lib/smb.conf" -DLMHOSTS
FILE="/usr/local/samba/lib/lmhosts" -DSWATDIR="/usr/local/samba/swat" -DSBINDI
R="/usr/local/samba/bin" -DLOCKDIR="/usr/local/samba/var/locks" -DCODEPAGEDIR="/
usr/local/samba/lib/codepages" -DDRIVERFILE="/usr/local/samba/lib/printers.def"
-DBINDIR="/usr/local/samba/bin" -DHAVE_INCLUDES_H -DPASSWD_PROGRAM="/bin/passwd
" -DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd" -DTDB_PASSWD_FILE="/usr
/local/samba/private/smbpasswd.tdb"
Using LIBS = -lsec -lgen -lsocket -lnsl_s
Compiling smbd/server.c
"include/includes.h", line 834: error: identifier redeclared: initgroups
*** Error code 1 (bu21)
Gary Quiring
The configure script fails to detect that initgroups is in fact declared
in /usr/include/grp.h, if you're using /bin/cc as your compiler.
If you fix that (I haven't tried to do so) you might stumble on similar
errors.
OTOH, using gcc, the configure&make cycle (on 5.0.6 patched with rs506a)
is perfect.
--
JP
Hello JP,
I'm not clear on your fix. I use cc, and it compiles fine until rs506a
installed. What does 506a do that confuses the Samba configure script?
Gary
I didn't fix anything... I just changed compilers.
I have no idea what rs506a changed that causes the mistake reported by
the configure script. Perhpas John Terpstra can tell us.
--
JP
>| >
>| >The configure script fails to detect that initgroups is in fact declared
>| >in /usr/include/grp.h, if you're using /bin/cc as your compiler.
>| >
>| >If you fix that (I haven't tried to do so) you might stumble on similar
>
>>errors.
>| >
>| >OTOH, using gcc, the configure&make cycle (on 5.0.6 patched with rs506a)
>| >is perfect.
>| Hello JP,
>|
>| I'm not clear on your fix. I use cc, and it compiles fine until rs506a
>| installed. What does 506a do that confuses the Samba configure script?
>
>I didn't fix anything... I just changed compilers.
>I have no idea what rs506a changed that causes the mistake reported by
>the configure script. Perhpas John Terpstra can tell us.
Sorry, I misread your original post. Do you find the gcc compiler to be as
stable as cc? I have never used it.
Gary
I have not had any runtime issues from code compiled with gcc.
The 5.0.6a patch broke something with the cc compiler, a fix is
supposed to be coming. It looks like the problems is in changes to
libsocket.so.x and/or libresolv.so.x.
Mike
--
Michael Brown
The Kingsway Group