[slang-users] Import Error with PNG module
Laurent Perez
perez.l at free.fr
Tue Oct 18 15:35:29 EDT 2005
Hi,
I got this error when importing png module :
slsh> require ("png");
Error linking to /home/laurent//lib/slang/v2/modules/png-module.so:
/usr/lib/libpng.so.3: undefined symbol: deflate
/home/laurent/share/slsh/png.Sl:2:<top-level>:Import Error
As far as I know, deflate is defined in the zlib library used by png. I
don't know if it is a system error (Slackware 10.1) but changing the
Makefile to force linking with zlib ( PNG_LIB = -lpng -lz ) made a
working png module.
ldd png-module.so
libpng.so.3 => /usr/lib/libpng.so.3 (0x4001a000)
libz.so.1 => /usr/lib/libz.so.1 (0x4004c000)
libm.so.6 => /lib/libm.so.6 (0x4005d000)
libc.so.6 => /lib/libc.so.6 (0x40080000)
/lib/ld-linux.so.2 (0x80000000)
Laurent.
More information about the slang-users-l
mailing list