Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 442826

Summary: sys-power/suspend-1.0 - /usr/lib64/libfreetype.a(ftbzip2.o): In function `ft_bzip2_stream_close': (.text+0x59): undefined reference to `BZ2_bzDecompressEnd'
Product: Gentoo Linux Reporter: Conrad Kostecki <conikost>
Component: New packagesAssignee: Michael Weber (RETIRED) <xmw>
Status: RESOLVED FIXED    
Severity: normal CC: bircoph, frayser411
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 408283, 556954    
Bug Blocks:    
Attachments: build.log

Description Conrad Kostecki gentoo-dev 2012-11-11 23:10:50 UTC
Hi!
I am unable to compile sys-power/suspend-1.0.
Attaching build.log and emerge --info
Comment 1 Conrad Kostecki gentoo-dev 2012-11-11 23:11:01 UTC
Portage 2.1.11.31 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.4, glibc-2.15-r3, 3.6.6-alt311-amd64 x86_64)
=================================================================
System uname: Linux-3.6.6-alt311-amd64-x86_64-Intel-R-_Core-TM-2_Duo_CPU_L9400_@_1.86GHz-with-gentoo-2.2
Timestamp of tree: Sun, 11 Nov 2012 21:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-lang/python:          3.2.3
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.5
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O3 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -mcx16 -msahf -pipe -fomit-frame-pointer -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=core2 -O3 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -mcx16 -msahf -pipe -fomit-frame-pointer -mfpmath=sse -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-z,now"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="gzip"
PORTAGE_COMPRESS_FLAGS="-f9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="amd64 bzip2 crypt gpm ipv6 jpeg lcms lzma mng multilib ncurses nls png readline symlink threads tiff truetype udev unicode zlib" ALSA_PCM_PLUGINS="*" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="nmea" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse wacom" KERNEL="linux" LINGUAS="de" PYTHON_TARGETS="python2_7 python3_2" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Conrad Kostecki gentoo-dev 2012-11-11 23:11:54 UTC
Created attachment 329290 [details]
build.log
Comment 3 Louis Frayser 2012-11-29 16:26:35 UTC
#442826 #416955

Confirming with 3 observations. Especially that this seems to be a problem with splashutils(at least in 1.5.4.4-r1)

1. Same link errors
gentoo:/var/log/portage/packages# grep undefined sys-power\:suspend-1.0\:20121129-034125.log		
(.text+0xb0): undefined reference to `BZ2_bzDecompressEnd'
(.text+0x14f): undefined reference to `BZ2_bzDecompress'
(.text+0x303): undefined reference to `BZ2_bzDecompressEnd'
(.text+0x358): undefined reference to `BZ2_bzDecompressInit'
...


2. I noticed this patch (suspend-1.0-bzip2.patch) that seems to address this problem
toor@gentoo:~# grep patch /var/log/portage/packages/sys-power\:suspend-1.0\:20121129-142546.log 
 * Applying suspend-1.0-errno.patch ...
 * Applying suspend-1.0-bzip2.patch ...
...

A saw autoheader, aclocal and other automake tools run.  configure was updated to check for libbz2 references, but the generated Makefile still failed to use -lbz2 when linking.

Also see Changelog for sys-power/suspend-1.0

*Please see Bug 416955
I verified that adding -lbz2 to Libs in /usr/lib/pkgconfig/libfbsplashrender.pc solves this link problem in a manner that would probably fix more than link issues in sys-power/suspend.

3. As a work around, I exported LIBS=-lbz2 and made a package that emerged ok.
#(already unmasked in /etc/portage/package.keywords)
export LIBS=-lbz2
ebuild /usr/portage/sys-power/suspend/suspend-1.0.ebuild package
emerge -K -av sys-power/suspend  

I also found that adding -lbz2 to Libs in  /usr/lib/pkgconfig/libfbsplashrender.pc works around this issue.
Comment 4 Andrew Savchenko gentoo-dev 2015-08-13 08:47:28 UTC
Fixed in suspend-1.0_p20150810.