Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SAMBA 2.2.2 won't compile after install rs506a

1 view
Skip to first unread message

Gary Quiring

unread,
Nov 4, 2001, 2:56:24 PM11/4/01
to
I tried upgrading to 2.2.2 Samba but to my surprise would not compile. I have
compiled previous version of Samba on SCO 5.0.6 and never had a problem.

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


Jean-Pierre Radley

unread,
Nov 4, 2001, 4:52:22 PM11/4/01
to ScoMisc [c.u.s.m], John H Terpstra
Gary Quiring propounded (on Sun, Nov 04, 2001 at 07:56:24PM +0000):

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

Gary Quiring

unread,
Nov 5, 2001, 10:00:03 AM11/5/01
to

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


Jean-Pierre Radley

unread,
Nov 5, 2001, 12:14:59 PM11/5/01
to ScoMisc [c.u.s.m]
Gary Quiring propounded (on Mon, Nov 05, 2001 at 03:00:03PM +0000):

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

Gary Quiring

unread,
Nov 5, 2001, 3:43:20 PM11/5/01
to
On Mon, 5 Nov 2001 17:14:59 GMT, Jean-Pierre Radley <j...@jpr.com> wrote:

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

Mike Brown

unread,
Nov 5, 2001, 5:18:06 PM11/5/01
to

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

0 new messages