OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005130 [libxml2_dev] regular use minor always 2013-12-12 10:54 2014-02-14 15:55
Reporter cgrzemba View Status public  
Assigned To dam
Priority normal Resolution no change required  
Status closed  
Summary 0005130: missing lib -lz in libxml-2.0.pc
Description Some configure steps of evience fail because libxml2 needs to link with libz:

configure:20404: /opt/csw/bin/gcc-4.8 -o conftest -O2 -pipe -m32 -march=pentiumpro -I/opt/csw/include/nautilus -I/opt/csw/include/gnome-vfs-2.0 -I/usr/X11/include -I/usr/openwin/share/include -I/opt/csw/include -m32 -march=pentiumpro -L/opt/csw/lib conftest.c -L/opt/csw/lib -lpoppler-glib -lgio-2.0 -lcairo -lgobject-2.0 -lglib-2.0 -lintl -lxml2 >&5
Undefined first referenced
 symbol in file
gzopen64 /opt/csw/lib/libxml2.so
ld: fatal: symbol referencing errors. No output written to conftest

please add -lz to libxml-2.0.pc for linking libxml2.so
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0010662)
dam (administrator)
2013-12-12 14:23

Hi Carsten,

I cannot reproduce the issue:

dam@unstable10s [unstable10s]:/home/dam > ldd -r /opt/csw/lib/libxml2.so
        libpthread.so.1 => /lib/libpthread.so.1
        libz.so.1 => /opt/csw/lib/sparcv8plus+vis/libz.so.1
        liblzma.so.5 => /opt/csw/lib/sparcv8/liblzma.so.5
        libiconv.so.2 => /opt/csw/lib/sparcv8/libiconv.so.2
        libm.so.2 => /lib/libm.so.2
        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
        /platform/SUNW,SPARC-Enterprise-T5220/lib/libc_psr.so.1
        /platform/SUNW,SPARC-Enterprise-T5220/lib/libmd_psr.so.1

unstable10x% ldd -r /opt/csw/lib/libxml2.so
        libpthread.so.1 => /lib/libpthread.so.1
        libz.so.1 => /opt/csw/lib/pentium_pro+mmx/libz.so.1
        liblzma.so.5 => /opt/csw/lib/i386/liblzma.so.5
        libiconv.so.2 => /opt/csw/lib/i386/libiconv.so.2
        libm.so.2 => /lib/libm.so.2
        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

That means the library is self-contained and shouldn't need an explicit -lz in pkgconfig,
(0010663)
cgrzemba (developer)
2013-12-12 14:37

you are right, the core of the problem is the different content of
/usr/lib/libz.so and /opt/csw/lib/libz.so
But how can I say gcc he has to prefer the lib /opt/csw/lib/libz.so?
(0010664)
dam (administrator)
2013-12-12 14:52

I removed patch 0003 from your makefile which you meant to work around the issue.
This is on unstable10s:

configure:20404: checking for poppler_page_get_text_layout
configure:20404: /opt/csw/bin/gcc-4.8 -o conftest -O2 -pipe -mcpu=v9 -Wa,-xarch=v8plus -I/opt/csw/include/nautilus -I/opt/csw/include/gnome-vfs-2.0 -I/usr/X11/include -I/
usr/openwin/share/include -I/opt/csw/include -mcpu=v9 -Wa,-xarch=v8plus -L/opt/csw/lib conftest.c -L/opt/csw/lib -lpoppler-glib -lgio-2.0 -lcairo -lgobject-2.0 -lglib-2.
0 -lintl -lxml2 >&5
configure:20404: $? = 0
configure:20404: result: yes

This is on unstable10x:

configure:20404: checking for poppler_page_get_text_layout
configure:20404: /opt/csw/bin/gcc-4.8 -o conftest -O2 -pipe -m32 -march=pentiumpro -I/opt/csw/include/nautilus -I/opt/csw/include/gnome-vfs-2.0 -I/usr/X11/include -I/usr/openwin/share/include -I/opt/csw/include -m32 -march=pentiumpro -L/opt/csw/lib conftest.c -L/opt/csw/lib -lpoppler-glib -lgio-2.0 -lcairo -lgobject-2.0 -lglib-2.0 -lintl -lxml2 >&5
configure:20404: $? = 0
configure:20404: result: yes

How can I reproduce the issue?
(0010665)
cgrzemba (developer)
2013-12-12 15:31

you can close the issue. The problem was some where outside.


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker