[csw-maintainers] missing symbol libz
Riccardo Mottola
rmottola at opencsw.org
Wed May 22 00:06:49 CEST 2013
On 05/21/13 23:06, Dagobert Michelsen wrote:
> Hi Riccardo,
> gzopen64 is from libz.so.1. Most certainly you link with system libz.so.1 previously,
> the linker remembers that libz.so.1 is already in and the version from /opt/csw/lib
> is not used. Just make sure to always use libz.so.1 from OpenCSW if you are using
> other OpenCSW libraries.
how can I make sure? I have libz.so.1 from OpenCSW installed:
ls -l /opt/csw/lib/libz.so.1
lrwxrwxrwx 1 root root 13 Apr 7 18:57
/opt/csw/lib/libz.so.1 -> libz.so.1.2.7
The linker ought to prefer this one? ldd says something even different:
ldd libxml2.so.2
libdl.so.1 => /lib/libdl.so.1
libpthread.so.1 => /lib/libpthread.so.1
libz.so.1 => /opt/csw/lib/sparcv8plus+vis/libz.so.1
libiconv.so.2 => /opt/csw/lib/sparcv8/libiconv.so.2
libm.so.1 => /lib/libm.so.1
libsocket.so.1 => /lib/libsocket.so.1
libnsl.so.1 => /lib/libnsl.so.1
libc.so.1 => /lib/libc.so.1
libmp.so.2 => /lib/libmp.so.2
libmd.so.1 => /lib/libmd.so.1
libscf.so.1 => /lib/libscf.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libgen.so.1 => /lib/libgen.so.1
libm.so.2 => /lib/libm.so.2
/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1
/platform/SUNW,UltraAX-i2/lib/libmd_psr.so.1
my linking line is:
gcc -shared-libgcc -pthread -fexceptions -fgnu-runtime -o
GSspell.service/./GSspell \
./obj/GSspell.obj/GSspell.m.o -L/opt/csw/lib -R/opt/csw/lib
-L/opt/csw/lib -licui18n -licuuc -licudata -L/usr/lib -lpng12
-L../Source/./obj -L../Model/./obj
-L/home/multix/GNUstep/Library/Libraries
-L/opt/GNUstep/Local/Library/Libraries
-L/opt/GNUstep/System/Library/Libraries -lgnustep-gui -lpng -ltiff
-lz -ljpeg -lm -lgnustep-base -lobjc -lsocket -lnsl -lm
Undefined first referenced
symbol in file
gzopen64 /opt/csw/lib/libxml2.so.2
which would include /opt/csw/lib but not the particular
/opt/csw/lib/sparcv8/ !
Riccardo
More information about the maintainers
mailing list