Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 374203 - media-gfx/splashutils-1.5.4.4 fails to build against media-libs/freetype-2.4.5
Summary: media-gfx/splashutils-1.5.4.4 fails to build against media-libs/freetype-2.4.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michal Januszewski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-06 06:16 UTC by Timo A. Hummel
Modified: 2012-05-06 18:47 UTC (History)
7 users (show)

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


Attachments
fbtruetype-bzip2.patch (fbtruetype-bzip2.patch,431 bytes, patch)
2011-07-12 14:08 UTC, Theofilos Intzoglou
Details | Diff
splashutils-1.5.4.4-r1.patch (splashutils-1.5.4.4-r1.diff,465 bytes, patch)
2011-07-12 22:17 UTC, Theofilos Intzoglou
Details | Diff
splashutils-1.5.4.4 build log (build.log,19.37 KB, text/plain)
2011-08-02 10:02 UTC, Philipp Richter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timo A. Hummel 2011-07-06 06:16:16 UTC
>>> Emerging (1 of 1) media-gfx/splashutils-1.5.4.4
 * splashutils-lite-1.5.4.4.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                    [ ok ]
 * splashutils-gentoo-1.0.17.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                   [ ok ]
 * miscsplashutils-0.1.8.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                       [ ok ]
 * libpng-1.4.3.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                                [ ok ]
 * jpegsrc.v8a.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                                  [ ok ]
 * freetype-2.3.12.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                             [ ok ]
 * zlib-1.2.3.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                                  [ ok ]
 * Package:    media-gfx/splashutils-1.5.4.4
 * Repository: gentoo
 * Maintainer: spock@gentoo.org
 * USE:        amd64 elibc_glibc gpm kernel_linux mng multilib png truetype userland_GNU
 * FEATURES:   preserve-libs sandbox
>>> Unpacking source...
>>> Unpacking splashutils-lite-1.5.4.4.tar.bz2 to /var/tmp/portage/media-gfx/splashutils-1.5.4.4/work
>>> Unpacking splashutils-gentoo-1.0.17.tar.bz2 to /var/tmp/portage/media-gfx/splashutils-1.5.4.4/work
>>> Unpacking miscsplashutils-0.1.8.tar.bz2 to /var/tmp/portage/media-gfx/splashutils-1.5.4.4/work
>>> Unpacking libpng-1.4.3.tar.bz2 to /var/tmp/portage/media-gfx/splashutils-1.5.4.4/work
>>> Unpacking jpegsrc.v8a.tar.gz to /var/tmp/portage/media-gfx/splashutils-1.5.4.4/work
>>> Unpacking freetype-2.3.12.tar.bz2 to /var/tmp/portage/media-gfx/splashutils-1.5.4.4/work
>>> Unpacking zlib-1.2.3.tar.bz2 to /var/tmp/portage/media-gfx/splashutils-1.5.4.4/work
>>> Source unpacked in /var/tmp/portage/media-gfx/splashutils-1.5.4.4/work
>>> Preparing source in /var/tmp/portage/media-gfx/splashutils-1.5.4.4/work/splashutils-1.5.4.4 ...
 * Applying splashutils-1.5.4.4-gentoo-typo-fix.patch ...                                                                                                                                                                              [ ok ]
 * Running eautoreconf in '/var/tmp/portage/media-gfx/splashutils-1.5.4.4/work/splashutils-1.5.4.4' ...
 * Running aclocal -I m4 ...                                                                                                                                                                                                           [ ok ]
 * Running libtoolize --copy --force --install --automake ...                                                                                                                                                                          [ ok ]
 * Running aclocal -I m4 ...                                                                                                                                                                                                           [ ok ]
 * Running autoconf ...                                                                                                                                                                                                                [ ok ]
 * Running autoheader ...                                                                                                                                                                                                              [ ok ]
 * Running automake --add-missing --copy ...                                                                                                                                                                                           [ ok ]
 * Running elibtoolize in: splashutils-1.5.4.4/libs/jpeg-8a/
 *   Applying portage-2.2.patch ...
 *   Applying sed-1.5.6.patch ...
 *   Applying as-needed-2.2.6.patch ...
 * Running elibtoolize in: splashutils-1.5.4.4/libs/freetype-2.3.12/builds/unix/
 *   Applying portage-2.2.patch ...
 *   Applying sed-1.5.6.patch ...
 *   Applying as-needed-2.2.6.patch ...
 * Running elibtoolize in: splashutils-1.5.4.4/libs/libpng-1.4.3/
 *   Applying portage-2.2.patch ...
 *   Applying sed-1.5.6.patch ...
 *   Applying as-needed-2.2.6.patch ...
 * Running elibtoolize in: splashutils-1.5.4.4/
 *   Applying portage-1.2.0.patch ...
 *   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.4/work/splashutils-1.5.4.4 ...
make -j18 CC=x86_64-pc-linux-gnu-gcc LIB=lib64 STRIP=true 
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -Wl,-O1 -Wl,--as-needed fbres.c -o fbres
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -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.4/work/miscsplashutils-0.1.8/fbtruetype'
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -I/usr/include/freetype2   -c -o fbtruetype.o fbtruetype.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -I/usr/include/freetype2   -c -o messages.o messages.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -I/usr/include/freetype2   -c -o console.o console.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -I/usr/include/freetype2   -c -o ttf.o ttf.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -I/usr/include/freetype2   -c -o luxisri.o luxisri.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -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 -O2 -pipe -march=native -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.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
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_configure
 *   environment, line 2868:  Called die
 * The specific snippet of code:
 *       emake CC="${CC}" LIB=$(get_libdir) STRIP=true || die "failed to build miscsplashutils";
 * 
 * If you need support, post the output of 'emerge --info =media-gfx/splashutils-1.5.4.4',
 * the complete build log and the output of 'emerge -pqv =media-gfx/splashutils-1.5.4.4'.
 * The complete build log is located at '/var/tmp/portage/media-gfx/splashutils-1.5.4.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/splashutils-1.5.4.4/temp/environment'.
 * S: '/var/tmp/portage/media-gfx/splashutils-1.5.4.4/work/splashutils-1.5.4.4'

>>> Failed to emerge media-gfx/splashutils-1.5.4.4, Log file:

>>>  '/var/tmp/portage/media-gfx/splashutils-1.5.4.4/temp/build.log'


Reproducible: Always
Comment 1 Timo A. Hummel 2011-07-06 06:16:30 UTC
Portage 2.2.0_alpha43 (default/linux/amd64/10.0/desktop, gcc-4.5.2, glibc-2.13-r2, 2.6.38-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 06 Jul 2011 05:30:01 +0000
ccache version 3.1.5 [disabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2, 3.1.3-r1, 3.2
dev-util/ccache:          3.1.5
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.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.5.2
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.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
Repositories: gentoo vmware steev benf eyolfson felicitus_overlay
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de"
MAKEOPTS="-j18"
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="/var/lib/layman/vmware /var/lib/layman/steev /var/lib/layman/benf /var/lib/layman/eyolfson /home/felicitus/projects/gentoo/felicitus_overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 autoipd avahi bash-completion berkdb bluetooth branding bzip2 cairo cardbus cdda cdr cli consolekit cracklib crypt cscope cups cxx dbus dga dhclient dhcpcd dri dts dvb dvd dvdr emboss encode esd exif fam fbcon ffmpeg fftw firefox flac fontconfig foomaticdb fortran gdbm gdu gif gnome gnome-keyring gpm gtk guile iconv id3tag imlib ipv6 java jpeg jpeg2k kerberos ladspa lame laptop lcms ldap libffi libnotify libsamplerate lv2 lzo mad mdnsresponder-compat midi mmx mng modules mp3 mp4 mpeg mudflap multilib mysql mysqli ncurses network-cron nls nptl nptlonly nsplugin nss ntp ogg opengl openmp oss pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 quicktime readline resolvconf samba sdl session smp speex spell sse sse2 ssl ssse3 startup-notification static-libs svg sysfs taglib tcpd theora threads tiff truetype udev unicode usb vim-syntax vorbis wmf x264 xattr xcb xcomposite xinerama xml xorg xulrunner xv xvid zeroconf zlib zsh-completion" 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" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" PHP_TARGETS="php-5.3 php-5.2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="r600 radeon" 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 2 Timo A. Hummel 2011-07-06 06:17:21 UTC
This is NOT the same as bug #373121

Downgrading freetype to 2.4.4 makes splashutils build again.
Comment 3 Agostino Sarubbo gentoo-dev 2011-07-06 10:22:40 UTC
Please add build.log as attachment for the next time.
Comment 4 Theofilos Intzoglou 2011-07-12 14:08:07 UTC
Created attachment 279877 [details, diff]
fbtruetype-bzip2.patch

I can confirm that splashutils-1.5.4.4 fails to compile. miscsplashutils-0.1.8 fails to build a static version of the fbtruetype utility. This happens because libfreetype needs libbz2.a library to be included when you want to create a static version of a program. There are two solutions to this:

1) Don't build fbtruetype.static
2) Add libbz2.a in the appropriate Makefile

As I don't really know if the static version of fbtruetype is useful or not, I went with the second solution and created a patch for the Makefile. Hope this helps!
Comment 5 Theofilos Intzoglou 2011-07-12 22:17:42 UTC
Created attachment 279915 [details, diff]
splashutils-1.5.4.4-r1.patch

Here is the patch you need to apply to the current ebuild. It checks for the freetype version and if it's greater than 2.4.4, it applies the bz2 patch I posted before. The bz2 patch needs to be named splashutils-1.5.4.4-freetype-bz2.patch. Please test
Comment 6 Robert Cabrera 2011-07-15 03:46:08 UTC
I can also confirm splashutils failing to build on my ~x86 laptop with the same results. I installed Theofilos Intzoglou patches into my personal overlay and it built and installed properly.

These patches should be included into the tree ASAP. TIA
Comment 7 Billy DeVincentis 2011-07-23 11:27:35 UTC
I have tried adding your patch but it fails to apply. I think you may have deviated from your instructions and not documented it. Please zip the entire splashutils folder from your overlay and upload it here.
Thanks
Comment 8 Michal Januszewski (RETIRED) gentoo-dev 2011-07-23 22:37:00 UTC
Fixed in CVS, thanks for the patch.
Comment 9 Philipp Richter 2011-08-02 10:02:26 UTC
Created attachment 281809 [details]
splashutils-1.5.4.4 build log

I'm trying to emerge the latest fixed splashutils ebuild (1.5.4.4) but it still fails with the same errors :(
Freetype version installed: media-libs/freetype-2.4.6  USE="X static-libs -auto-hinter -bindist -debug -doc -fontforge -utils"
Splashutils emerged with: media-gfx/splashutils-1.5.4.4  USE="fbcondecor gpm mng png truetype -hardened"

Any ideas?
Comment 10 Robert Cabrera 2011-08-02 15:47:19 UTC
@Phillip Richter, splashutils-1.5.4.4 isn't fixed portage. To get it to build you need to use the above 'splashutils'-patch to modify your ebuild in your personal portage overlay, and place the 'fbtruetype' patch there as well. Then it will compile without issues.

I hope this helps.
Comment 11 Robert Cabrera 2011-08-02 22:46:46 UTC
Just for kicks I tired to re-emerge splashutils this afternoon as it currently exists in the portage tree. It compiles fine without needing to do anything in your personal overlay.

So it seems the above changes have indeed been incorporated into the current build.

I hope this helps
Comment 12 Philipp Richter 2011-08-03 09:32:11 UTC
(In reply to comment #11)
> Just for kicks I tired to re-emerge splashutils this afternoon as it currently
> exists in the portage tree. It compiles fine without needing to do anything in
> your personal overlay.
> 
> So it seems the above changes have indeed been incorporated into the current
> build.
> 
> I hope this helps

Yes, the current ebuild in the portage tree has the changes incorporated, the build log states how it applies the patch in question. I don't see why it's failing for me, maybe there's something wrong during freetype emerge?
Would it bother you to reemerge the current =freetype-2.4.6 and then the splashutils package?
Thank you for your help ;)
Comment 13 Eduardo Suarez-Santana 2011-10-19 10:04:53 UTC
It does not compile to me.

I need to add /usr/lib64/libbz2.a at the end of
splashutils-1.5.4.4/src/Makefile:842
to make it compile.
Comment 14 Randy Tupas 2012-05-06 18:47:40 UTC
Experienced same error with media-libs/freetype-2.4.9-r1. I was able to successfully build against media-libs/freetype-2.4.9. Implies an issue with the latest freetype and the patch.