Hi there all,
I have problems compiling samba-1.9.18p10 on Solaris 2.6.
I get the following error msgs when I make the Makefile, what am I
missing?:
Using CFLAGS = -O -DSMBLOGFILE="/usr/local/samba/var/log.smb"
-DNMBLOGFILE="/usr/local/samba/var/log.nmb"
-DCONFIGFILE="/usr/local/samba/lib/smb.conf"
-DLMHOSTSFILE="/usr/local/samba/lib/lmhosts"
-DWEB_ROOT="/usr/local/samba"
-DLOCKDIR="/usr/local/samba/var/locks"
-DSMBRUN="/usr/local/samba/bin/smbrun"
-DCODEPAGEDIR="/usr/local/samba/lib/codepages"
-DWORKGROUP="UNIX"
-DGUEST_ACCOUNT="nobody"
-DDRIVERFILE="/usr/local/samba/lib/printers.def"
-DSUNOS5 -DSHADOW_PWD -DNETGROUP -DFAST_SHARE_MODES
-DSMB_PASSWD="/usr/local/samba/bin/smbpasswd"
-DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd"
Using LIBS = -lsocket -lnsl
Compiling util.c
In file included from /usr/include/sys/turnstile.h:12,
from /usr/include/sys/t_lock.h:20,
from /usr/include/sys/vnode.h:37,
from /usr/include/sys/stream.h:21,
from /usr/include/netinet/in.h:38,
from includes.h:160,
from util.c:22:
/ee/r0/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2.3.f.1/include/sys/para
m.h:187: warning: `NBBY' redefined
/usr/include/sys/select.h:45: warning: this is the location of the previous
definition
In file included from /usr/include/sys/stream.h:26,
from /usr/include/netinet/in.h:38,
from includes.h:160,
from util.c:22:
/usr/include/sys/model.h:32: #error "No DATAMODEL_NATIVE specified"
*** Error code 1
make: Fatal error: Command failed for target `util.o'
Thanx
Yasmine
Yasmine Arafa:> Hi there all, > > I have problems compiling samba-1.9.18p10 on Solaris 2.6. > I get the following error msgs when I make the Makefile, what am I > missing?: > > Using CFLAGS = -O -DSMBLOGFILE="/usr/local/samba/var/log.smb" > -DNMBLOGFILE="/usr/local/samba/var/log.nmb" > -DCONFIGFILE="/usr/local/samba/lib/smb.conf" > -DLMHOSTSFILE="/usr/local/samba/lib/lmhosts" -DWEB_ROOT="/usr/local/samba" > -DLOCKDIR="/usr/local/samba/var/locks" > -DSMBRUN="/usr/local/samba/bin/smbrun" > -DCODEPAGEDIR="/usr/local/samba/lib/codepages" -DWORKGROUP="UNIX" > -DGUEST_ACCOUNT="nobody" -DDRIVERFILE="/usr/local/samba/lib/printers.def" > -DSUNOS5 -DSHADOW_PWD -DNETGROUP -DFAST_SHARE_MODES > -DSMB_PASSWD="/usr/local/samba/bin/smbpasswd" > -DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd" > Using LIBS = -lsocket -lnsl > Compiling util.c > In file included from /usr/include/sys/turnstile.h:12, > from /usr/include/sys/t_lock.h:20, > from /usr/include/sys/vnode.h:37, > from /usr/include/sys/stream.h:21, > from /usr/include/netinet/in.h:38, > from includes.h:160, > from util.c:22: > /ee/r0/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2.3.f.1/include/sys/para > m.h:187: warning: `NBBY' redefined > /usr/include/sys/select.h:45: warning: this is the location of the previous > definition > In file included from /usr/include/sys/stream.h:26, > from /usr/include/netinet/in.h:38, > from includes.h:160, > from util.c:22: > /usr/include/sys/model.h:32: #error "No DATAMODEL_NATIVE specified" > *** Error code 1 > make: Fatal error: Command failed for target `util.o'Nothing samba specific. That question is seen in many other support mailing lists :-) I know nothing about solaris and gcc, but typically users forgot to reinstall gcc after OS upgrade. In other words include files of gcc are for wrong OS version. / Kari Hurtta
Dear Yasmine,> From: "Yasmine Arafa" <Y.Arafa@ic.ac.uk> > > I have problems compiling samba-1.9.18p10 on Solaris 2.6. > I get the following error msgs when I make the Makefile, what am I > missing?:I had the same problem using Solaris 2.5.1. Try to compile with cc -Xa (ansi compatible mode with C-R extensions). I modified this section: # This is for SUNOS5.4 and later (also known as Solaris 2.4 and later) # contributed by Andrew.Tridgell@anu.edu.au FLAGSM = -Xa -DSUNOS5 -DSHADOW_PWD -DNETGROUP -DFAST_SHARE_MODES LIBSM = -lsocket -lnsl AWK = nawk It worked for me. Which cc U use? I used /usr/ucb/cc. With -Xa it worked. There were a lotta redefinied #defines, but worked. When I compiled PERL I have got problems with /usr/ucb/cc. It was adviced to use /opt/SUNWspro/bin/cc (put /opt/SUNWspro/bin to the PATH before /usr/ucb). It was said /usr/ucb is buggy. It worked for PERL and Apache. Try it! I will also, 'cos I have to recompile it! Good byte From:, the recompiled This is the first day of the rest of Your life!
Thanx very much indeed to all who replied. All suggestions were similar, and were of great help. I have installed gcc 2.8.1 as Edan first suggest and I have managed to compile with no errors. When I run smbclient I get the following error. The lmhosts file was not created when I installed samba and there was no documentation about it. Must I create this? and how? (root)/usr/local/samba/bin%smbclient -L casbah Added interface ip=155.198.133.10 bcast=155.198.133.255 nmask=255.255.255.0 startlmhosts: Can't open lmhosts file /usr/local/samba/lib/lmhosts. Error was No such file or directory Server time is Wed Nov 25 11:05:39 1998 Timezone is UTC-0.0 Password: Thanx to all, Yasmine