[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:37:02 CET 2013


A NOTE has been added to this issue. 
====================================================================== 
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:37 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

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

---------------------------------------------------------------------- 
 (0010663) cgrzemba (developer) - 2013-12-12 14:37
 https://www.opencsw.org/mantis/view.php?id=5130#c10663 
---------------------------------------------------------------------- 
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?



More information about the bug-notifications mailing list