Gentoo Archives: gentoo-user

From: "Roland Häder" <r.haeder@×××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Possible fix for splashutils
Date: Sat, 08 Sep 2012 15:10:45
Message-Id: trinity-dcb9eb0f-4ff9-46b8-8b48-2a4e2e0bc51b-1347116730503@3capp-webde-bs09
1 I ran into this trouble:
2 --------------------------------------
3 /usr/lib/gcc/i486-pc-linux-gnu/4.5.3/../../../../lib/libfreetype.a(ftbzip2.o): In function `ft_bzip2_stream_close':
4 (.text+0x121): undefined reference to `BZ2_bzDecompressEnd'
5 /usr/lib/gcc/i486-pc-linux-gnu/4.5.3/../../../../lib/libfreetype.a(ftbzip2.o): In function `ft_bzip2_file_fill_output':
6 (.text+0x1e3): undefined reference to `BZ2_bzDecompress'
7 /usr/lib/gcc/i486-pc-linux-gnu/4.5.3/../../../../lib/libfreetype.a(ftbzip2.o): In function `ft_bzip2_stream_io':
8 (.text+0x3cb): undefined reference to `BZ2_bzDecompressEnd'
9 /usr/lib/gcc/i486-pc-linux-gnu/4.5.3/../../../../lib/libfreetype.a(ftbzip2.o): In function `ft_bzip2_stream_io':
10 (.text+0x41f): undefined reference to `BZ2_bzDecompressInit'
11 /usr/lib/gcc/i486-pc-linux-gnu/4.5.3/../../../../lib/libfreetype.a(ftbzip2.o): In function `FT_Stream_OpenBzip2':
12 (.text+0x593): undefined reference to `BZ2_bzDecompressInit'
13 --------------------------------------
14 This happens when the build script attempts to link fbsplashctl. I had to unsilent the whole process and found out that a variable in /var/tmp/portage/media-gfx/splashutils-*) needs to be extended, so here is what it fixes (quick'n'dirty, I know):
16 --------------------------------------
17 fbsplashctl_LDADD = $(PTHREAD_STATIC_LIBS) $(RT_LIBS) $(GPM_LIBS) /usr/lib/libbz2.a
18 --------------------------------------
20 All what I have added was "/usr/lib/libbz2.a" and the linker is happy again. :)
22 I know it is not 'final' so can a C hacker come up and fix this?
24 Roland