maintainer-feedback requested: [Bug 202006] textproc/libxml2: xml2-config libs output lists private libraries causing overlinking
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Jul 31 14:27:41 UTC 2015
Kubilay Kocak <koobs at FreeBSD.org> has reassigned Bugzilla Automation
<bugzilla at FreeBSD.org>'s request for maintainer-feedback to gnome at FreeBSD.org:
Bug 202006: textproc/libxml2: xml2-config libs output lists private libraries
causing overlinking
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202006
--- Description ---
net/asterisk was found to be linking to libiconv.so even after *many*
attempts to disable it. Investigation revealed the following xml2-config
output as the root cause, evidenced in config.log:
LIBXML2_LIB='-L/usr/local/lib -lxml2 -lz -L/usr/local/lib -liconv -lm'
libxml2 ships a pkg-config file (libxml-2.0.pc) that correctly doesn't
list its private library dependencies in --libs output.
Unfortunately, xml2-config does not, returning the full output of the
XML_LIBS value provided in the Makefile, derived from ./configure
output.
This overlinking issue affects any dependent ports that use xml2-config
to obtain compile / link flags.
More information about the freebsd-gnome
mailing list