[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


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202006

            Bug ID: 202006
           Summary: textproc/libxml2: xml2-config libs output lists
                    private libraries causing overlinking
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: needs-patch, needs-qa
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: gnome at FreeBSD.org
          Reporter: koobs at FreeBSD.org
             Flags: maintainer-feedback?(gnome at FreeBSD.org),
                    merge-quarterly?
          Assignee: gnome at FreeBSD.org

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list