Opened 15 years ago

Last modified 14 years ago

#21583 closed defect

libxml2 2.7.4 +universal. Pkg-config error — at Version 4

Reported by: huw@… Owned by: cedric.luthi@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: snowleopard Cc: jmr@…, ryandesign@…
Port: libxml2

Description (last modified by ryandesign (Ryan Carsten Schmidt))

pkg-config --libs libxml-2.0

displays "Libs.private field occurs twice in '/opt/local/lib/pkgconfig/libxml-2.0.pc'" with the universal variant of libxml2 installed on Snow Leopard.

The libxml-2.0.pc file contains:

#ifndef __LP64__
Libs.private: -lpthread   -liconv -lm 
#else /* __LP64__ */
Libs.private: -lpthread -lz  -liconv -lm 
#endif /* __LP64__ */

and the preprocessor directives are evidently confusing pkg-config.

Change History (5)

comment:1 Changed 15 years ago by huw@…

Cc: huw@… added

Cc Me!

comment:2 Changed 15 years ago by mnick@…

Keywords: snowleopard added
Owner: changed from macports-tickets@… to cedric.luthi@…
Version: 1.8.0

comment:3 Changed 15 years ago by jmroot (Joshua Root)

Cc: jmr@… added; cedric.luthi@… huw@… removed
Resolution: fixed
Status: newclosed

Seems fine here, possibly fixed with the upgrade to 2.7.5.

Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: libxml2-archcheck.diff added

comment:4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Description: modified (diff)
Resolution: fixed
Status: closedreopened

This will occur if you try to install libxml2 +universal but you have not installed its dependencies +universal. The attached patch could be used to ensure users encounter a proper error message for this situation for libxml2 (instead of libxml2 silently installing files that won't work right), until a proper fix for this exists in MacPorts base.

Note: See TracTickets for help on using tickets.