[Samba] Linker error for Samba 3.5.8 on Solaris 5.8
lineman at halo.nu
lineman at halo.nu
Tue May 3 16:33:00 MDT 2011
On Wed, Apr 27, 2011 at 08:41:27PM -0500, lineman at halo.nu wrote:
> I get the following linker error when compiling Samba on Solaris Sparc 5.8:
> 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
I fixed that by doing this:
bash-2.03# ls -l libico*
-rw-r--r-- 1 bin bin 803 Jan 12 2005 libiconv.la
lrwxrwxrwx 1 root other 17 Aug 4 2005 libiconv.so -> libiconv.so.2.1.0
lrwxrwxrwx 1 root other 17 Aug 4 2005 libiconv.so.2 -> libiconv.so.2.1.0
-rwxr-xr-x 1 bin bin 685176 Jan 12 2005 libiconv.so.2.0.3
-rwxr-xr-x 1 bin bin 1147960 Jan 12 2005 libiconv.so.2.1.0
-rwxr-xr-x 1 bin bin 1159488 Jan 12 2005 libiconv.so.2.2.0
-rw-r--r-- 1 bin bin 1148932 Jan 12 2005 libiconv_plug.so
bash-2.03# nm libiconv.so.2 | grep relocat
bash-2.03# nm libiconv.so.2.0.3 | grep relocat
bash-2.03# nm libiconv.so.2.1.0 | grep relocat
bash-2.03# nm libiconv.so.2.2.0 | grep relocat
00015f6c T libiconv_relocate
00015d40 T libiconv_set_relocation_prefix
00015c2c t set_this_relocation_prefix
bash-2.03# mv libiconv.so.2 libiconv.so.2.old-link.alan
bash-2.03# ln -s libiconv.so.2.2.0 !!:1
ln -s libiconv.so.2.2.0 libiconv.so.2
bash-2.03#
Now there is a new problem, any help would be appreciated.
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,
Linking shared library bin/pam_winbind.so
Undefined first referenced
symbol in file
libintl_bindtextdomain ../nsswitch/pam_winbind.o
libintl_dgettext ../nsswitch/pam_winbind.o
ld: fatal: Symbol referencing errors. No output written to bin/pam_winbind.so
collect2: ld returned 1 exit status
make: *** [bin/pam_winbind.so] Error 1
bash-2.03#
-Alan
More information about the samba
mailing list