Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384131 - media-gfx/splashutils-1.5.4.4: fails to build, /usr/lib64/libz.a: No such file or directory, missing dep?
Summary: media-gfx/splashutils-1.5.4.4: fails to build, /usr/lib64/libz.a: No such fil...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michal Januszewski (RETIRED)
URL:
Whiteboard:
Keywords:
: 378751 386663 387525 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-22 19:39 UTC by Robin Johnson
Modified: 2011-10-19 03:10 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
splashutils-1.5.4.4.ebuild.patch (splashutils-1.5.4.4.ebuild.patch,2.34 KB, patch)
2011-10-01 15:20 UTC, Peter Volkov (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-09-22 19:39:28 UTC
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -g -I/usr/include/freetype2 -Wl,-O1 -Wl,--as-needed -L/usr/lib64 -o fbtruetype -Wl,-O1 -Wl,--as-needed -L/usr/lib64 fbtruetype.o messages.o console.o ttf.o luxisri.o -lfreetype -lm
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -g -I/usr/include/freetype2 -Wl,-O1 -Wl,--as-needed -L/usr/lib64 -static -o fbtruetype.static -Wl,-O1 -Wl,--as-needed -L/usr/lib64 fbtruetype.o messages.o console.o ttf.o luxisri.o /usr/lib64/libfreetype.a /usr/lib64/libz.a /usr/lib64/libbz2.a -lm
x86_64-pc-linux-gnu-gcc: /usr/lib64/libz.a: No such file or directory
make[1]: *** [fbtruetype.static] Error 1
make[1]: Leaving directory `/dev/shm/portage/media-gfx/splashutils-1.5.4.4/work/miscsplashutils-0.1.8/fbtruetype'
make: *** [all] Error 2
emake failed
 * ERROR: media-gfx/splashutils-1.5.4.4 failed (configure phase):
 *   failed to build miscsplashutils

My zlib is not build with USE=static-libs, but I also see that splashutils has it's own zlib sources internally, and doesn't depend on zlib at all.

Either splashutils should have a depend on zlib[static-libs], or something needs to be changed w/the bundled zlib.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-09-22 19:39:48 UTC
# emerge --info
Portage 2.2.0_alpha59 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 3.1.0-rc6 x86_64)
=================================================================
System uname: Linux-3.1.0-rc6-x86_64-Intel-R-_Core-TM-_i7-2620M_CPU_@_2.70GHz-with-gentoo-2.0.3
Timestamp of tree: Thu, 22 Sep 2011 18:30:01 +0000
ccache version 3.1.6 [enabled]
app-shells/bash:          4.2_p10
dev-lang/python:          2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.5, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg ccache collision-protect distlocks ebuild-locks fixlafiles fixpackages lmirror mirror multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.osuosl.org/ rsync://mirror.the-best-hosting.net/gentoo-distfiles"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_CA en_GB en_ZA en_US en af"
MAKEOPTS="-j8 -l10"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/dev/shm"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="a52 aac aalib acl acpi adns adplug agg aio alsa amd64 amr animgif ares arts audiofile audit avahi bash-completion berkdb bluetooth bonjour bzip2 cairo calendar cdaudio cdda cddb cdio cdparanoia cdr chardet chm clamav cli consolekit cracklib crypt cscope css ctype cups curl curlwrappers cvs cxx d3d daap dbus dc1394 designer-plugin dia diskio djbfft djvu dri dts dv dvb dvd dvdr dvdread ebook emf encode exif expat fam ffmpeg fftw firefox flac fltk fontconfig foomaticdb fortran gd gdbm gdu geoip gif gimp glut gmp gnokii gnutls gpm gps graphviz gsm gstreamer hal ical iconv id3tag idea ieee1394 imagemagick imlib inkjar ipod ipv6 jack java5 java6 javacomm jbig jingle jpeg jpeg2k lash lcms ldap libedit libgcrypt libnotify libsamplerate llvm lm_sensors logitech-mouse lzma lzo mad maildir mhash midi mikmod mmap mmx mng modplug modules mozilla mp3 mp3tunes mp4 mpeg mplayer mudflap multilib multitarget musepack nas ncurses nls nocd nptl nptlonly nsplugin offensive ofx ogg openal openexr opengl openmp openvg oss otr pam pango pccntl pch pcre pda pdf perl plotutils png policykit portaudio posix postscript povray ppds pppd pulseaudio python qt3support quicktime raw rdesktop readline reflection rpc rss ruby savedconfig scanner sdl semantic-desktop session sid simplexml slp smp sms smux sndfile snmp sockets socks5 solver speex spell spl sqlite sqlite3 sse sse2 ssl ssse3 startup-notification subversion svg symlink sysfs syslog sysvipc taglib tcpd theora threads tidy tiff timidity truetype tta twolame udev unicode urandom usb v4l v4l2 vcd vcdx videos vim-syntax vnc vorbis vorbis-psy wavpack webkit wideband wifi wma wmf x264 xanim xattr xcb xcomposite xfs xine xinerama xinetd xml xorg xosd xpm xrandr xscreensaver xsl xulrunner xv xvid zeroconf zlib" ALSA_CARDS="hda-intel usb-audio usb-usx2y serial-u16550 virmidi seq-dummy dummy" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias asis auth_digest imagemap log_forensic proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="efi-64 multiboot pc efi-32" INPUT_DEVICES="evdev keyboard mouse void wacom synaptics" KERNEL="linux" LCD_DEVICES="g15 glk graphlcd iowarrior ncurses null png ppm text usbhub usblcd X xosd" LINGUAS="en_CA en_GB en_ZA en_US en af" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="dummy fbdev intel v4l vga vesa" XTABLES_ADDONS="account chaos condition delude dhcpmac dnetmap echo fuzzy geoip iface ipmark ipp2p ipset ipset6 ipv4options length2 logmark lscan pknock psd quota2 rawnat steal sysrq tarpit tee"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 lluisparcet 2011-09-24 09:20:08 UTC
Same problem with media-gfx/splashutils-1.5.4.3-r3 :

 *   Applying sed-1.5.6.patch ...
 *   Applying as-needed-2.2.6.patch ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-gfx/splashutils-1.5.4.3-r3/work/splashutils-1.5.4.3 ...
make -j9 CC=x86_64-pc-linux-gnu-gcc LIB=lib64 STRIP=true 
x86_64-pc-linux-gnu-gcc -march=core2 -mtune=generic -O2 -pipe -Wl,-O1 -Wl,--as-needed fbres.c -o fbres
x86_64-pc-linux-gnu-gcc -march=core2 -mtune=generic -O2 -pipe -Wl,-O1 -Wl,--as-needed usleep.c -o usleep
true usleep
true fbres
make[1]: Entering directory `/var/tmp/portage/media-gfx/splashutils-1.5.4.3-r3/work/miscsplashutils-0.1.8/fbtruetype'
x86_64-pc-linux-gnu-gcc -march=core2 -mtune=generic -O2 -pipe -I/usr/include/freetype2   -c -o fbtruetype.o fbtruetype.c
x86_64-pc-linux-gnu-gcc -march=core2 -mtune=generic -O2 -pipe -I/usr/include/freetype2   -c -o messages.o messages.c
x86_64-pc-linux-gnu-gcc -march=core2 -mtune=generic -O2 -pipe -I/usr/include/freetype2   -c -o console.o console.c
x86_64-pc-linux-gnu-gcc -march=core2 -mtune=generic -O2 -pipe -I/usr/include/freetype2   -c -o ttf.o ttf.c
x86_64-pc-linux-gnu-gcc -march=core2 -mtune=generic -O2 -pipe -I/usr/include/freetype2   -c -o luxisri.o luxisri.c
x86_64-pc-linux-gnu-gcc -march=core2 -mtune=generic -O2 -pipe -I/usr/include/freetype2 -Wl,-O1 -Wl,--as-needed -L/usr/lib64 -o fbtruetype -Wl,-O1 -Wl,--as-needed -L/usr/lib64 fbtruetype.o messages.o console.o ttf.o luxisri.o -lfreetype -lm
x86_64-pc-linux-gnu-gcc -march=core2 -mtune=generic -O2 -pipe -I/usr/include/freetype2 -Wl,-O1 -Wl,--as-needed -L/usr/lib64 -static -o fbtruetype.static -Wl,-O1 -Wl,--as-needed -L/usr/lib64 fbtruetype.o messages.o console.o ttf.o luxisri.o /usr/lib64/libfreetype.a /usr/lib64/libz.a -lm
/usr/lib64/libfreetype.a(ftbzip2.o): In function `ft_bzip2_stream_close':
(.text+0xb9): undefined reference to `BZ2_bzDecompressEnd'
/usr/lib64/libfreetype.a(ftbzip2.o): In function `ft_bzip2_file_fill_output':
(.text+0x18b): undefined reference to `BZ2_bzDecompress'
/usr/lib64/libfreetype.a(ftbzip2.o): In function `ft_bzip2_stream_io':
(.text+0x37f): undefined reference to `BZ2_bzDecompressEnd'
/usr/lib64/libfreetype.a(ftbzip2.o): In function `ft_bzip2_stream_io':
(.text+0x3d8): undefined reference to `BZ2_bzDecompressInit'
/usr/lib64/libfreetype.a(ftbzip2.o): In function `FT_Stream_OpenBzip2':
(.text+0x543): undefined reference to `BZ2_bzDecompressInit'
collect2: ld returned 1 exit status
make[1]: *** [fbtruetype.static] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-gfx/splashutils-1.5.4.3-r3/work/miscsplashutils-0.1.8/fbtruetype'
make: *** [all] Error 2
emake failed
 * ERROR: media-gfx/splashutils-1.5.4.3-r3 failed (configure phase):
 *   failed to build miscsplashutils
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_configure
 *   environment, line 2905:  Called die
 * The specific snippet of code:
 *       emake CC="${CC}" LIB=$(get_libdir) STRIP=true || die "failed to build miscsplashutils";

My emerge --info:

# emerge --info
Portage 2.1.10.11 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.3, glibc-2.12.2-r0, 2.6.39-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.39-gentoo-r3-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_740_@_1.73GHz-with-gentoo-2.0.3
Timestamp of tree: Thu, 22 Sep 2011 16:45:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=generic -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=core2 -mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ "
LANG="ca_ES.UTF-8"
LC_ALL="ca_ES.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ca ca_ES es es_ES"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.1.38/gentoo-portage"
USE="X a52 aac acpi alsa amd64 apm berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvb dvd dvdr eds emboss encode evo exif fbcondecor ffmpeg firefox flac fortran fuse gdbm gdu gif gnome gnome-keyring gstreamer gtk iconv java javascript jpeg laptop lcms ldap libnotify lm_sensors logrotate mad mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pango pcre pdf perl pic png policykit ppds pppd pulseaudio python qt3support readline samba sdl session slang spell sse sse2 ssl startup-notification symlink sysfs tcpd tiff truetype udev unicode usb vaapi vdpau vorbis x264 xcb xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="usb-af9015" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ca ca_ES es es_ES" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Aidan Marks 2011-09-24 23:00:31 UTC
+static-libs on ~x86 sys-libs/zlib and resolved the missing /usr/lib64/libz.a compile error for me.
Comment 4 Aidan Marks 2011-09-24 23:02:37 UTC
(In reply to comment #3)
> +static-libs on ~x86 sys-libs/zlib and resolved the missing /usr/lib64/libz.a
> compile error for me.

sorry typo, /usr/lib/libz.a in my case.
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2011-10-01 15:20:29 UTC
Created attachment 288449 [details, diff]
splashutils-1.5.4.4.ebuild.patch

Same issue. splashutils must depend on zlib[static-libs].

Also I found problem is that patch from bug 374203 just workarounds specific issue but not fixes it: freetype can be built with zlib2 support or without and in the first case patch splashutils-1.5.4.4-freetype-bz2.patch is required in the latter it's not. The real fix will be use of pkg-config. 

Patch in attachment fixes both issues. Please apply or give me Ok :)
Comment 6 Robert Cabrera 2011-10-02 02:11:21 UTC
(In reply to comment #5)
> Created attachment 288449 [details, diff]
> splashutils-1.5.4.4.ebuild.patch
> 
> Same issue. splashutils must depend on zlib[static-libs].
> 
> Also I found problem is that patch from bug 374203 just workarounds specific
> issue but not fixes it: freetype can be built with zlib2 support or without and
> in the first case patch splashutils-1.5.4.4-freetype-bz2.patch is required in
> the latter it's not. The real fix will be use of pkg-config. 
> 
> Patch in attachment fixes both issues. Please apply or give me Ok :)

How do I apply this patch? I'm a longtime Gentoo user, however I'm a truck driver not a programmer. I can see what is modified in the ebuild and can apply the changes by hand, but can't for the life of me figure out how to apply the patch to the previous patch or to both the ebuild and the patch simultaneously.

I know how to apply patches to my kernel for example, using the patch command, but doing so with this patch is giving me cryptic error messages.

Your help in explaining briefly how to apply it would be greatly appreciated. TIA
Comment 7 Peter Volkov (RETIRED) gentoo-dev 2011-10-02 10:45:29 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > Created attachment 288449 [details, diff]
> > splashutils-1.5.4.4.ebuild.patch

> How do I apply this patch?

cd /usr/portage/media-gfs/splashutils
wget 'https://384131.bugs.gentoo.org/attachment.cgi?id=288449&action=diff&collapsed=&context=patch&format=raw&headers=1' -O /tmp/splashutils-1.5.4.4.ebuild.patch
patch -i /tmp/splashutils-1.5.4.4.ebuild.patch -p0
repoman manifest
Comment 8 Peter Volkov (RETIRED) gentoo-dev 2011-10-02 19:11:51 UTC
*** Bug 378751 has been marked as a duplicate of this bug. ***
Comment 9 Robert Cabrera 2011-10-06 10:15:59 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > (In reply to comment #5)
> > > Created attachment 288449 [details, diff]
> > > splashutils-1.5.4.4.ebuild.patch
> 
> > How do I apply this patch?
> 
> cd /usr/portage/media-gfs/splashutils
> wget
> 'https://384131.bugs.gentoo.org/attachment.cgi?id=288449&action=diff&collapsed=&context=patch&format=raw&headers=1'
> -O /tmp/splashutils-1.5.4.4.ebuild.patch
> patch -i /tmp/splashutils-1.5.4.4.ebuild.patch -p0
> repoman manifest

Thanks for showing me how to apply the patch, but even with these instructions I was getting feedback about an error in line 50. The ebuild patched ok, but the patch of the previous freetype patch failed.

So I got desperate and moved the entire splashutils folder to my root directory and resynced portage. The splashutils directory was recreated but there was no longer a freetype patch in the files folder.

Then I tried emerge -1 splashutils which of course failed, but it failed in a different place mentioning zlib.

It was at this point I had a eureka moment! I reemerged zlib with USE="static", then I emerge -1 splashutils and viola! It compiled and installed!

So now in order to build successfully splashutils and/or tuxonice-userui one must have the following built with USE:

media-libs/lcms:0 static-libs
media-libs/libpng static-libs
media-libs/jpeg static-libs
virtual/jpeg static-libs
app-arch/bzip2 static-libs static
media-libs/libmng static-libs
media-libs/freetype static-libs
sys-libs/zlib static-libs

If these packages are emerged as stated above both will compile and install as expected.

I hope this helps
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2011-10-17 23:50:13 UTC
*** Bug 386663 has been marked as a duplicate of this bug. ***
Comment 11 Billy DeVincentis 2011-10-18 11:31:32 UTC
Can someone please post the modified ebuild here.
Comment 12 Peter Volkov (RETIRED) gentoo-dev 2011-10-18 12:59:25 UTC
Well, I've commited my patch. Michal if you see any problems with such fix, please, contact me (or reopen thi bug report) and I'll search for better solution.
Comment 13 Peter Volkov (RETIRED) gentoo-dev 2011-10-18 13:14:54 UTC
*** Bug 387525 has been marked as a duplicate of this bug. ***
Comment 14 Dustin Polke 2011-10-18 19:38:27 UTC
(In reply to comment #12)
> Well, I've commited my patch. Michal if you see any problems with such fix,
> please, contact me (or reopen thi bug report) and I'll search for better
> solution.
Peter, with your patch, I still get the following:

>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-gfx/splashutils-1.5.4.3-r3/work/splashutils-1.5.4.3 ...
make -j5 CC=x86_64-pc-linux-gnu-gcc LIB=lib64 STRIP=true 
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=core2 -msse4.1 --param l1-cache-size=32     --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=generic -Wl,-O1 -Wl,--as-needed -Wl,-z,relro -Wl,-z,now fbres.c -o fbres
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=core2 -msse4.1 --param l1-cache-size=32     --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=generic -Wl,-O1 -Wl,--as-needed -Wl,-z,relro -Wl,-z,now usleep.c -o usleep
true usleep
true fbres
make[1]: Entering directory `/var/tmp/portage/media-gfx/splashutils-1.5.4.3-r3/work/miscsplashutils-0.1.8/fbtruetype'
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=core2 -msse4.1 --param l1-cache-size=32     --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=generic -I/usr/include/freetype2   -c -o fbtruetype.o fbtruetype.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=core2 -msse4.1 --param l1-cache-size=32     --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=generic -I/usr/include/freetype2   -c -o messages.o messages.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=core2 -msse4.1 --param l1-cache-size=32     --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=generic -I/usr/include/freetype2   -c -o console.o console.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=core2 -msse4.1 --param l1-cache-size=32     --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=generic -I/usr/include/freetype2   -c -o ttf.o ttf.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=core2 -msse4.1 --param l1-cache-size=32     --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=generic -I/usr/include/freetype2   -c -o luxisri.o luxisri.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=core2 -msse4.1 --param l1-cache-size=32     --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=generic -I/usr/include/freetype2 -Wl,-O1 -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -L/usr/lib64 -o fbtruetype -Wl,-O1 -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -L/usr/lib64 fbtruetype.o messages.o console.o ttf.o luxisri.o -lfreetype -lm
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=core2 -msse4.1 --param l1-cache-size=32     --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=generic -I/usr/include/freetype2 -Wl,-O1 -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -L/usr/lib64 -static -o fbtruetype.static -Wl,-O1 -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -L/usr/lib64 fbtruetype.o messages.o console.o ttf.o luxisri.o /usr/lib64/libfreetype.a /usr/lib64/libz.a -lm
/usr/lib64/libfreetype.a(ftbzip2.o): In function `FT_Stream_OpenBzip2':
(.text+0x1c3): undefined reference to `BZ2_bzDecompressInit'
/usr/lib64/libfreetype.a(ftbzip2.o): In function `ft_bzip2_stream_close':
(.text+0x249): undefined reference to `BZ2_bzDecompressEnd'
/usr/lib64/libfreetype.a(ftbzip2.o): In function `ft_bzip2_file_fill_output':
(.text+0x363): undefined reference to `BZ2_bzDecompress'
/usr/lib64/libfreetype.a(ftbzip2.o): In function `ft_bzip2_stream_io':
(.text+0x50c): undefined reference to `BZ2_bzDecompressEnd'
/usr/lib64/libfreetype.a(ftbzip2.o): In function `ft_bzip2_stream_io':
(.text+0x565): undefined reference to `BZ2_bzDecompressInit'
collect2: ld returned 1 exit status
make[1]: *** [fbtruetype.static] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/media-gfx/splashutils-1.5.4.3-r3/work/miscsplashutils-0.1.8/fbtruetype'
make: *** [all] Error 2
emake failed
Comment 15 Christopher Einkorn 2011-10-19 01:31:42 UTC
I just did a successful emerge of media-gfx/splashutils on a fresh system with ">=media-gfx/splashutils-1.5.4.4 ~amd64" and I did not run into these issues.  

===============================================================================

I initially attempted a merge of 1.5.4.3-r3 which failed and lead me to this bug report.  The following was my failed 1.5.4.3-r3 emerge:

x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -I/usr/include/freetype2 -Wl,-O1 -Wl,--as-needed -L/usr/lib64 -static -o fbtruetype.static -Wl,-O1 -Wl,--as-needed -L/usr/lib64 fbtruetype.o messages.o console.o ttf.o luxisri.o /usr/lib64/libfreetype.a /usr/lib64/libz.a -lm
/usr/lib64/libfreetype.a(ftbzip2.o): In function `ft_bzip2_stream_close':
(.text+0xb9): undefined reference to `BZ2_bzDecompressEnd'
/usr/lib64/libfreetype.a(ftbzip2.o): In function `ft_bzip2_file_fill_output':
(.text+0x18b): undefined reference to `BZ2_bzDecompress'
/usr/lib64/libfreetype.a(ftbzip2.o): In function `ft_bzip2_stream_io':
(.text+0x37f): undefined reference to `BZ2_bzDecompressEnd'
/usr/lib64/libfreetype.a(ftbzip2.o): In function `ft_bzip2_stream_io':
(.text+0x3d8): undefined reference to `BZ2_bzDecompressInit'
/usr/lib64/libfreetype.a(ftbzip2.o): In function `FT_Stream_OpenBzip2':
(.text+0x543): undefined reference to `BZ2_bzDecompressInit'
collect2: ld returned 1 exit status
make[1]: *** [fbtruetype.static] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-gfx/splashutils-1.5.4.3-r3/work/miscsplashutils-0.1.8/fbtruetype'
make: *** [all] Error 2
emake failed
 * ERROR: media-gfx/splashutils-1.5.4.3-r3 failed (configure phase):
 *   failed to build miscsplashutils
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_configure
 *   environment, line 2875:  Called die
 * The specific snippet of code:
 *       emake CC="${CC}" LIB=$(get_libdir) STRIP=true || die "failed to build miscsplashutils";
Comment 16 Peter Volkov (RETIRED) gentoo-dev 2011-10-19 03:10:09 UTC
(In reply to comment #14)
> Peter, with your patch, I still get the following:
> 
> >>> Configuring source in /var/tmp/portage/media-gfx/splashutils-1.5.4.3-r3/work/splashutils-1.5.4.3 ...

Fix was only in 1.5.4.4. I think it's worth to stabilize it, but there is bug 379873. So ... Guys, if anyone may help there (with testing or idea) you are more then welcome.

That said I've applied fix in 1.5.4.3-r3 also so it should not fail with this error too.