Opened 15 years ago

Closed 14 years ago

#21583 closed defect (fixed)

libxml2 2.7.4 +universal. Pkg-config error

Reported by: huw@… Owned by: 0xced (Cédric Luthi)
Priority: Normal Milestone:
Component: ports Version:
Keywords: snowleopard Cc: ryandesign (Ryan Carsten Schmidt)
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.

Attachments (1)

libxml2-archcheck.diff (571 bytes) - added by ryandesign (Ryan Carsten Schmidt) 15 years ago.

Download all attachments as: .zip

Change History (7)

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.

comment:5 Changed 14 years ago by jmroot (Joshua Root)

Cc: jmr@… removed

comment:6 in reply to:  4 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: reopenedclosed

Replying to ryandesign@…:

The attached patch could be used to ensure users encounter a proper error message for this situation for libxml2

Applied the patch in r60336.

Note: See TracTickets for help on using tickets.