Subject: problems with shared libs from pkg
To: None <tech-pkg@netbsd.org>
From: Mocha <netbsd_alpha@yahoo.com>
List: tech-pkg
Date: 05/26/2000 21:15:55
i'm on netbsd-1.4y/alpha. i'm having problems with some of the packages.
they can't seem to find other libraries that they depend on. for instance,
the tiff package which uses zlib. i compile zlib and install it. then tell
the tiff package where the libs are. but when i ldd tiff:
# ldd /usr/pkg/lib/libtiff.so.3.5
/usr/pkg/lib/libtiff.so.3.5:
-lc.12 => /usr/lib/libc.so.12
it doesn't list the zlib. and other software that uses libtiff have
problems cause it can't find the zlib. shouldn't the zlib rpath be compiled
in during the link phase?
cd gdft; make; cd ..
gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TTF -DUSE_TIFF
-DUSE_JPEG -DUSE_GD_1_2
-I/home/staff/t/tom/work/gd/gd-1.2
-I/home/staff/t/tom/work/mapserver/mapserver-cvs/gdft -I/usr/pk
g/include -I/usr/pkg//include -I/usr/pkg/include shp2img.o -L.
-lmap -L/home/staff/t/tom/w
ork/gd/gd-1.2 -lgd -L/home/staff/t/tom/work/mapserver/mapserver-cvs/gdft
-lgdft -L/usr/pkg/lib -lt
tf -L/usr/pkg//lib -ltiff -L/usr/pkg/lib -ljpeg -lm -o shp2img
/usr/pkg/lib/libtiff.so: undefined reference to `deflate'
/usr/pkg/lib/libtiff.so: undefined reference to `inflate'
/usr/pkg/lib/libttf.so: undefined reference to `dgettext'
/usr/pkg/lib/libtiff.so: undefined reference to `inflateInit_'
/usr/pkg/lib/libtiff.so: undefined reference to `deflateInit_'
/usr/pkg/lib/libtiff.so: undefined reference to `inflateReset'
/usr/pkg/lib/libtiff.so: undefined reference to `deflateReset'
/usr/pkg/lib/libtiff.so: undefined reference to `inflateSync'
/usr/pkg/lib/libtiff.so: undefined reference to `deflateParams'
/usr/pkg/lib/libtiff.so: undefined reference to `inflateEnd'
/usr/pkg/lib/libtiff.so: undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
*** Error code 1
here the mapserver software uses libtiff. but it gave that error when it
tries to access the zlib functions.
any suggestions?
i tried setting 'LD_LIBRARY_PATH', '-Wl,--rpath -Wl,LIBDIR', `LD_RUN_PATH'
but nothing seems to help.