First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 105189
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo wxWidgets Herd <wxwidgets@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Alexandre Rostovtsev <tetromino@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
wxGTK-2.6.1-r1.patch wxGTK-2.6.1 ebuild patch patch Sander Sweers 2005-10-14 09:15 0000 331 bytes Details | Diff
wxGTK-2.6.1-pango_x_get_context-fix.patch wxGTK-2.6.1 pango patch patch Sander Sweers 2005-10-14 09:17 0000 2.24 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 105189 depends on: Show dependency tree
Bug 105189 blocks: 107365
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-09-07 14:57 0000
I emerged the new gtk+-2.8 ebuilds (gtk+-2.8.3-r1, glib-2.8.1, atk-1.10.2,
pango-1.10.0) and then emerged wxGTK-2.6.1. wxGTK compiled correctly; however,
all the wxGTK libraries have "undefined symbol pango_x_get_context" in them, as
can be seen using ldd -r or in gcc errors. Basically, I can't compile any wx
program -- they all fail with "undefined symbol" error at the linking stage.

Furthermore, look at this forum post:
http://forums.gentoo.org/viewtopic-t-372625.html
It looks like even if you had compiled a program with an earlier version of wx
or gtk, it won't run once you upgrade!

Reproducible: Always
Steps to Reproduce:
1. (emerge gtk+-2.8 and related versions of pango, atk etc)
2. emerge wxGTK
3. ldd -r /usr/lib/libwx_gtk2_core-2.6.so

Actual Results:  
undefined symbol: pango_x_get_context   (/usr/lib/libwx_gtk2_core-2.6.so)
        linux-gate.so.1 =>  (0xffffe000)
        libz.so.1 => /lib/libz.so.1 (0xb7caa000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7ca6000)
        libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb79b2000)
        libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb7932000)
        libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb7918000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb7902000)
        libm.so.6 => /lib/tls/libm.so.6 (0xb78de000)
        libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb78d7000)
        libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb789f000)
        libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb7853000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb7827000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb7824000)
        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb781f000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb77ae000)
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb77ab000)
        libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0xb77a6000)
        libpng.so.3 => /usr/lib/libpng.so.3 (0xb7772000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7753000)
        libtiff.so.3 => /usr/lib/libtiff.so.3 (0xb7702000)
        libwx_base-2.6.so.0 => /usr/lib/libwx_base-2.6.so.0 (0xb7606000)
        libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6
(0xb7536000)
        libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libgcc_s.so.1
(0xb752d000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb751a000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb73ff000)
        /lib/ld-linux.so.2 (0x80000000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb7330000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb732c000)
        libXi.so.6 => /usr/lib/libXi.so.6 (0xb7324000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb72f6000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb72ed000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb72e3000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb72d5000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb72d0000)
        libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb72ab000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb723e000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7209000)
        libglitz.so.1 => /usr/lib/libglitz.so.1 (0xb71e4000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0xb71c4000)

Expected Results:  
no undefined symbols

Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.4-vanilla,
glibc-2.3.5-r1, 2.6.12-gentoo-r9 i686)
=================================================================
System uname: 2.6.12-gentoo-r9 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System version 1.12.0_pre8
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
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.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -frename-registers"
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/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium-m -O2 -pipe -frename-registers"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac aalib acl acpi alsa apm arts avi bash-completion berkdb
bitmap-fonts bonobo cairo cdparanoia cdr crypt cscope cups curl dbus doc dvd eds
emacs emboss encode esd exif fam flac foomaticdb fortran gd gdbm gif gnome
gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal howl ieee1394 imagemagick imlib
ipv6 jack java jpeg kde lcms libg++ libwww mad mikmod mmx mono motif mozilla mp3
mpeg mysql ncurses nls nntp nptl ogg oggvorbis opengl oss pam pcmcia pcre pdflib
perl png postgres python qt quicktime readline ruby samba scanner sdl slang
socks5 speex spell sqlite sse ssl tcltk tcpd tetex theora threads tiff truetype
truetype-fonts type1-fonts unicode usb vorbis win32codecs xemacs xine xinerama
xml xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS

------- Comment #1 From Mart Raudsepp 2005-09-09 13:03:13 0000 -------
I had fixed gtk2.8 compatibility some time after the 2.6.1 release.

http://cvs.wxwidgets.org/viewcvs.cgi/wxWidgets/src/gtk/window.cpp.diff?r1=1.546&r2=1.547
http://cvs.wxwidgets.org/viewcvs.cgi/wxWidgets/src/gtk/dcclient.cpp.diff?r1=1.203&r2=1.204
http://cvs.wxwidgets.org/viewcvs.cgi/wxWidgets/include/wx/gtk/window.h.diff?r1=1.126&r2=1.127

Only the first diff is really necessary, other is just related clean-ups.


CVS log entry:

3 weeks, 1 day ago
Wed Aug 17 21:40:44 2005 	MR
Log: [wxGTK2] gtk+-2.8.0 compatibility. Removed the usage of pango_x_get_context
to not depend on a fully deprecated pangox library, which is not pulled in with
gtk+-2.8.0. The pango_x_get_context call was (arguably) making font drawing on
top of a wxDC slightly faster on (especially remote) X11 in case of
non-antialiased fonts (I was unable to find a non-antialiased font that actually
returns true for GetNoAntiAliasing()).


Diff in gtk+ CVS that removed the pangox linking:
http://cvs.gnome.org/viewcvs/gtk%2B/configure.in?r1=1.460&r2=1.461 (look for
"$PKG_CONFIG --exists pangox"

Upstream wxGTK-2.6.2 release that is scheduled (non-fixed) for 18th September
will contain this fix.

------- Comment #2 From Francisco Javier 2005-09-22 13:34:39 0000 -------
wxGTK-2.6.2 release in 21th September

------- Comment #3 From Jose daLuz 2005-09-27 15:02:22 0000 -------
2.6.2 is not in portage yet. Is there an update on when it will hit portage?

------- Comment #4 From Zak Peirce 2005-09-30 11:54:52 0000 -------
Jose daLuz,

I had a silimar issue with another app not running because of this same problem.
 If you want ot try this solution it worked for me.

cd /home/zak
wget http://easynews.dl.sourceforge.net/sourceforge/wxwindows/wxGTK-2.6.2.tar.gz
tar -xfvz wxGTK-2.6.2.tar.gz
cd wxGTK-2.6.2
mkdir unicode
cd unicode
../configure --with-gtk --enable-unicode --enable-opengl --enable-sdl
make
cd lib
cp * /usr/lib/ 

------- Comment #5 From Zak Peirce 2005-09-30 11:57:42 0000 -------
*** Bug 107128 has been marked as a duplicate of this bug. ***

------- Comment #6 From Jose daLuz 2005-10-08 15:11:54 0000 -------
@Zak: Thanks for your solution, but as it only affects one application for me,
and not a criticial one at that, I'll wait until 2.6.2 is in portage.

------- Comment #7 From Jose daLuz 2005-10-12 13:31:49 0000 -------
Now that wxGTK-2.6.2 is in portage (testing) I tried building the two programs
I
had problems with.  audacity-1.2.3-r1 depends on wxGTK-2.4* in a separate slot,
so this fix doesn't work for it. Is a backport for other slots on the way?

Secondly, I tried running ipodder, and ran into this error:
ImportError: /usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_misc_.so:
symbol wxDefaultVideoMode, version WXU_2.6 not defined in file
libwx_gtk2u_core-2.6.so.0 with link time reference

I'm assuming this is because the python bindings it depends on, wxpython, is at
2.6.1.0 which wants to downgrade wxGTK to 2.6.1 if I rebuild it. Is
wxpython-2.6.2 on the way, or should I file a bug on this to get it started?
(This last one is not important to me as I'm not overly impressed with ipodder,
but it still needs to be done.)

------- Comment #8 From Mart Raudsepp 2005-10-12 14:02:46 0000 -------
A backport should be easy based on my comment #1

------- Comment #9 From Sander Sweers 2005-10-14 09:15:56 0000 -------
Created an attachment (id=70669) [edit]
wxGTK-2.6.1 ebuild patch

ebuild patch

------- Comment #10 From Sander Sweers 2005-10-14 09:17:28 0000 -------
Created an attachment (id=70670) [edit]
wxGTK-2.6.1 pango patch

Attached patch for ebuild and patch against wxWidgets-2.6.1. Can we get this
into portage soon as gnome-2.12 is ~ now?

------- Comment #11 From Radoslaw Szkodzinski 2005-11-16 14:34:43 0000 -------
As wxPython 2.6.2.0 is not yet ready (and 2.6.1.0 is incompatible with wxGTK
2.6.2), this has to find its way into the tree.

------- Comment #12 From Karol Wojtaszek (RETIRED) 2005-12-03 03:04:05 0000 -------
could you test if there is still problem with this bug?

------- Comment #13 From Chris Mayo 2005-12-14 12:05:52 0000 -------
Compiling pgadmin3-1.4.1 (OK I know it's not in portage - yet) with
wxGTK-2.6.1:

x_baseu-2.6  -pthread   -lwx_gtk2u_stc-2.6 -lwx_gtk2u_ogl-2.6 -lwx_baseu-2.6
/usr/lib/libwx_gtk2u_core-2.6.so: undefined reference to `pango_x_get_context'
collect2: ld returned 1 exit status
make[2]: *** [pgadmin3] Error 1
make[2]: Leaving directory
`/var/tmp/portage/pgadmin3-1.4.1/work/pgadmin3-1.4.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/pgadmin3-1.4.1/work/pgadmin3-1.4.1'make: *** [all] Error 2


After rebuilding wxGTK with the patches here it compiles fine.


I was also having problems with a wxPython program that did
wxversion.select('2.6-gtk2-ansi') and had to go back to
wxversion.select('2.4-gtk2-ansi') - now they work again using 2.6.

------- Comment #14 From Kyle Hokanson 2005-12-21 04:42:52 0000 -------
i was having this problem also when trying to emerge boinc. patch fixed it,
thanks

------- Comment #15 From Jakub Moc (RETIRED) 2006-01-07 09:20:11 0000 -------
*** Bug 118192 has been marked as a duplicate of this bug. ***

------- Comment #16 From Jakub Moc (RETIRED) 2006-01-11 06:22:25 0000 -------
*** Bug 118639 has been marked as a duplicate of this bug. ***

------- Comment #17 From Jakub Moc (RETIRED) 2006-01-14 13:26:44 0000 -------
*** Bug 119022 has been marked as a duplicate of this bug. ***

------- Comment #18 From Jakub Moc (RETIRED) 2006-01-14 13:29:21 0000 -------
*** Bug 110003 has been marked as a duplicate of this bug. ***

------- Comment #19 From Jakub Moc (RETIRED) 2006-01-15 06:39:45 0000 -------
*** Bug 119088 has been marked as a duplicate of this bug. ***

------- Comment #20 From RB 2006-01-17 04:28:06 0000 -------
So...  we're at 2.6.2-r1 in portage, any chance of this making it into at least
Gentoo's tree?  I mean, it's not like we don't patch stuff all the time.  I'd
really rather not apply a manual patch to a package - too many variables.

Please remember - this breaks quite a few other packages.

------- Comment #21 From Jakub Moc (RETIRED) 2006-01-20 16:10:23 0000 -------
*** Bug 119750 has been marked as a duplicate of this bug. ***

------- Comment #22 From Jakub Moc (RETIRED) 2006-01-22 09:01:16 0000 -------
*** Bug 119944 has been marked as a duplicate of this bug. ***

------- Comment #23 From Jakub Moc (RETIRED) 2006-01-23 03:31:47 0000 -------
*** Bug 120034 has been marked as a duplicate of this bug. ***

------- Comment #24 From Marcelo Goes 2006-01-25 17:50:18 0000 -------
wxWindows Herd, is there anything preventing you from fixing this bug?
Patch comes from upstream - in fact, it's already in 2.6.2.

This bug already has a ton of duplicates.
Any word on this? Would you like help to fix it?

------- Comment #25 From andromede 2006-01-25 22:34:37 0000 -------
I had same troubles at emerging pgadmin3. Applying attached paches to wxGTK
fixed it. Had to md5sum ebuild and patch, edit the Manifest, and then I could
emerge.
Would be great that it gets into portage.
Thanks !

------- Comment #26 From Axel Dyks 2006-01-26 08:53:11 0000 -------
Doesn't "emerge --digest ..." save you from doing the "md5sum" and "Manifest"
stuff?

:-) Axel

------- Comment #27 From Marcelo Goes 2006-01-26 09:18:53 0000 -------
wxWindows: I am doing a revbump with the first patch of the list in 24 hours if
you don't complain.

------- Comment #28 From Mart Raudsepp 2006-01-26 10:38:56 0000 -------
Can I dare to mention that wxPython-2.6.2.1 is out by now, and this isn't
really relevant here anymore, assuming wxPython 2.6.2.1 is packaged up, to work
together with wxGTK-2.6.2 + patch to bring it up to date to wxPy_2_6_2_1 tag in
CVS (which would include the src/common/intl.cpp crasher patch)?

No? Ok, I won't mention it then ;)

I bet a revbump would be much easier at first.

------- Comment #29 From Marcelo Goes 2006-01-26 12:39:12 0000 -------
=wxGTK-2.6.1-r1 has the fix.

alpha, amd64, arm, hppa, ia64, ppc, ppc64, sparc, x86:
please test and stabilize.

Running "ldd -r /usr/lib/libwx_gtk2_core-2.6.so" should be enough to show if
the undefined symbol is gone.

------- Comment #30 From Gustavo Zacarias (RETIRED) 2006-01-26 12:44:53 0000 -------
sparc stable, wrt bug #120333 too.

------- Comment #31 From Joshua Jackson 2006-01-26 21:42:46 0000 -------
x86 stable

------- Comment #32 From Daniel Black 2006-01-27 20:04:36 0000 -------
*** Bug 110282 has been marked as a duplicate of this bug. ***

------- Comment #33 From Jakub Moc (RETIRED) 2006-01-28 05:31:02 0000 -------
*** Bug 105771 has been marked as a duplicate of this bug. ***

------- Comment #34 From Mike Doty 2006-01-28 09:15:27 0000 -------
amd64 stable

------- Comment #35 From Markus Rothe 2006-01-28 11:30:01 0000 -------
stable on ppc64

------- Comment #36 From Tobias Scherbaum 2006-01-28 11:45:55 0000 -------
Already marked ppc stable by hansmi.

------- Comment #37 From Diego E. 'Flameeyes' Pettenò 2006-01-29 23:09:06 0000 -------
*** Bug 119027 has been marked as a duplicate of this bug. ***

------- Comment #38 From Jose Luis Rivero (yoswink) 2006-01-31 03:01:00 0000 -------
alpha stable wrt bug #120333

------- Comment #39 From Jakub Moc (RETIRED) 2006-02-16 05:23:35 0000 -------
*** Bug 123026 has been marked as a duplicate of this bug. ***

------- Comment #40 From Gustavo Zacarias (RETIRED) 2006-03-22 14:05:13 0000 -------
hppa stable, we're last, closing.

First Last Prev Next    No search results available      Search page      Enter new bug