I ran into this trouble:
--------------------------------------
/usr/lib/gcc/i486-pc-linux-gnu/4.5.3/../../../../lib/libfreetype.a(ftbzip2.o): 
In function `ft_bzip2_stream_close':
(.text+0x121): undefined reference to `BZ2_bzDecompressEnd'
/usr/lib/gcc/i486-pc-linux-gnu/4.5.3/../../../../lib/libfreetype.a(ftbzip2.o): 
In function `ft_bzip2_file_fill_output':
(.text+0x1e3): undefined reference to `BZ2_bzDecompress'
/usr/lib/gcc/i486-pc-linux-gnu/4.5.3/../../../../lib/libfreetype.a(ftbzip2.o): 
In function `ft_bzip2_stream_io':
(.text+0x3cb): undefined reference to `BZ2_bzDecompressEnd'
/usr/lib/gcc/i486-pc-linux-gnu/4.5.3/../../../../lib/libfreetype.a(ftbzip2.o): 
In function `ft_bzip2_stream_io':
(.text+0x41f): undefined reference to `BZ2_bzDecompressInit'
/usr/lib/gcc/i486-pc-linux-gnu/4.5.3/../../../../lib/libfreetype.a(ftbzip2.o): 
In function `FT_Stream_OpenBzip2':
(.text+0x593): undefined reference to `BZ2_bzDecompressInit'
--------------------------------------
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-1.5.4.4/work/splashutils-1.5.4.4/src/Makefile(.*)
 needs to be extended, so here is what it fixes (quick'n'dirty, I know):

--------------------------------------
fbsplashctl_LDADD = libfbsplashrender.la libfbsplash.la $(PTHREAD_STATIC_LIBS) 
$(RT_LIBS) $(GPM_LIBS) /usr/lib/libbz2.a
--------------------------------------

All what I have added was "/usr/lib/libbz2.a" and the linker is happy again. :)

I know it is not 'final' so can a C hacker come up and fix this?

Roland

Reply via email to