Comment 10 for bug 151045

Revision history for this message
Etienne Lepercq (e-guepe) wrote :

I have the same king of problem when compiling an app using a library linked to the symbol gzopen. I am using ubuntu 7.10 gutsy and I tried reinstalling zlib1g and zlib1g-dev, libxml2, xsltproc (which is used by the gimp and linked to the former symbol).
Here are two compilation linking of two different app : first one is a wxwidgets one (very simple, just a window without buttons, etc.. just to track the error)

g++ -o simple `wx-config --libs` ./simple.o main.o
/usr/bin/../lib/libxml2.so.2: undefined reference to `gzopen64'
collect2: ld a retourné 1 code d'état d'exécution
make: *** [all] Erreur 1

Then The Gimp compilation :

export LANG=C && make
/usr/bin/xsltproc: symbol lookup error: /usr/lib/libxml2.so.2: undefined symbol: gzopen64

strings /usr/lib/libxml2.so.2.6.30 |grep gzopen64
gzopen64

objdump -T /usr/lib/libz.so.1 | grep gzopen64
00004040 g DF .text 0000001b Base gzopen64

ls -l /usr/lib/libxml2*
-rw-r--r-- 1 root root 1441704 2007-10-05 04:08 /usr/lib/libxml2.a
-rw-r--r-- 1 root root 804 2007-10-05 04:08 /usr/lib/libxml2.la
lrwxrwxrwx 1 root root 17 2007-11-04 09:01 /usr/lib/libxml2.so -> libxml2.so.2.6.30
lrwxrwxrwx 1 root root 17 2007-11-04 09:01 /usr/lib/libxml2.so.2 -> libxml2.so.2.6.30
-rw-r--r-- 1 root root 1166856 2007-10-05 04:08 /usr/lib/libxml2.so.2.6.30

Partial copy-paste, see attachment for the whole thing
 ls -l /usr/lib/libz*
-rw-r--r-- 1 root root 90566 2007-07-29 22:12 /usr/lib/libz.a
lrwxrwxrwx 1 root root 15 2007-11-04 08:49 /usr/lib/libz.so -> libz.so.1.2.3.3
lrwxrwxrwx 1 root root 15 2007-11-04 08:47 /usr/lib/libz.so.1 -> libz.so.1.2.3.3
-rw-r--r-- 1 root root 80504 2007-07-29 22:12 /usr/lib/libz.so.1.2.3.3

Maybe you know how to handle this ? I have nothing relevant in /usr/local/lib !