[ptx] Problems to link /usr/lib32/libpng.so.2 for Panotools 32bit (crosspost: gmane.linux.debian.ports.amd64)

Gerhard Gaussling ggrubbish at web.de
Sat Nov 5 14:48:36 GMT 2005


Hello,

I got a problem to run 32bit panotools on my amd64 breezy box.
I linked successfully 32bit libpano12 and libtiff.so.3, but I'm not able 
to
link libpng.so.2.

$ ldd PTStitcher         linux-gate.so.1 =>  (0xffffe000)
        libpano12.so => /lib32/libpano12.so (0x5558f000)
        libc.so.6 => /lib32/tls/libc.so.6 (0x555c6000)
        libm.so.6 => /lib32/tls/libm.so.6 (0x556f4000)
        libjpeg.so.62 => /usr/lib32/libjpeg.so.62 (0x55716000)
        libtiff.so.3 => /usr/lib32/libtiff.so.3 (0x55735000)
        /lib/ld-linux.so.2 (0x55555000)
        libpng.so.2 => not found
        libz.so.1 => /usr/lib32/libz.so.1 (0x55783000)

$ sudo /sbin/ldconfig -v -l /usr/lib32/libpng.so.2
/sbin/ldconfig: Ignored file /usr/lib32/libpng.so.2 since it is not a
regular file.

$ sudo ls -l  /usr/lib32/libpng*
lrwxrwxrwx  1 root root     11 2005-11-05 14:46 /usr/lib32/libpng10.so.0 
->
libpng.so.2
-rw-r--r--  1 root root 138440 2004-12-05
04:39 /usr/lib32/libpng10.so.0.1.0.18
lrwxrwxrwx  1 root root     19 2005-10-21 16:15 /usr/lib32/libpng12.so.0 
->
libpng12.so.0.1.2.8
-rw-r--r--  1 root root 146744 2005-08-22
18:52 /usr/lib32/libpng12.so.0.1.2.8
lrwxrwxrwx  1 root root     31 2005-11-05 14:49 /usr/lib32/libpng.so.2
-> /usr/lib32/libpng10.so.0.1.0.18

$ sudo file  /usr/lib32/libpng*
/usr/lib32/libpng10.so.0:        symbolic link to `libpng.so.2'
/usr/lib32/libpng10.so.0.1.0.18: ELF 32-bit LSB shared object, Intel 
80386,
version 1 (SYSV), stripped
/usr/lib32/libpng12.so.0:        symbolic link to `libpng12.so.0.1.2.8'
/usr/lib32/libpng12.so.0.1.2.8:  ELF 32-bit LSB shared object, Intel 
80386,
version 1 (SYSV), stripped
/usr/lib32/libpng.so.2:          symbolic link to
`/usr/lib32/libpng10.so.0.1.0.18'

$ cat /etc/ld.so.conf|grep 32
/lib32
/usr/lib32
/usr/X11R6/lib32

I also set up a chroot environment which linked the png library the 
right
way. I copied the png libs from that environment to /usr/lib32.

(i386_chroot)gerhard at ubuntu:~$ ls -l /usr/lib/libpng*
lrwxrwxrwx  1 root root     20 2005-07-31 13:24 /usr/lib/libpng10.so.0 
->
libpng10.so.0.1.0.18
-rw-r--r--  1 root root 138440 2004-12-05
03:39 /usr/lib/libpng10.so.0.1.0.18
lrwxrwxrwx  1 root root     19 2005-07-27 00:29 /usr/lib/libpng12.so.0 
->
libpng12.so.0.1.2.8
-rw-r--r--  1 root root 142612 2004-12-05 
03:39 /usr/lib/libpng12.so.0.1.2.8
lrwxrwxrwx  1 root root     13 2005-11-05 13:22 /usr/lib/libpng.so.2 ->
libpng10.so.0

(i386_chroot)gerhard at ubuntu:~$ ldd
~/download/panorama/PTLinux/Helpers/PTStitcher
        linux-gate.so.1 =>  (0xffffe000)
        libpano12.so => /usr/lib/libpano12.so (0x55576000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x555ad000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x556d5000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x556f7000)
        libtiff.so.3 => /usr/lib/libtiff.so.3 (0x55714000)
        libpng.so.2 => /usr/lib/libpng.so.2 (0x55761000)
        /lib/ld-linux.so.2 (0x55555000)
        libz.so.1 => /usr/lib/libz.so.1 (0x55783000)

But anyway: I want to know why it fails to link /usr/lib32/libpng.so.2, 
but
linking /usr/lib32/libtiff.so.3 works, and also linking in chroot32 
works.

Is there a way to have /usr/lib32/libpng.so.2 working without chroot?

kind regards

Gerhard Gaußling

PS: Sorry for the crosspost in gmane.linux.debian.ports.amd64


More information about the ptx mailing list