Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105771 - aMule/xmule compilation error with Pango-1.10.0, undefined reference to `pango_x_get_context' in wxGTK
Summary: aMule/xmule compilation error with Pango-1.10.0, undefined reference to `pang...
Status: RESOLVED DUPLICATE of bug 105189
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
: 113145 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-13 00:43 UTC by nikodll
Modified: 2006-01-28 05:31 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nikodll 2005-09-13 00:43:33 UTC
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
Comment 1 Marcin Kryczek (RETIRED) gentoo-dev 2005-09-13 15:01:14 UTC
i'm pretty sure, that recompilation of wxGTK will fix the problem. closing for 
now - fell free to reopen if that won't help
Comment 2 nikodll 2005-09-14 23:44:06 UTC
nope :( problem still exist with the same error
Comment 3 Marcin Kryczek (RETIRED) gentoo-dev 2005-09-18 02:58:50 UTC
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?
Comment 4 Marcin Kryczek (RETIRED) gentoo-dev 2005-09-23 02:05:36 UTC
no feedback from reporter. closing
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-11-21 02:20:12 UTC
*** Bug 113145 has been marked as a duplicate of this bug. ***
Comment 6 Ivan Yosifov 2005-11-21 03:49:27 UTC
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.
Comment 7 Petteri Räty (RETIRED) gentoo-dev 2005-11-21 03:57:47 UTC
Reopened for further investigation.
Comment 8 Ivan Yosifov 2005-11-21 04:36:09 UTC
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 ?
Comment 9 Petteri Räty (RETIRED) gentoo-dev 2005-11-21 04:41:35 UTC
/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.
Comment 10 Ivan Yosifov 2005-11-21 05:01:35 UTC
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)
Comment 11 Marcin Kryczek (RETIRED) gentoo-dev 2005-11-21 11:06:00 UTC
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
Comment 12 Colin Kiegel 2006-01-22 15:24:44 UTC
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.
Comment 13 Marcin Kryczek (RETIRED) gentoo-dev 2006-01-23 08:05:28 UTC
could you please write which versions of wxGTK, pango and amule cause that problem?
Comment 14 Colin Kiegel 2006-01-23 15:03:54 UTC
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
Comment 15 Sander Sweers 2006-01-24 09:19:46 UTC
This is a dup of bug 105189
Comment 16 Jakub Moc (RETIRED) gentoo-dev 2006-01-28 05:31:02 UTC

*** This bug has been marked as a duplicate of 105189 ***