Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 117357

Summary: wxgtk-2.4.2 compiled with gcc 4.0.2 breaks compilation of other apps
Product: Gentoo Linux Reporter: Chris Fairles <chris.fairles>
Component: Current packagesAssignee: Gentoo wxWidgets project <wxwidgets>
Status: RESOLVED FIXED    
Severity: normal CC: halcy0n, sound, teidakankan, voyageur
Priority: High    
Version: 2005.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 117482    
Attachments: wxGTK-2.4.2-gcc4-wxfileproto.patch
wxGTK-2.4.2-gcc4.patch
wxGTK-2.4.2-r5.ebuild

Description Chris Fairles 2006-01-01 08:38:40 UTC
I have compiled wxGTK-2.4 with wxgtk1 use flag on
x11-libs/wxGTK-2.4.2-r4  USE="gtk2 opengl wxgtk1 -debug -odbc -unicode" 0 kB

also tried it with gtk2 OFF and get same result.

/usr/lib/gcc/i686-pc-linux-gnu/4.0.2/../../../libwx_gtk-2.4.so: undefined reference to `vtable for wxFileProto'

Above was done with wxGTK-2.6.2-r1 still installed. Same happens if I remove it.


emerge --info
Portage 2.1_pre3-r1 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r1, 2.6.14-nitro2 i686)
=================================================================
System uname: 2.6.14-nitro2 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System version 1.12.0_pre12
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.17
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-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrored.ca/ http://adelie.polymtl.ca/ http://mirrors.acm.cs.rpi.edu/gentoo/ http://gentoo.mirrors.tds.net/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/"
MAKEOPTS="-j3"
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 a52 aac acpi alsa apache2 audiofile avi bash-completion berkdb bitmap-fonts browserplugin bzip2 cdr crypt cscope cups curl divx4linux dvd dvdr emacs emboss encode exif expat fam ffmpeg fftw firefox flac foomaticdb fortran ftp gd gdbm gif ginac glut glx gmp gpm gstreamer gtk gtk2 guile hal idn imagemagick imlib java javascript jpeg jpeg2k kerberos lcms ldap libg++ libwww mad mhash mikmod mjpeg mmx mng mp3 mpeg msn mysql ncurses netboot nis nntp nptl nptlonly nsplugin ogg oggvorbis openal opengl oss pam pcmcia pcre pdflib perl png posix ppds pthreads python qt quicktime readline real ruby samba sdl sharedmem smp snmp spell sqlite sse ssl svga tcltk tcpd tetex threads tiff transcode truetype truetype-fonts type1-fonts udev usb v4l v4l2 vcd verbose vorbis wifi win32codecs wxwindows xine xml2 xmms xv xvid zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Chris Fairles 2006-01-01 09:51:48 UTC
Created attachment 75921 [details, diff]
wxGTK-2.4.2-gcc4-wxfileproto.patch

Patch for wxGTK-2.4.2 that fixes vtable issue.
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2006-01-01 10:26:13 UTC
*** Bug 117355 has been marked as a duplicate of this bug. ***
Comment 3 Chris Fairles 2006-01-01 11:00:30 UTC
Created attachment 75930 [details, diff]
wxGTK-2.4.2-gcc4.patch

Consolidated gcc4 patch (includes many fixes for warnings etc.)

Many thanks to the Fedora Extra team for these. 
https://bugzilla.redhat.com/bugzilla/long_list.cgi?buglist=154958
Comment 4 Chris Fairles 2006-01-01 12:25:20 UTC
Created attachment 75939 [details]
wxGTK-2.4.2-r5.ebuild

Might as well post this too... ebuild I used.
Comment 5 Bernard Cafarelli gentoo-dev 2006-01-09 10:01:10 UTC
The problem is not limited to audacity: I had to patch wxGTK to emerge mkvtoolnix (same problem with broken vtable).

Also, shouldn't this bug report be marked as a blocker of bug #117482 ?
Comment 6 Mark Loeser (RETIRED) gentoo-dev 2006-01-28 12:31:49 UTC
I don't think we need this patch.  wxGTK stuff works fine for me.  Can you please try re-emerging gcc-4.0.2-r3 and let me know if this is still an issue?  (You need to re-emerge if you haven't lately because I excluded a patch and didn't bump the ebuild, it is still -* :) )
Comment 7 Bernard Cafarelli gentoo-dev 2006-01-29 06:19:27 UTC
Hum I've juste done:
# mv /usr/local/portage/x11-libs/wxGTK /outoftheway
# emerge sync
# emerge -av gcc '=x11-libs/wxGTK-2.4.2-r4' mkvtoolnix

And mkvtoolnix failed with:
    LINK  src/mkvmerge
/usr/lib64/libwx_gtk2u-2.4.so: undefined reference to `wxwxListStringNode::~wxwxListStringNode()'
/usr/lib64/libwx_gtk2u-2.4.so: undefined reference to `wxwxMenuItemListNode::~wxwxMenuItemListNode()'
/usr/lib64/libwx_gtk2u-2.4.so: undefined reference to `wxwxMenuItemListNode::~wxwxMenuItemListNode()'
/usr/lib64/libwx_gtk2u-2.4.so: undefined reference to `vtable for wxFileProto'
/usr/lib64/libwx_gtk2u-2.4.so: undefined reference to `wxwxListStringNode::~wxwxListStringNode()'
collect2: ld a retourn
Comment 8 Bernard Cafarelli gentoo-dev 2006-01-29 06:19:27 UTC
Hum I've juste done:
# mv /usr/local/portage/x11-libs/wxGTK /outoftheway
# emerge sync
# emerge -av gcc '=x11-libs/wxGTK-2.4.2-r4' mkvtoolnix

And mkvtoolnix failed with:
    LINK  src/mkvmerge
/usr/lib64/libwx_gtk2u-2.4.so: undefined reference to `wxwxListStringNode::~wxwxListStringNode()'
/usr/lib64/libwx_gtk2u-2.4.so: undefined reference to `wxwxMenuItemListNode::~wxwxMenuItemListNode()'
/usr/lib64/libwx_gtk2u-2.4.so: undefined reference to `wxwxMenuItemListNode::~wxwxMenuItemListNode()'
/usr/lib64/libwx_gtk2u-2.4.so: undefined reference to `vtable for wxFileProto'
/usr/lib64/libwx_gtk2u-2.4.so: undefined reference to `wxwxListStringNode::~wxwxListStringNode()'
collect2: ld a retourné 1 code d'état d'exécution

Emerging went fine again after pulling out the patched wxGTK-2.4

So the patch is at least needed for mkvtoolnix... if it worked for you without patch, did you have USE="bzip2 flac wxwindows -lzo" for it?
Comment 9 Josh Nichols (RETIRED) gentoo-dev 2006-01-29 13:47:58 UTC
The attach patch fixed audacity and mkvtoolnix for me.
Comment 10 Mark Loeser (RETIRED) gentoo-dev 2006-01-29 13:59:12 UTC
Okay, the other bug I was thinking about was with wxGTK-2.6.  This patch does fix things that link against 2.4, so please apply the patch.
Comment 11 Mark Loeser (RETIRED) gentoo-dev 2006-02-12 22:52:15 UTC
Thanks for the patch.  Fixed.