The following error occurs: mkdir .libs i686-pc-linux-gnu-gcc -I.. -I../lib -D_REENTRANT -I/usr/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/atk-1.0 -D_REENTRANT -I/usr/include/xfce4/ -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/atk-1.0 -DPACKAGE_LOCALE_DIR=\"/usr/share/locale\" -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -march=athlon-xp -O2 -pipe -fomit-frame-pointer -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed -o xfce4-dict-plugin xfce4_dict_plugin-xfce4-dict-plugin.o -pthread /usr/lib/libxfce4panel.so -L/usr/lib /usr/lib/libxfcegui4.so /usr/lib/libstartup-notification-1.so /usr/lib/libSM.so /usr/lib/libICE.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libxfce4util.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangocairo-1.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libcairo.so /usr/lib/libfontconfig.so /usr/lib/libfreetype.so /usr/lib/libxml2.so /usr/lib/libdirectfb.so /usr/lib/libfusion.so /usr/lib/libdirect.so /usr/lib/libglitz-glx.so /usr/lib/libglitz.so /usr/lib/libGL.so /usr/lib/libXext.so /usr/lib/libpng12.so -lz /usr/lib/libXrender.so /usr/lib/libX11.so /usr/lib/libXau.so /usr/lib/libXdmcp.so /usr/lib/libpixman-1.so -lm /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libgthread-2.0.so -lpthread -lrt /usr/lib/libglib-2.0.so ../lib/libdict.a ../lib/libdict.a(libdict_a-common.o): In function `dict_search_word': common.c:(.text+0xb1c): undefined reference to `xfce_err' ../lib/libdict.a(libdict_a-dictd.o): In function `dict_dictd_get_list': dictd.c:(.text+0xc5d): undefined reference to `xfce_err' dictd.c:(.text+0xc90): undefined reference to `xfce_err' dictd.c:(.text+0xcc0): undefined reference to `xfce_err' ../lib/libdict.a(libdict_a-gui.o): In function `dict_gui_about_dialog': gui.c:(.text+0xf9): undefined reference to `xfce_about_info_new' gui.c:(.text+0x133): undefined reference to `xfce_about_info_add_credit' gui.c:(.text+0x143): undefined reference to `xfce_about_info_set_homepage' gui.c:(.text+0x185): undefined reference to `xfce_about_dialog_new_with_values' gui.c:(.text+0x20c): undefined reference to `xfce_about_info_free' ../lib/libdict.a(libdict_a-prefs.o): In function `dict_prefs_dialog_show': prefs.c:(.text+0x1ca): undefined reference to `xfce_titled_dialog_new_with_buttons' ../lib/libdict.a(libdict_a-prefs.o): In function `dict_prefs_dialog_response': prefs.c:(.text+0x2380): undefined reference to `xfce_err' collect2: ld returned 1 exit status make[2]: *** [xfce4-dict-plugin] Error 1 rm xfce4-dict-plugin.desktop.in make[2]: Leaving directory `/var/tmp/portage/xfce-extra/xfce4-dict-9999/work/xfce4-dict-9999/panel-plugin' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/xfce-extra/xfce4-dict-9999/work/xfce4-dict-9999' make: *** [all] Error 2 Removing the --as-needed flag from LDFLAGS results in a successful compile. Ebuild needs to use filter-ldflags to remove this flag for the time being. A bug has been reported upstream: http://bugzilla.xfce.org/show_bug.cgi?id=4235 Reproducible: Always Steps to Reproduce: 1. Set --as-needed in LDFLAGS (export LDFLAGS="-Wl,--as-needed"). 2. emerge =xfce-extra/xfce4-dict-9999 Actual Results: Error as reported above. Expected Results: ebuild should compile and install successfully. Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686) ================================================================= System uname: 2.6.24-gentoo-r8 i686 AMD Athlon(tm) XP 2800+ Timestamp of tree: Wed, 16 Jul 2008 08:45:02 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.5.2-r5 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib/mozilla-thunderbird/components/myspell /usr/lib/perl5/site_perl /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer noinfo parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://mirror.pacific.net.au/linux/Gentoo http://mirror.pacific.net.au/linux/Gentoo ftp://ftp.swin.edu.au/gentoo http://ftp.swin.edu.au/gentoo" LANG="en_AU.utf8" LC_ALL="en_AU.utf8" LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed" LINGUAS="en" MAKEOPTS="-j2 -l 2.0" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_EXTRA_OPTS="--prune-empty-dirs --exclude-from=/etc/portage/rsync_excludes" 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/overlays/misc /usr/local/overlays/perl-gcpan /usr/local/portage/layman/xfce /usr/local/portage/layman/devnull /usr/local/portage/layman/ephemeral /usr/local/portage/layman/sunrise" SYNC="rsync://ftp.swin.edu.au/gentoo-portage" USE="3dnow 3dnowext X acpi alsa audiofile bash-completion berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups curl dbus dga directfb dri dvd dvdr dvdread emboss encode evo fam fbcon ffmpeg fortran gdbm gif gmp gpm gstreamer gtk hal iconv isdnlog ithreads jpeg lame lcms libnotify lm_sensors logrotate mad midi mikmod mmx mmxext mng mp3 mpeg mudflap ncurses network-cron nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support quicktime readline reflection resolvconf sdl session spell spl sqlite sse ssl startup-notification svg tcpd threads tiff truetype unicode vorbis win32codecs x86 xml xorg xpm xulrunner xv zlib" ALSA_CARDS="emu10k1" 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" 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev linuxinput ps2mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Fixed upstream, ebuild works fine with --as-needed LDFLAG now.