Monthly Archives: July 2011

In Auckland again!

Seems like I’m spending half my time up in Auckland lately!

I’ll be up from Monday 25th until Thursday 28th midday – it’s going to be pretty flatout attending conferences and meetings with clients and attending the commsday event that I’m representing my employeer at.

Keen for a catch up on Monday evening with anyone around in the CBD, otherwise I may have time on Tue/Wed evening, but it will depend what else comes up.

 

Where is my -liberty?

Came across an annoying packaging situation on Fedora the other night – I was backporting a kernel from Fedora 15 to Fedora 13 in order to try and fix a stability issue on my Lenovo X201 with docking/undocking.

When building the kernel, came across the following error during compile:

/home/build/packages/BUILDROOT/kernel-2.6.38.8-32.fc13.x86_64/usr/src/kernels -name ‘.*.cmd’ -exec rm -f ‘{}’ ‘;’+ make -j4 -C tools/perf -s V=1  HAVE_CPLUS_DEMANGLE=1 prefix=/usr allPERF_VERSION = 2.6.38.8-32.fc13.x86_64 * new build flags or prefix/usr/bin/ld: cannot find -liberty collect2: ld returned 1 exit statusmake: *** [perf] Error 1error: Bad exit status from /var/tmp/rpm-tmp.po5h29 (%build)RPM build errors:    Bad exit status from /var/tmp/rpm-tmp.po5h29 (%build)

Typically, when a library is missing, it’s  a case of installing the library-devel package in order to statisfy build requirements.

-liberty is a special situation though, I was unable to find  development package – or for that matter, even a regular package.

Turns out, the package is actually GNU libiberty and doesn’t ship as a separate package –  instead it’s only used when compiling binutils and the Fedora 13 version appears to be missing various files required.

I ended up backporting binutils from Fedora 15 and install both binutils-devel to get libiberty headers, along with binutils-debuginfo in order to get the source tree for libiberty installed to /usr/src/.

After this, my kernel build completed quite happily. :-)