Emerging net-p2p/amule-2.0.3 failed with compilation error "undefined reference to `pango_x_get_context'". Tested with gcc-3.3.6 / gcc-3.4.4 and pango 1.10.0. aMule version 2.0.1 previously compiled with pango 1.8.(?) still work successfully. Additional info: x11-libs/gtk+ 2.8.3-r1 x11-libs/wxGTK 2.6.1 Reproducible: Always Steps to Reproduce: 1.emerge =pango-1.10.0 2.emerge =amule-2.0.3 Actual Results: ... /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../../i686-pc-linux-gnu/bin/ld: warning: libstdc++.so.6, needed by /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libwx_gtk2_xrc-2.6.so, may conflict with libstdc++.so.5 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libwx_gtk2_core-2.6.so: undefined reference to `pango_x_get_context' collect2: ld returned 1 exit status make[3]: *** [amule] Error 1 ... Expected Results: >>> net-p2p/amule-2.0.3 merged. >>> Recording net-p2p/amule in "world" favorites file... :-) nikodll # emerge info Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1, 2.6.12-morph7 i686) ================================================================= System uname: 2.6.12-morph7 i686 Intel(R) Celeron(R) CPU 2.26GHz Gentoo Base System version 1.6.13 ccache version 2.3 [enabled] dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16-r1 sys-devel/libtool: 1.4.3-r4, 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.lug.ro/gentoo/ http://src.gentoo.pl ftp://mirror.aiya.ru/pub/gentoo/" LANG="ru_RU.KOI8-R" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aalib alsa apache2 apm avi bash-completion berkdb bitmap-fonts cdr crypt cups curl directfb dvd dvdr eds emboss encode esd firefox flac foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml guile hal howl i8x0 imagemagick imlib innodb ipv6 java jpeg junit kde kdeenablefinal libg++ libwww mad mikmod mmx mmxext mono motif mozilla mp3 mpeg mysql ncurses nls odbc ogg oggvorbis opengl oss pam pdflib perl plugin png postgres python qt quicktime readline ruby samba sdl slang snmp spell sqlite sse sse2 ssl svga tcltk tcpd theora tiff truetype truetype-fonts type1-fonts vorbis xine xml xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
i'm pretty sure, that recompilation of wxGTK will fix the problem. closing for now - fell free to reopen if that won't help
nope :( problem still exist with the same error
could you try to recompile pango, gtk+ and wxGTK (in given order - it's important) one more time and let me know if that helped?
no feedback from reporter. closing
*** Bug 113145 has been marked as a duplicate of this bug. ***
Please reopen ( I can't do it myself ). I ran emerge -1 pango gtk+ =wxGTK-2.4.2-r3, the versions being: [ebuild R ] x11-libs/pango-1.10.1 [ebuild R ] x11-libs/gtk+-2.8.7 [ebuild R ] x11-libs/wxGTK-2.4.2-r3 and got the same error.
Reopened for further investigation.
Actually amule _does_ compile fine. It is xmule that is giving me the error. At first I filed a separate bug about it (#113145) but it got resolved as a dup of this one. Should I reopen the other one or do we continue here ?
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libwx_gtk2_core-2.6.so: undefined reference to `pango_x_get_context' collect2: ld returned 1 exit status I think the problem is in wxGTK so this bug is fine.
Ok. Actually with xmule it is: /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libwx_gtk2-2.4.so: undefined reference to `pango_x_get_context' collect2: ld returned 1 exit status Seems to me that xmule gets compiled against wxGTK-2.4 while amule uses wxGTK-2.6. I have both 2.4.2-r3 and 2.6.2 installed but xmule config says: checking for wxgtk2-2.4-config... /usr/bin/wxgtk2-2.4-config checking for wxWindows version >= 2.5.3... no (version 2.4.2 is not new enough) checking for wxgtk2-2.4-config... (cached) /usr/bin/wxgtk2-2.4-config checking for wxWindows version >= 2.4.2... yes (version 2.4.2)
i've just added xmule-1.10.1-r2. it's compiled and linked with wxGTK-2.6, which (started from 2.6.2) is paatched against that bug. this version should fix the problem
I tried to emerge amule and had the same linking problem with wxgtk. 'Undefined Reference to pango_x_get_context ...' I was able to fix it following the suggestions on http://forum.amule.org/thread.php?threadid=7226&sid=0a8ad24d0db82fe629758cafdd19e7a9&hilight=pango+x+get+context After I added those three lines to src_compile() it worked! src_compile() { if has_version '>=x11-libs/pango-1.10.0'; then export LDFLAGS="${LDFLAGS} -lpangox-1.0" fi ... } I don't understand what it does .. but it might be of anyones interest around here ... :) If not .. don't mind .. I'm new on Gentoo and just wanted to help.
could you please write which versions of wxGTK, pango and amule cause that problem?
Here you are x11-libs/wxGTK Latest version installed: 2.6.1 x11-libs/pango Latest version installed: 1.10.2 net-p2p/amule Latest version installed: 2.0.3-r4 regards, Colin
This is a dup of bug 105189
*** This bug has been marked as a duplicate of 105189 ***