Compiling 1.9.18p10 or p8 on SCO OSR5.0.4
Craig Green
cmgreen at deltalink.com.au
Tue Jan 5 00:32:11 GMT 1999
Hi, I am wondering if anyone can help me with a problem I am having when compiling samba. When
I issue the "make" command the compilation of the binaries aborts with the following message.
"replace.c", line 195: error: identifier redeclared: initgroups
*** Error code 1 (bu21)
If I comment out the section of code in "replace.c" that declares initgroups and reissue the
"make" command then I get the following error messages.
"ipc.c", line 1194: warning: argument is incompatible with prototype: arg #4
"nmbd_packets.c", line 340: warning: improper pointer/integer combination: arg #2
"nmbd_subnetdb.c", line 190: warning: improper pointer/integer combination: arg #1
"nmbd_incomingrequests.c", line 380: warning: argument is incompatible with prototype: arg #4
"client.c", line 2987: warning: argument is incompatible with prototype: arg #4
Here is the first section of the "make" output, if this helps?
Using CFLAGS = -O -DSMBLOGFILE="/usr/local/samba/var/log.smb" -DNMBLOGFILE="/usr
/local/samba/var/log.nmb" -DCONFIGFILE="/usr/local/samba/lib/smb.conf" -DLMHOSTS
FILE="/usr/local/samba/lib/lmhosts" -DWEB_ROOT="/usr/local/samba" -DLOCKDIR="/us
r/local/samba/var/locks" -DSMBRUN="/usr/local/samba/bin/smbrun" -DCODEPAGEDIR="/
usr/local/samba/lib/codepages" -DWORKGROUP="WORKGROUP" -DGUEST_ACCOUNT="nobody"
-DDRIVERFILE="/usr/local/samba/lib/printers.def" -DSCO -DSHADOW_PWD -DSM
B_PASSWD="/usr/local/samba/bin/smbpasswd" -DSMB_PASSWD_FILE="/usr/local/samba/pr
ivate/smbpasswd"
Using LIBS = -lsec -lsocket /usr/lib/libcrypt_i.a -lintl
I am not a C programmer and therefore have no idea how to fix the problem. I get the same
messages if I use "1.9.18p10" or "1.9.18p8".
I am running SCO OpenServer 5.0.4 with supplement rs504c applied.
The section of the Makefile that I have un-commented is:
# This is for the European distribution of SCO.
# Contributed by Urmet.Janes at gwhite.goodwin.ee
FLAGSM = -DSCO -DSHADOW_PWD
LIBSM = -lsec -lsocket /usr/lib/libcrypt_i.a -lintl
Is this the correct section to be using or should I be using the following section.
# Use this for SCO OpenServer 5 with TCB passwords (default).
# contributed by Scott Michel <scottm at intime.intime.com>
# you may also like to add the -dy switch (recommended by Marnus van
# Niekerk, mvn at pixie.co.za)
# CC = cc -Xc
# FLAGSM = -DSCO -DSecureWare -DEVEREST -DUSE_MMAP
# LIBSM = -lprot -lcurses -lcrypt -lsocket -lPW -lm -lx -lc_s -lc
However if I use this then I get the same errors as well as hundreds of the following.
"/usr/include/prot.h", line 471: warning: nonstandard bit-field type
"/usr/include/prot.h", line 472: warning: nonstandard bit-field type
"/usr/include/prot.h", line 473: warning: nonstandard bit-field type
"/usr/include/prot.h", line 474: warning: nonstandard bit-field type
"/usr/include/prot.h", line 475: warning: nonstandard bit-field type
"/usr/include/prot.h", line 476: warning: nonstandard bit-field type
"/usr/include/prot.h", line 478: warning: nonstandard bit-field type
The header section of the make output is :
Using CFLAGS = -O -DSMBLOGFILE="/usr/local/samba/var/log.smb" -DNMBLOGFILE="/usr
/local/samba/var/log.nmb" -DCONFIGFILE="/usr/local/samba/lib/smb.conf" -DLMHOSTS
FILE="/usr/local/samba/lib/lmhosts" -DWEB_ROOT="/usr/local/samba" -DLOCKDIR="/us
r/local/samba/var/locks" -DSMBRUN="/usr/local/samba/bin/smbrun" -DCODEPAGEDIR="/
usr/local/samba/lib/codepages" -DWORKGROUP="WORKGROUP" -DGUEST_ACCOUNT="nobody"
-DDRIVERFILE="/usr/local/samba/lib/printers.def" -DSCO -DSecureWare -DEVEREST -D
USE_MMAP -DSMB_PASSWD="/usr/local/samba/bin/smbpasswd" -DSMB_PASSWD_FILE=
"/usr/local/samba/private/smbpasswd"
Using LIBS = -lprot -lcurses -lcrypt -lsocket -lPW -lm -lx -lc_s -lc
Regards
Craig Green
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the samba
mailing list