Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo User (http://www.linux-archive.org/gentoo-user/)
-   -   Possible fix for splashutils 1.5.4.4 (http://www.linux-archive.org/gentoo-user/701734-possible-fix-splashutils-1-5-4-4-a.html)

"Roland Häder" 09-08-2012 03:05 PM

Possible fix for splashutils 1.5.4.4
 
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


All times are GMT. The time now is 07:30 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.