Bug 187697 - x11-misc/qcomicbook fails with --as-needed
Bug#: 187697 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: desktop-misc@gentoo.org Reported By: gentoo@chlhp.de
Component: Applications
URL: 
Summary: x11-misc/qcomicbook fails with --as-needed
Keywords:  
Status Whiteboard: 
Opened: 2007-08-04 08:58 0000
Description:   Opened: 2007-08-04 08:58 0000
qcomicbook fails to compile with LDFLAGS --as-needed.

compile errors see the attached log.



# emerge --info
Portage 2.1.3.3 (default-linux/x86/2006.1, gcc-4.2.0, glibc-2.6-r0,
2.6.22-gentoo-r1 i686)
=================================================================
System uname: 2.6.22-gentoo-r1 i686 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Sat, 04 Aug 2007 07:20:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -mfpmath=sse -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config
/var/www/localhost/htdocs"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo
/etc/texmf/web2c"
CXXFLAGS="-O2 -march=prescott -mfpmath=sse -pipe"
DISTDIR="/mnt/D/distfiles"
FEATURES="distlocks sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.tu-ilmenau.de/Mirrors/gentoo
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LDFLAGS="-Wl,-O1 -Wl,-z,now -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/lila-theme
/usr/portage/local/layman/zugaina /usr/portage/local/layman/sunrise
/usr/portage/local/layman/gentoo-de /usr/portage/local/layman/xwing
/usr/portage/local/layman/vmware /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acpi alsa arts bash-completion berkdb bitmap-fonts branding bzip2
cairo cdinstall cdparanoia cdr cli cracklib crypt cups d dbus doc dri dts dv
dvd dvdr dvdread encode exif expat fbcon ffmpeg fuse gdbm gif glut gmp gphoto2
gpm hal iconv idn imagemagick ipv6 isdnlog java jikes jpeg jpeg2k kde
kdeenablefinal kdehiddenvisibility libg++ lm_sensors mad matroska midi mmx mng
mp3 mudflap musepack mysql ncurses nls nptl nptlonly nvidia ogg opengl openmp
pam pcre pdf perl pertty png ppds pppd python qt3 qt4 rdesktop readline
reflection samba sasl scanner sdl session slang source spl sqlite sqlite3 sse
sse2 ssl svga tcpd theora threads tiff truetype truetype-fonts type1-fonts usb
vcd vim-syntax vorbis win32codecs x86 xine xml xorg xprint xv xvid xvmc zlib"
ALSA_CARDS="emu10k1 hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix
dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter
mulaw multi null plug rate route share shm softvol" ELIBC="glibc"
INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz
cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en"
USERLAND="GNU" VIDEO_CARDS="v4l nvidia nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS,
PORTAGE_COMPRESS_FLAGS

Reproducible: Always

Steps to Reproduce:
1.emerge qcomicbook with LDFLAGS="-Wl,--as-needed"

Actual Results:  
compile errors

Expected Results:  
no compile errors

without the flag it compiles

------- Comment #1 From Christian Lemke 2007-08-04 08:59:43 0000 -------
Created an attachment (id=126848) [details]
the compile errors

------- Comment #2 From Samuli Suominen 2007-08-21 18:50:32 0000 -------
Fixed, thanks for reporting.