Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 225211 - app-i18n/fcitx won't compile when as-needed flag is set.
Summary: app-i18n/fcitx won't compile when as-needed flag is set.
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: CJK Team
Depends on:
Blocks: as-needed
  Show dependency tree
Reported: 2008-06-07 11:22 UTC by Hong Hao
Modified: 2008-06-07 11:46 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Hong Hao 2008-06-07 11:22:46 UTC
upstream is dead. No one will fix it.
please filter-ldflags -Wl,--as-needed

Reproducible: Always

Steps to Reproduce:
1.Enable as-needed
2.emerge fcitx
3.failed to compile

Actual Results:  
if gcc-4.2.4 -DPKGDATADIR=\"/usr/share/fcitx\" -I. -I. -I.. -I. -I../lib -I../xpm   -O2 -fno-strength-reduce -march=native -O2 -pipe -fomit-frame-pointer   -I/usr/include/freetype2   -D_USE_XFT -Wall -MT AutoEng.o -MD -MP -MF ".deps/AutoEng.Tpo" -c -o AutoEng.o AutoEng.c; \
	then mv -f ".deps/AutoEng.Tpo" ".deps/AutoEng.Po"; else rm -f ".deps/AutoEng.Tpo"; exit 1; fi
if gcc-4.2.4 -DPKGDATADIR=\"/usr/share/fcitx\" -I. -I. -I.. -I. -I../lib -I../xpm   -O2 -fno-strength-reduce -march=native -O2 -pipe -fomit-frame-pointer   -I/usr/include/freetype2   -D_USE_XFT -Wall -MT extra.o -MD -MP -MF ".deps/extra.Tpo" -c -o extra.o extra.c; \
	then mv -f ".deps/extra.Tpo" ".deps/extra.Po"; else rm -f ".deps/extra.Tpo"; exit 1; fi
if gcc-4.2.4 -DPKGDATADIR=\"/usr/share/fcitx\" -I. -I. -I.. -I. -I../lib -I../xpm   -O2 -fno-strength-reduce -march=native -O2 -pipe -fomit-frame-pointer   -I/usr/include/freetype2   -D_USE_XFT -Wall -MT internalVersion.o -MD -MP -MF ".deps/internalVersion.Tpo" -c -o internalVersion.o internalVersion.c; \
	then mv -f ".deps/internalVersion.Tpo" ".deps/internalVersion.Po"; else rm -f ".deps/internalVersion.Tpo"; exit 1; fi
gcc-4.2.4 -O2 -fno-strength-reduce -march=native -O2 -pipe -fomit-frame-pointer   -I/usr/include/freetype2   -D_USE_XFT -Wall  -Wl,--hash-style=both,-O1 -Wl,--sort-common -s -Wl,--as-needed -o fcitx -lXpm IC.o ime.o InputWindow.o KeyList.o main.o MainWindow.o MyErrorsHandlers.o punc.o py.o PYFA.o pyMapTable.o pyParser.o sp.o tools.o ui.o table.o xim.o qw.o vk.o about.o QuickPhrase.o AutoEng.o extra.o internalVersion.o ../lib/libXimd.a -lXft -lXrender -lfontconfig -lfreetype -lz -lX11   -lX11 
InputWindow.o: In function `DrawInputWindow':
InputWindow.c:(.text+0x10d2): undefined reference to `XpmCreateImageFromData'
InputWindow.c:(.text+0x1137): undefined reference to `XpmCreateImageFromData'
MainWindow.o: In function `DrawMainWindow':
MainWindow.c:(.text+0xcd0): undefined reference to `XpmCreateImageFromData'
MainWindow.c:(.text+0xd38): undefined reference to `XpmCreateImageFromData'
MainWindow.c:(.text+0xd77): undefined reference to `XpmCreateImageFromData'
MainWindow.o:MainWindow.c:(.text+0xe0f): more undefined references to `XpmCreateImageFromData' follow
about.o: In function `setIcon':
about.c:(.text+0x75): undefined reference to `XpmCreatePixmapFromData'
about.c:(.text+0x11a): undefined reference to `XpmGetErrorString'
collect2: ld returned 1 exit status
make[2]: *** [fcitx] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-i18n/fcitx-3.5_pre070703/work/fcitx-3.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-i18n/fcitx-3.5_pre070703/work/fcitx-3.5'
make: *** [all] Error 2
 * ERROR: app-i18n/fcitx-3.5_pre070703 failed.
 * Call stack:
 *     , line   49:  Called src_compile
 *             environment, line  223:  Called die
 * The specific snippet of code:
 *       emake || die "make failed"
 *  The die message:
 *   make failed
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-i18n/fcitx-3.5_pre070703/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-i18n/fcitx-3.5_pre070703/temp/environment'.
Comment 1 Hong Hao 2008-06-07 11:25:32 UTC
Here goes emerge --info


Portage 2.2_pre7-r1 (default/linux/x86/2008.0/desktop, gcc-4.2.4, glibc-2.7-r2, 2.6.25-tuxonice-r4 i686)
System uname: 2.6.25-tuxonice-r4 i686 Genuine Intel(R) CPU T2300 @ 1.66GHz
Timestamp of tree: Fri, 06 Jun 2008 09:46:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r4
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     9999
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r3
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CONFIG_PROTECT="/etc /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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 /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
FEATURES="ccache collision-protect confcache distlocks elog metadata-transfer notitles parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
LDFLAGS="-Wl,--hash-style=both,-O1 -Wl,--sort-common -s -Wl,--as-needed"
LINGUAS="en zh_CN zh"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/var/portage/remi /var/portage/enlightenment /var/portage/secondlife /var/portage/kde /var/portage/sunrise /var/portage/x11 /var/portage/misc"
SYNC="rsync://     rsync://"
USE="X a52 aac acl acpi alsa apache2 bash-comletion berkdb bluetooth branding bzip2 cairo cdparanoia cdr cjk cli crypt cups dbus dri dvd dvdr dvdread emboss encode exif fam ffmpeg flac foomaticdb fortran gdbm gif glitz gphoto2 gpm gstreamer gtk hal iceweasel iconv ieee1394 imagemagic ipv6 ipw3945 irc isdnlog jabber joystick jpeg kerberos latex ldap libnotify logrotate mad midi mikmod mmx mono mp3 mpeg mplayer msn mudflap mysql ncurses networkmanager nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl php png ppds pppd python qt3support quicktime readline real reflection samba sdl session spell spl sse sse2 ssl startup-notification subversion svg tcpd tiff tokenizer truetype unicode usb vcd vim-syntax vorbis wifi win32codecs x86 xcb xine xinerama xml xorg xv 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" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_alias authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon sony_dscf55" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev synaptics" KERNEL="linux" LCD_DEVICES="ncurses text" LINGUAS="en zh_CN zh" USERLAND="GNU" VIDEO_CARDS="vesa radeon"

Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-06-07 11:46:57 UTC
Thanks for reporting, fixed now.