[libxml2_dev 0005130]: missing lib -lz in libxml-2.0.pc

Mantis Bug Tracker via bug-notifications bug-notifications at lists.opencsw.org
Thu Dec 12 14:23:21 CET 2013


The following issue requires your FEEDBACK. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=5130 
====================================================================== 
Reported By:                cgrzemba
Assigned To:                dam
====================================================================== 
Project:                    libxml2_dev
Issue ID:                   5130
Category:                   regular use
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
====================================================================== 
Date Submitted:             2013-12-12 10:54 CET
Last Modified:              2013-12-12 14:23 CET
====================================================================== 
Summary:                    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

====================================================================== 

---------------------------------------------------------------------- 
 (0010662) dam (administrator) - 2013-12-12 14:23
 https://www.opencsw.org/mantis/view.php?id=5130#c10662 
---------------------------------------------------------------------- 
Hi Carsten,

I cannot reproduce the issue:

dam at 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,



More information about the bug-notifications mailing list