Re: Compiling error and core dump

2003-01-13 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, 3 Jan 2003, Yihua Philip Sheng wrote:

 When I tried to compile the new version (2.2.7a) on Sun Solaris 7 and 8
 machine, it gives me the following error:
  
 Using LIBS = -lsec -lgen -lsocket -lnsl  -ldl
 Linking bin/smbd
 /usr/ccs/bin/ld: illegal option -- E
 usage: ld [-abc:d:e:f:h:il:mo:p:rstu:z:B:D:F:GI:L:M:N:P:Q:R:S:VY:]
 file(s)
 [-a]create an absolute file
 [-b]do not do special PIC relocations in a.out
 [-c file]   record configuration `file'
 [-d y|n]operate in dynamic|static mode
 [-e sym]use `sym' as entry point address
 [-f name]   specify library for which this file is an
 auxiliary filter
 
  
 I then link the /usr/ccs/bin/ld to gnu's ld, it worked. All the binaries
 were generated successfully. But both smbd and nmbd gave core dump when
 I run them. Any suggestion to fix it?

I know this has come up before.  I thought that we correctly detected the 
GNU loader.  It looks like the configure script is using the GNU ld but 
the actual compilation process is using SUN's ld. ANy idea why this
is happening?

From configure.in:
*solaris*) AC_DEFINE(SUNOS5)
BLDSHARED=true
LDSHFLAGS=-G
SONAMEFLAG=-h 
if test ${GCC} = yes; then
PICFLAG=-fPIC
if test ${ac_cv_prog_gnu_ld} = yes; then
DYNEXP=-Wl,-E
fi
else
PICFLAG=-KPIC
## ${CFLAGS} added for building 64-bit shared
## libs using Sun's Compiler
LDSHFLAGS=-G \${CFLAGS}
POBAD_CC=
PICSUFFIX=po.o
fi




cheers, jerry
 --
 Hewlett-Packard- http://www.hp.com
 SAMBA Team -- http://www.samba.org
 GnuPG Key   http://www.plainjoe.org/gpg_public.asc
 ISBN 0-672-32269-2 SAMS Teach Yourself Samba in 24 Hours 2ed
 You can never go home again, Oatman, but I guess you can shop there.  
--John Cusack - Grosse Point Blank (1997)

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.0 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQE+ItlsIR7qMdg1EfYRAsI+AJ4/9IlvJXUBUMfhfEb840wXfXItrgCfeeql
778KR75bnnUM3D3p12F2Pqc=
=1dbU
-END PGP SIGNATURE-




Compiling error and core dump

2003-01-03 Thread Yihua Philip Sheng
Title: Message



When I tried to compile the new 
version (2.2.7a) on Sun Solaris 7 and 8 machine, it gives me the following 
error:

Using LIBS = -lsec -lgen -lsocket 
-lnsl -ldlLinking bin/smbd/usr/ccs/bin/ld: illegal option -- 
Eusage: ld [-abc:d:e:f:h:il:mo:p:rstu:z:B:D:F:GI:L:M:N:P:Q:R:S:VY:] 
file(s) 
[-a] create an 
absolute file 
[-b] do not do 
special PIC relocations in a.out 
[-c file] record configuration 
`file' [-d 
y|n] operate in dynamic|static 
mode [-e 
sym] use `sym' as entry point 
address [-f 
name] specify library for which this file is 
an auxiliary filter 


I then link the /usr/ccs/bin/ld to 
gnu's ld, it worked. All the binaries were generated successfully. But both smbd 
and nmbd gave core dump when I run them. Any suggestion to fix it?

Thanks,

Philip