Opened 11 years ago

Closed 11 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 Schmidt)
Port: libxml2

Description (last modified by ryandesign (Ryan 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 Schmidt) 11 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 11 years ago by huw@…

Cc: huw@… added

Cc Me!

comment:2 Changed 11 years ago by mnick@…

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

comment:3 Changed 11 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 11 years ago by ryandesign (Ryan Schmidt)

Attachment: libxml2-archcheck.diff added

comment:4 Changed 11 years ago by ryandesign (Ryan 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 11 years ago by jmroot (Joshua Root)

Cc: jmr@… removed

comment:6 in reply to:  4 Changed 11 years ago by ryandesign (Ryan 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.