Ticket #22628 (closed defect: invalid)
cairo configure fails due to odd fontconfig pkgconfig .pc file
| Reported by: | dbsgeo@… | Owned by: | ryandesign@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.8.1 |
| Keywords: | Cc: | ||
| Port: | fontconfig |
Description
I'm on snow leopard, 10.6.2.
The fontconfig.pc generated by the latest fontconfig +universal port has these lines:
#ifndef __LP64__ Libs.private: -lexpat -L/opt/local/lib -lfreetype -lz -liconv #else /* __LP64__ */ Libs.private: -lexpat -L/opt/local/lib -lfreetype -lz #endif /* __LP64__ */
such that when you ask for the libs you get an error response:
$ pkg-config --libs fontconfig Libs.private field occurs twice in '/opt/local/lib/pkgconfig/fontconfig.pc'
I think this is what is now breaking the cairo configure step:
checking for png... yes checking whether cairo's PNG functions feature could be enabled... yes checking for cairo's FreeType font backend feature... checking for FONTCONFIG... no no checking whether cairo's FreeType font backend feature could be enabled... no (requires fontconfig) configure: error: FreeType font backend feature could not be enabled Warning: the following items did not execute (for cairo): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install Error: Status 1 encountered during processing.
As changing the .pc lines to:
Libs.private: -lexpat -L/opt/local/lib -lfreetype -lz -liconv
...allows cairo to compile.
Change History
Note: See
TracTickets for help on using
tickets.

