Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83623 - pkg-config of fontconfig does not specify -lexpat
Summary: pkg-config of fontconfig does not specify -lexpat
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All All
: Normal trivial (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-28 17:37 UTC by Stian Skjelstad
Modified: 2006-04-07 04:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stian Skjelstad 2005-02-28 17:37:07 UTC
pkg-config --libs fontconfig  does not contain -lexpat. This is not noticed when linking dynamically, but when linking static it is needed.
Comment 1 Stian Skjelstad 2005-02-28 17:41:35 UTC
It lacks -lfreetype aswell on my system
Comment 2 Stian Skjelstad 2005-02-28 17:51:49 UTC
Furter...  pkg-config gtk+-2.0 (x11 target) does not depend on pangoft2, so if you try to link in static, -lpango lacks it's backend.

If you want to compile any gtk+-2.0 program statically now you need do the following currently

`pkg-config gtk+-2.0 pangoft2 --libs` -static -lexpat

(Also... this depends on atk being compiled with static support which is not possible with the current atk ebuild.... I fiddled with it some does ago.. I recall it was atk that was lacking that. It might have been another package, but that is not relevant for these problems)
Comment 3 foser (RETIRED) gentoo-dev 2006-04-07 04:25:56 UTC
I added a somewhat crude pkgconfig fix for this to fontconfig-2.3.2-r1 . Thanks for the report.