[Samba] Linker error for Samba 3.5.8 on Solaris 5.8

lineman at halo.nu lineman at halo.nu
Wed Apr 27 19:41:27 MDT 2011

I get the following linker error when compiling Samba on Solaris Sparc 5.8:

bash-2.03# make
Using CFLAGS     = -I../lib/zlib -O -I. -I/root/samba-3.5.8/source3 -I/root/samba-3.5.8/source3/../lib/popt -I/root/samba-3.5.8/source3/iniparser/src -Iinclude -I./include  -I. -I. -I./../lib/replace -I./../lib/tevent -I./libaddns -I./librpc -I./.. -I./../lib/talloc -I../lib/tdb/include -DHAVE_CONFIG_H  -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DLDAP_DEPRECATED -DSUNOS5  -I/root/samba-3.5.8/source3/lib -I.. -I../source4 -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3
      PICFLAG    = -fPIC
      LIBS       = -lsendfile -lresolv -lrt -ldl -lnsl -lsocket -lintl 
      LDFLAGS    = -Wl,-z,ignore -lthread -L./bin
      DYNEXP     = 
      LDSHFLAGS  = -fPIC -shared  -Wl,-z,ignore -lthread -L./bin -lc -Wl,-z,defs
      SHLIBEXT   = so
      SONAMEFLAG = -Wl,-h,
Compiling dynconfig.c
Linking shared library bin/libnetapi.so.0
Undefined                       first referenced
 symbol                             in file
libiconv_set_relocation_prefix      /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/../../../libintl.so
ld: fatal: Symbol referencing errors. No output written to bin/libnetapi.so.0
collect2: ld returned 1 exit status
make: *** [bin/libnetapi.so.0] Error 1

bash-2.03# uname -a
SunOS suntest1.phi.org 5.8 Generic_117350-28 sun4u sparc SUNW,Sun-Fire-V210

bash-2.03# make -v
GNU Make 3.80

bash-2.03# gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.3.2

Any insight on how to get this to compile correctly would be greatly appreciated!

More information about the samba mailing list