Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 375243 - sys-apps/tuxonice-userui fails to build after update to freetype-2.4.5
Summary: sys-apps/tuxonice-userui fails to build after update to 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 with 1 vote (vote)
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-15 03:37 UTC by Robert Cabrera
Modified: 2011-08-06 09:10 UTC (History)
3 users (show)

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


Attachments
build.log for failed tuxonice-userui emerge. (tuxonice-userui.build.log,7.65 KB, text/plain)
2011-07-15 22:15 UTC, Robert Cabrera
Details
build.log for tuxonice-userui without -s switch (build.log,10.25 KB, text/plain)
2011-07-17 00:18 UTC, Robert Cabrera
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Cabrera 2011-07-15 03:37:34 UTC
After not updating my system in over 6 weeks, I did a massive update this past weekend on my ~x86 laptop. Tuxonice-userui failed to rebuild. I believe the issue is freetype related as the emerge output referencing libfreetype is similar to what I experienced with splashutils when it also failed to build.

I was able to finally get splashutils to build after finding these bugs, #374203 and #373121 and installing the patches by Theofilos Intzoglou. It seems freetype-2.4.5 needs libbz2.a library to be included when you want to create a
static version.

It appears that Tuxonice-userui is failing to build for similar reasons. I'm not a programmer, so I don't know how to patch this ebuild to get it to compile.

Output from emerge failure:
image.c: In function ‘is_png’:
image.c:229:7: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
render.c: In function ‘get_program_output’:
render.c:260:13: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result
render.c:271:6: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result
/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/../../../libfreetype.a(ftbzip2.o): In function `ft_bzip2_stream_close':
(.text+0xd3): undefined reference to `BZ2_bzDecompressEnd'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/../../../libfreetype.a(ftbzip2.o): In function `ft_bzip2_file_fill_output':
(.text+0x183): undefined reference to `BZ2_bzDecompress'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/../../../libfreetype.a(ftbzip2.o): In function `ft_bzip2_stream_io':
(.text+0x363): undefined reference to `BZ2_bzDecompressEnd'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/../../../libfreetype.a(ftbzip2.o): In function `ft_bzip2_stream_io':
(.text+0x3b7): undefined reference to `BZ2_bzDecompressInit'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/../../../libfreetype.a(ftbzip2.o): In function `FT_Stream_OpenBzip2':
(.text+0x514): undefined reference to `BZ2_bzDecompressInit'
collect2: ld returned 1 exit status
make: *** [tuxoniceui_fbsplash] Error 1
emake failed
 * ERROR: sys-apps/tuxonice-userui-1.0 failed (compile phase):
 *   emake tuxoniceui_fbsplash failed
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 2189:  Called die
 * The specific snippet of code:
 *           emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" tuxoniceui_fbsplash || die "emake tuxoniceui_fbsplash failed";
 * 

My emerge info:
Portage 2.2.0_alpha44 (default/linux/x86/10.0/desktop/kde, gcc-4.5.2, glibc-2.13-r4, 2.6.39-pf4 i686)
=================================================================
System uname: Linux-2.6.39-pf4-i686-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-2.0.3
Timestamp of tree: Fri, 15 Jul 2011 02:15:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2, 3.1.4, 3.2
dev-util/cmake:           2.8.5
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-r4
Repositories: gentoo portage
Installed sets: 
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/config/kdm /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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/skel /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://gentoo.netnitco.net http://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.wetzlmayr.com/ http://osmirrors.cerias.purdue.edu/pub/gentoo/ http://www.cyberuse.com/gentoo/ http://gentoo.mirrors.hoobly.com/ ftp://gentoo.imj.fr/pub/gentoo/ http://130.59.10.35/ftp/mirror/gentoo/"
LANG="en_US.utf8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j2 -s"
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://rsync.europe.gentoo.org/gentoo-portage"
USE="S3TC X a52 aac aacs aalib acl acpi addressbook alsa amr apm archive audiofile autoipd avahi bash-completion berkdb binfilter bittorrent bluetooth bluray bonjour branding bzip2 cairo cdda cdinstall cdr chm cleartype cli clucene connection-sharing consolekit contrast cracklib crypt cups custom-cflags custom-optimization cxx dbus dc1394 declarative dell designer-plugin desktopglobe dga dhcpcd dirac djvu dri drm dts dv dvb dvd dvdr ebook editor eix embedded emboss emovix enca encode exif extensions faac faad fam fat fbcon fbcondecor fbsplash ffmpeg firefox fits flac flash fortran ftp fuse gcrypt gd gdbm gdu geolocation ggi gif gimp git glib glibc-omitfp gmm gmp gnutls gphoto2 gpm graphviz groupwise gsm gtk handbook httpd hyperestraier iconv id3tag ieee1394 imagemagick imlib indi inotify ipod ipv6 jabber jack java javascript jbig jce jingle joystick jpeg jpeg2k kate kde kerberos kig-scripting kipi konqueror ladspa lame laptop lastfm latex lcms ldap libass libcaca libnotify libproxy libsamplerate libtiger live lm_sensors lua lzma lzo mad matroska md5sum meanwhile mjpeg mmx mng modplug modules mozilla mp3 mp3tunes mp4 mpeg mplayer msn mtp mudflap musepack musicbrainz ncurses network networkmanager nls nova npp nptl nptlonly nsplugin ntfs nut nvidia offensive ogg openal openexr opengl openmp optimization optimized-qmake oscar otr pam pango pch pcmcia pcre pdf perl plasma pm-utils pmu png pnm policykit ppds ppp pppd pvr python python3 qalculate qt-faststart qt3support qt4 quicktime qwt rar raw rdp readline remote-access reports resolvconf rle rss rtmp rtsp samba sasl scanner schroedinger sdl sdl-image secure-delete semantic-desktop session shout shutdown skins skype slp smbclient smp sms sndfile solver sox speex spell sse sse2 ssl ssse3 stable startup-notification stream strong-optimization subversion svg symlink sysfs system-sqlite taglib tcl tcpd teamarena templates tga themedesigner theora threads thumbnail tidy tiff timidity tremor truetype twolame udev unicode upnp usb vaapi vcd vcdx video vidix vlc vlm vnc vorbis vpx watchdog wavpack webpresence wicd wifi win32codecs windeco winpopup wireshark wmf wpd wps wv2 wxwidgets x264 x86 xanim xattr xcb xcomposite xine xinerama xml xorg xosd xscreensaver xulrunner xv xvid xvmc yahoo yv12 zeroconf zlib" ALSA_CARDS="hda-intel" 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="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 mouse synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="nvidia nv" 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 1 Pacho Ramos gentoo-dev 2011-07-15 09:51:18 UTC
Attach full build.log please
Comment 2 Robert Cabrera 2011-07-15 22:11:26 UTC
I've attached the build.log
Comment 3 Robert Cabrera 2011-07-15 22:15:36 UTC
Created attachment 280153 [details]
build.log for failed tuxonice-userui emerge.
Comment 4 Mike Gilbert gentoo-dev 2011-07-16 17:58:54 UTC
Please remove "-s" from MAKEOPTS before submitting bug reports. We can't actually see what commands are being run if you have that enabled.

Can you please attach another build log without the -s?

Also, just a guess, but I would would rebuild media-libs/freetype:2.
Comment 5 Mike Gilbert gentoo-dev 2011-07-16 18:26:03 UTC
I missed the bit in your summary where you pointed out that libbz2.a is needed for the newer freetype. Please ignore the suggestion to re-install freetype.
Comment 6 Robert Cabrera 2011-07-17 00:18:06 UTC
Created attachment 280205 [details]
build.log for tuxonice-userui without -s switch
Comment 7 Robert Cabrera 2011-07-17 00:37:38 UTC
I've added the build.log you requested without the '-s' MAKEOPTS switch.

As I stated in my first post, I'm no programmer. I'm just a 48yo truck driver who has been using Gentoo for nearly a decade. I mentioned the libbz2.a library only as a potential starting point to look for a solution since the way this ebuild is failing to compile is similar to the way splashutils was also failing to build after the freetype update.

Splashutils requires freetype, jpeg, libpng, libmng, and lcms to all be built statically linked, so if both splashutils and tuxonice-userui reside on the same system any of these libraries that are shared must be built statically linked.

If I downgrade freetype to the older version in portage then tuxonice-userui compiles, so that is what leads me to the conclusion that the compilation failure is somehow related to the upgrade to freetype-2.4.5

I hope this helps and offers a bit of clarification. TIA
Comment 8 Mike Gilbert gentoo-dev 2011-07-17 01:04:51 UTC
Well, I think you hit the nail on the head; reassigning to the maintainer.
Comment 9 Albert W. Hopkins 2011-07-23 10:36:33 UTC
See also bug #374203
Comment 10 Robert Cabrera 2011-07-30 12:09:47 UTC
Is there anyone working on trying to resolve this issue? It's been over 2 weeks since I first filed this report, yet it looks as though nothing has been done or is being done to find a solution.

Please, someone look into this. TIA
Comment 11 Ryan Hill (RETIRED) gentoo-dev 2011-07-31 06:51:18 UTC
It's probably because I added the option to not install the static libs for freetype in 2.4.5.  Does building freetype with USE="static-libs" fix your problem?
Comment 12 Robert Cabrera 2011-08-01 02:43:30 UTC
@Ryan Hill thanks for your response. I've been building freetype with USE="static-libs" since that option became mandatory for building media-gfx/splashutils several versions ago.

I updated to freetype-2.4.6 today with the same results; tuxonice-userui fails to build at exactly the same point with the same output as I've posted above.

On the positive side splashutils in my overlay with the patches from this bug report https://bugs.gentoo.org/show_bug.cgi?id=374203 still work.

Is it possible that something is no longer provided when freetype is compiled with USE="static-libs" that these packages are depending upon, but not finding?

TIA
Comment 13 Robert Cabrera 2011-08-02 16:09:18 UTC
As mentioned in bug #374203, the problem appears to be because libfreetype needs libbz2.a library to be included when you want to create a static version. The solution there was a patch to add libbz2.a in the make file. In the case of splashutils this was the change that was made to get it to compile:

 LDFLAGS  += -L$(LIBDIR)
-LIBSS    = $(LIBDIR)/libfreetype.a $(LIBDIR)/libz.a -lm
+LIBSS    = $(LIBDIR)/libfreetype.a $(LIBDIR)/libz.a $(LIBDIR)/libbz2.a -lm
 LIBSD    = -lfreetype -lm

And the ebuild was modified like this:

 	cd "${SG}"
 	epatch "${FILESDIR}/splashutils-1.5.4.4-gentoo-typo-fix.patch"
 
+	if use truetype ; then
+		if [[ "`freetype-config --ftversion`" > "2.4.4" ]]; then
+			cd "${SM}"
+			epatch "${FILESDIR}/splashutils-1.5.4.4-freetype-bz2.patch"
+		fi
+	fi
+
 	cd "${S}"
 	ln -sf "${S}/src" "${WORKDIR}/core"

I'm sure that all that is needed for tuxonice-usreui to compile would be a similar patch(es) to instruct the compiler as to the location of libbz2.a.

Somebody has to know how this can be successfully done so that this package can be made to compile again.

Any help would be greatly appreciated. TIA
Comment 14 Robert Cabrera 2011-08-05 20:11:33 UTC
Well it's been three weeks now and still nothing. Help in resolving this would be greatly appreciated. TIA
Comment 15 Krzysztof Pawlik (RETIRED) gentoo-dev 2011-08-05 21:07:29 UTC
(In reply to comment #14)
> Well it's been three weeks now and still nothing.

There's no SLA for bugs.

> Help in resolving this would be greatly appreciated. TIA

Fixed in the tree, wait until it hits mirrors, sync and re-emerge userui :) If you still have issues with it feel free to re-open the bug.
Comment 16 Robert Cabrera 2011-08-06 09:10:53 UTC
@Krzysztof Pawlik, Thanks it works!