Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 416955 - sys-power/suspend-1.0[fbsplash]: link failure to media-libs/freetype-2.4.9-r1[bzip2]
Summary: sys-power/suspend-1.0[fbsplash]: link failure to media-libs/freetype-2.4.9-r1...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-21 17:29 UTC by tokiclover
Modified: 2013-01-13 14:24 UTC (History)
1 user (show)

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


Attachments
build.log (build.log.bz2,4.46 KB, application/x-bzip2)
2012-05-21 17:30 UTC, tokiclover
Details
build.log (build.log,25.84 KB, text/plain)
2012-05-22 09:21 UTC, tokiclover
Details
/etc/portage/patches/sys-power/suspend/suspend-1.0.patch (suspend-1.0.patch,971 bytes, text/plain)
2012-05-22 10:02 UTC, tokiclover
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tokiclover 2012-05-21 17:29:54 UTC
I'm just trying to merge that package and it seems that ld just fails to link the binary after the compilation after numerous gcc warnings.

collect2: ld returned 1 exit status
make[2]: *** [resume] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-power/suspend-1.0/work/suspend-utils-1.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-power/suspend-1.0/work/suspend-utils-1.0'
make: *** [all] Error 2
emake failed
Comment 1 tokiclover 2012-05-21 17:30:24 UTC
Created attachment 312563 [details]
build.log
Comment 2 Michael Weber (RETIRED) gentoo-dev 2012-05-22 06:42:19 UTC
Comment on attachment 312563 [details]
build.log

1) No need to bzip2 this small file.
2) It's the build log of media-gfx/splashutils-1.5.4.4
3) Can you provide `emerge --info`, please?
Comment 3 tokiclover 2012-05-22 09:18:31 UTC
Sorry to have attached the wrong file. Actually I was having a similar issue with media-gfx/splashutils related to media-libs/freetype +bzip2 linking issue: see #408283. So I'm going to see if I can adapt the patch to sys-power/suspend.

The required files will be attached in the following comments.
Comment 4 tokiclover 2012-05-22 09:21:17 UTC
Created attachment 312649 [details]
build.log
Comment 5 tokiclover 2012-05-22 09:22:28 UTC
Here is a meaningfull error message of the linking:

libtool: link: x86_64-pc-linux-gnu-gcc -DS2RAM -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -O2 -march=native -pipe -static -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o resume resume-resume.o  libsuspend-common.a -llzo2 /usr/lib64/libgcrypt.a -lgpg-error -lpthread /usr/lib64/libfbsplashrender.a -L/usr/lib64 /usr/lib64/libfbsplash.a -lmng -ljpeg -llcms -lpng15 -lz -lfreetype -lm
libtool: link: x86_64-pc-linux-gnu-gcc -DS2RAM -D_LARGEFILE64_SOURCE -O2 -march=native -pipe -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o s2disk suspend.o  libsuspend-common.a -llzo2 /usr/lib64/libgcrypt.so -lgpg-error -lpthread /usr/lib64/libfbsplashrender.so -L/usr/lib64 /usr/lib64/libfbsplash.so -lmng -ljpeg -llcms -lpng15 -lz -lfreetype -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[2]: *** [resume] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-power/suspend-1.0/work/suspend-utils-1.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-power/suspend-1.0/work/suspend-utils-1.0'
make: *** [all] Error 2
emake failed
Comment 6 tokiclover 2012-05-22 09:23:49 UTC
And here the output of `emerge --info '=sys-power/suspend-1.0'`

Portage 2.2.0_alpha107 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.15-r2, 3.3.6-git x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.3.6-git-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8400_@_2.26GHz-with-gentoo-2.1
Timestamp of tree: Mon, 21 May 2012 18:15:01 +0000
app-shells/bash:          4.2_p28
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3, 3.2.2-r1
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.5
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.7.1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo bar proaudio ladi enlightenment sunrise x11 mpd multimedia lcd-filtering
Installed sets: @app-arch, @app-dicts, @daw-core, @daw-plugins, @e_live, @e_xtras, @games-base, @gnome-base, @gtk-engines, @live, @lxbase, @media-fonts, @media-sound123, @sys-fs, @sys-protected, @x11-apps, @x11-themes
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA -EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config/kdm /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /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="-O2 -march=native -pipe"
DISTDIR="/var/src"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://mirror.ovh.net/gentoo-distfiles/ 				ftp://ftp.ds.karen.hj.se/gentoo/ http://ftp.heanet.ie/pub/gentoo/ 				ftp://ftp.halifax.rwth-aachen.de/gentoo/ ftp://mirror.qubenet.net/mirror/gentoo/ 				rsync://ftp.df.lth.se/pub/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1,--hash-style=gnu -Wl,--as-needed"
LINGUAS="en fr"
MAKEOPTS="-j2"
PKGDIR="/var/pkg"
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="/var/portage"
PORTDIR_OVERLAY="/var/lib/layman/bar /var/lib/layman/pro-audio /var/lib/layman/ladi /var/lib/layman/enlightenment /var/lib/layman/sunrise /var/lib/layman/x11 /var/lib/layman/mpd /var/lib/layman/multimedia /var/lib/layman/lcd-filtering"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 ass audiofile aufs avahi bash-completion berkdb bidi bluetooth bs2b btrfs bzip2 cairo caps cdb cdda cddb cdparanoia cdr cjk cli consolekit corefonts cracklib crypt css cue cups curl cxx dbus dga directfb dri dssi dts dv dvb dvd dvdr dvi emboss encode exif fam fame fat fbcon ffmpeg firefox flac fortran freetype gdbm gif gimp gimpprint gmp gnome-keyring gnutls gphoto2 gpm gsm gstreamer gtk gtkstyle gzip hardened hddtemp iconv icu id3tag idn ieee1394 imap inotify ipv6 irc jack jackmidi jav6 java javascript jfs jpeg jpeg2k kerberos ladspa lame laptop lash lcd lcdfilter lcms ldap libnotify libsamplerate lm_sensors lrz lzma lzo mac mad mail matroska midi mmx mng modules mp3 mp4 mpeg mplayer2 mudflap multilib musepack ncurses network networkmanager nls nntp nptl nss ntfs-3g ogg opencl openexr opengl openldap openmp openssl openvg oss pam pango pax_kernel pcre pdf perl png policykit postgres ppds pppd python qt4 readline reiser4 reiserfs rss sasl scanner sdl session smp sndfile speex spell sqlite squashfs sse sse2 sse3 sse4_1 ssl ssse3 startup-notification svg sysfs syslog system-sqlite tcpd theora threads tiff truetype twolame type1 udev udisks unicode upnp upower usb v4l2 vaapi vdpau vim-syntax vorbis vpx wavpack wifi wmf wxwidgets x264 xattr xcb xfs xft xinerama xinetd xml xorg xpm xprint xulrunner xv xvid xz 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 asis auth_digest authn_dbd cern_meta charset_lite dbd dumpio ident imagemap log_forensic proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http proxy_scgi reqtimeout substitute version" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" 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" GRUB_PLATFORMS="emu multiboot pc qemu" INPUT_DEVICES="evdev synaptics vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en fr" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="alpha arm i386 mips mips64 ppc ppc64 sparc sparc64 x86_64" QEMU_USER_TARGETS="alpha arm i386 mips mips64 ppc ppc64 sh4b sparc sparc64 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vmware vesa nvidia nouveau nv i915 i965 intel radeon r600" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 7 tokiclover 2012-05-22 10:02:20 UTC
Created attachment 312669 [details]
/etc/portage/patches/sys-power/suspend/suspend-1.0.patch

Here an adapted patch from the previous cited bug, which just do the trick.
Comment 8 tokiclover 2012-05-22 10:22:31 UTC
One should use the previous patch with epatch_user of course. 

I'm just having a silly install failure now:

make[3]: Entering directory `/var/tmp/portage/sys-power/suspend-1.0/work/suspend-utils-1.0'
if [ -f /var/tmp/portage/sys-power/suspend-1.0/image//etc/suspend.conf ]; then \
	/usr/bin/install -c -m 644 ./conf/suspend.conf /var/tmp/portage/sys-power/suspend-1.0/image//etc/suspend.conf.new; \
else \
	/usr/bin/install -c -m 644 ./conf/suspend.conf /var/tmp/portage/sys-power/suspend-1.0/image//etc/suspend.conf; \
fi
/usr/bin/install: cannot create regular file ‘/var/tmp/portage/sys-power/suspend-1.0/image//etc/suspend.conf’: No such file or directory
make[3]: *** [install-data-hook] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-power/suspend-1.0/work/suspend-utils-1.0'
make[2]: *** [install-data-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-power/suspend-1.0/work/suspend-utils-1.0'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-power/suspend-1.0/work/suspend-utils-1.0'
make: *** [install-recursive] Error 1
emake failed

That conditional install looks right but it just fails to install the package. I tried to add a `-D' to that line or add `$(INSTALL_DATA) -d $(DESTDIR)/$(sysconfdir)/; \' to no avail. I'll see if I can fix it later.
Comment 9 Michael Weber (RETIRED) gentoo-dev 2012-05-22 13:26:09 UTC
Thanks for the patch!

+  22 May 2012; Michael Weber <xmw@gentoo.org> suspend-1.0.ebuild,
+  +files/suspend-1.0-bzip2.patch:
+  Fix freetype[bzip2] link problem (bug 416955, thanks tokiclover)
+
Comment 10 Alon Bar-Lev 2012-07-01 18:13:40 UTC
hello,
this patch is incorrect... the problem is with splashutils.
refer to /usr/lib/pkgconfig/libfbsplashrender.pc and you see that the bz2 is missing. This means that the libfnsplashrender is not linked correctly with all
Comment 11 Alon Bar-Lev 2012-07-01 18:16:40 UTC
Sorry.

(In reply to comment #10)
hello,
this patch is incorrect... the problem is with splashutils.
refer to /usr/lib/pkgconfig/libfbsplashrender.pc and you see that the bz2 is
missing. This means that the libfnsplashrender is not linked correctly with
all dependencies, this is why this package is failing.

media-gfx/splashutils should be fixed, it was already fixed partially, but incomplete (bug#408283).
Comment 12 Oleg Ageev 2013-01-13 14:24:21 UTC
(In reply to comment #11)
> Sorry.
> 
> (In reply to comment #10)
> hello,
> this patch is incorrect... the problem is with splashutils.
> refer to /usr/lib/pkgconfig/libfbsplashrender.pc and you see that the bz2 is
> missing. This means that the libfnsplashrender is not linked correctly with
> all dependencies, this is why this package is failing.
> 
> media-gfx/splashutils should be fixed, it was already fixed partially, but
> incomplete (bug#408283).

im write correct patch for with bug and bug#408283