When I try to compile 3.0.13 on Solaris 9 or 10 with Sun CC it breaks: (samba 3.0.7 compiled fine) Is there a problem with Makefile.in? $ ./configure --prefix=/opt/csw lunatic> gmake Using FLAGS = -g -Iinclude -I/export/home/dol/src/samba-3.0.13/source/include -I/export/home/dol/src/samba-3.0.13/source/ubiqx -I/export/home/dol/src/samba-3.0.13/source/smbwrapper -I. -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/export/home/dol/src/samba-3.0.13/source LIBS = -lsendfile -lsec -lgen -lresolv -lsocket -lnsl LDSHFLAGS = -G -g -lthread LDFLAGS = -lthread Compiling dynconfig.po.c with -KPIC Compiling lib/version.po.c with -KPIC Linking nsswitch/libnss_wins.so ld: fatal: file dynconfig.po.o: open failed: No such file or directory ld: fatal: file lib/version.po.o: open failed: No such file or directory ld: fatal: File processing errors. No output written to nsswitch/libnss_wins.so gmake: *** [nsswitch/libnss_wins.so] Error 1
Seems to be a problem with Gmake 3.79.1 and Gmake 3.80. Sun Distributed Make 7.5 2004/07/15 links without problems.
Are you using the same compiler for both runs? I am guessing that one of your tests is using gcc, and the other SUN cc. Can you confirm?
(In reply to comment #2) > Are you using the same compiler for both runs? I am guessing that one of your > tests is using gcc, and the other SUN cc. Can you confirm? I use the same Sun cc in both cases. (32 bit build) With the patch below gmake and dmake works on Solaris: (dont know if this is correct or wanted, got it from Thomas Glanzmann) ++++++++++++++++++ -- configure.orig 2004-02-13 09:59:53.087751000 -0500 +++ configure 2004-02-13 10:00:59.678426000 -0500 @@ -17738,7 +17738,6 @@ ## ${CFLAGS} added for building 64-bit shared ## libs using Sun's Compiler LDSHFLAGS="-G \${CFLAGS}" - PICSUFFIX="po.o" fi cat >>confdefs.h <<\_ACEOF
This bug with Samba has been resolved ages ago and that particular compile problem no longer exists with newer versions of Samba. Resolved -> Fixed?
Fredrik: Reopen if this issue isn't solved for you. Michael : Thanks for the update.