[MacPorts] #21583: libxml2 2.7.4 +universal. Pkg-config error
MacPorts
noreply at macports.org
Thu Oct 8 22:36:58 PDT 2009
#21583: libxml2 2.7.4 +universal. Pkg-config error
----------------------------------+-----------------------------------------
Reporter: huw@… | Owner: cedric.luthi@…
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: snowleopard
Port: libxml2 |
----------------------------------+-----------------------------------------
Changes (by ryandesign@…):
* cc: ryandesign@… (added)
* status: closed => reopened
* resolution: fixed =>
Old description:
> 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.
New description:
{{{
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.
--
Comment:
This will occur if you try to install libxml2 +universal but you have not
installed its dependencies +universal. The
[attachment:libxml2-archcheck.diff 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 [ticket:20728 proper fix] for this exists in MacPorts base.
--
Ticket URL: <http://trac.macports.org/ticket/21583#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list