On Wed, Apr 09, 2008 at 11:52:29AM -0400, Matt Miller wrote: > All, I've been told this is the alias for questions regarding linking. > I'm using Studio 12 on Solaris 10. Trying to use -z lazyload and -z > nodefs for linking... > The library is linked as: > > ld -G -z lazyload -o ../../../3b2/lib/myso.so [list of > .o files] -h myso.so
You're not declaring myso.so's dependencies. > The executable was linked with the following command: > > /opt/SUNWspro/bin/cc -z lazyload -z nodefs -L../../../3b2/lib > -L/usr/lib -L/3b2/lib -o > ../../../3b2/bin/another.o > /inc/yetanother.o -lutillib > -lnelib So I guess myso.so depends on one or both of libutillib or libnelib (or libc). Try declaring myso.so's dependencies. Nico --