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] | #

Sun, 20 Mar 2005

Support for it87 Chipset in consolehm

This quick hack makes the consolehm utility for FreeBSD return the right CPU & motherboard temperature for motherboards with the it87 i2c chip. I just nicked the register offsets from the it87.c driver for Linux. (Needed it to verify the CPU power saving was working under FreeBSD.)

[11:49] | [/computers/freebsd] | #

Wed, 02 Mar 2005

All running nicely on FreeBSD

As I am having to use FreeBSD a lot at work now, I thought I would switch my home machine to it as well. I have used FreeBSD before, but I find it rather easier to use now I have found a bit more about it. The portinstall framework is less complete and nothing like as slick compared to Debian's package management, but it does reliably build stuff from source. And I rather like the idea of pulling the sources from the main distribution site, instead of getting the sanitised versions that Debian provide.

There were a few minor glitches. I have an SIS 7018 on-board sound chip, which did not work out of the box. But adding snd_t4dwave_load="YES" to loader.conf got it working (it's a cheap copy of the trident chip). And I am rusty at configuring XFree (well, x.org in this case) the old fashioned way — Debian's debconf interface to the X config is much nicer.

Of course, the best part of FreeBSD is the use of CVSup for updating. That is one fine program: like rsync it gives the impression of a very efficient and optimised transfer protocol.

[22:27] | [/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]