When compile compiz-0.5.0 with "-Wl,--as-needed" LDFLAGS, following error occurs ikk@toybox ~ $LIB_LIBRARY_PATH=/usr/lib/opengl/xorg-x11/lib/ LIBGL_ALWAYS_INDIRECT=ture compiz --indirect-rendering --replace ini & [3] 29819 ikk@toybox ~ $ compiz: symbol lookup error: /usr/lib64/compiz/libpng.so: undefined symbol: png_check_sig ikk@toybox ~ $gtk-window-decorator --replace & [3] 29822 ikk@toybox ~ $ gtk-window-decorator: Could not acquire decoration manager selection on screen 0 display ":0.0" compiz won't start, and without windows decorations. However if I don't set the "-Wl,--as-needed" LDFLAGS, compiz will start without any problem. ikk@toybox ~ $ LIB_LIBRARY_PATH=/usr/lib/opengl/xorg-x11/lib/ LIBGL_ALWAYS_INDIRECT=ture compiz --indirect-rendering --replace ini & [1] 9232 ikm@toybox ~ $ gtk-window-decorator --replace & [2] 9233 Reproducible: Always Steps to Reproduce: 1. set "-Wl,--as-needed" to LDFLAG in /etc/make.conf 2. emerge -av compiz 3. Actual Results: compiz wont start when load the png plugin, or will start but without the png plugin. Expected Results: load compiz without problems when load the png plugin. plugin that compiz has loaded active_plugins=ini,decoration,png,wobbly,fade,minimize,cube,rotate,scale,move,resize,place,switcher emerge --info Portage 2.1.2.2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo-r4 x86_64) ================================================================= System uname: 2.6.20-gentoo-r4 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz Gentoo Base System release 1.12.9 Timestamp of tree: Tue, 24 Apr 2007 21:30:01 +0000 dev-java/java-config: 1.3.7, 2.0.31-r5 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.15-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=nocona -pipe -fno-ident" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-O2 -march=nocona -pipe -fno-ident" DISTDIR="/usr/portage/distfiles" FEATURES="collision-protect distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.intergenia.de ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://gentoo.modulix.net/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://distfiles.gentoo.org" LANG="en_GB.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common" LINGUAS="en_GB zh_CN en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" 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/portagetmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acpi alsa amd64 berkdb bitmap-fonts bzip2 cdr cjk cli cracklib crypt dbus dri dvdr firefox fortran gdbm gnome gtk gtk2 hal iconv isdnlog java jpeg libg++ midi minimal ncurses nls nptl nptlonly nsplugin opengl pam pcre perl png ppds pppd python readline reflection session spl ssl tcpd tiff truetype truetype-fonts type1-fonts unicode xml xorg 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB zh_CN en" USERLAND="GNU" VIDEO_CARDS="i810 i915" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
This was fixed upstream in 0.5.2