moria.org.uk

Tue, 13 Dec 2005

Pango on FreeBSD 4

I was having some problems compiling gtk20 on a FreeBSD 4 box at work today. Having finally sorted it, this note is for Google to find so the next person doesn't have to debug it all over again.

The problem was the configure script failing to detect pango. There was a misleading error message gnome-config not found, which had me chasing three year old Google hits for an hour, until figuring out that gnome-config is only for Gnome version 1. pkg-config falls back to it to keep compatibility.

The library it fails to find is in fact libpangocairo — specifically, this library didn't get built, and so there is no pangocairo.pc for pkg-config to find. cairo was built, so pango must have missed it. It turned out that the test for cairo had failed, because cairo needs threads, but cairo.pc doesn't list libc_r (FreeBSD 4's threading library) as a dependency (probably because I am the only person daft enough to compile something as modern as cairo on such an old system).

So, recompile cairo; interrupt the build and edit cairo.pc, adding -lc_r to the libs; finish the compile, make deinstall reinstall, and rebuild from pango onwards. Solved.

[21:40] | [/computers/freebsd] | #

Colin Phipps.
Archives
January 2007
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
Web Sites
zsync
PrBoom
About Kye
Credits
Blosxom
Powered by
Blogs that link here
[Valid Atom]