Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123323 - x11-libs/wxGTK-2.4.2-r4 - libwx_gtk2d-2.4.so: undefined reference to `vtable for wxFileProto'
Summary: x11-libs/wxGTK-2.4.2-r4 - libwx_gtk2d-2.4.so: undefined reference to `vtable ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
: 125113 127941 (view as bug list)
Depends on:
Blocks: 110932
  Show dependency tree
 
Reported: 2006-02-18 16:25 UTC by Petr Koval
Modified: 2006-03-29 08:54 UTC (History)
10 users (show)

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


Attachments
updated wxGTK-2.4.2-gcc4.patch (wxGTK-2.4.2-gcc4.patch,9.88 KB, patch)
2006-02-26 23:13 UTC, Wormo (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Koval 2006-02-18 16:25:29 UTC
pavilion ~ # emerge --info
Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -pipe -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 /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="http://localhost/gentoo/source ftp://gentoo.inode.at/source ftp://gd.tuwien.ac.at/pub/linux/gentoo"
LANG="german"
LC_ALL="de_AT.utf8"
LINGUAS="de cs"
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 a52 aac aalib acl acpi alsa apache2 apic apm arts asf audiofile avi berkdb bitmap-fonts bluetooth bonobo bootsplash bzip2 cdda cddb cdio cdparanoia cdr cdrom chroot clamav cli crypt cups curl dba debug dga directfb divx4linux doc dts dv dvd dvdr dvdread eds emboss encode esd ethereal examples exif expat fam fbcon ffmpeg flac font-server foomaticdb fortran gd gdbm geoip gg ggi gif glut gmp gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal icq idn ieee1394 imagemagick imap imlib ipv6 ithreads jack java javascript jpeg jpeg2k junit kde lcms ldap libcaca libclamav libg++ libwww lirc live logrotate lzo mad maildir mailwrapper math mbox mhash mikmod milter ming mmx mng motif mozilla mp3 mpeg msn mysql nas ncurses network nfs nls nntp nptl nsplugin nvidia oav ogg oggvorbis openal opengl oscar oss pam pascal passfile password pcmcia pcre pda pdf pdflib perl php physfs pic png pnp postgres povray procmail python qemu-fast qt quicktime quotas quotes rar rdesktop readline real recode reiserfs remote rplay rtc ruby samba sasl scanner screen sdk sdl sftp silc skey slang smime smp sms sndfile snmp sockets socks5 softmmu sox spamassassin speech speex spell spl sql sqlite sse sse2 ssh ssl stats stream streamzap subject-rewrite subtitles svg svga sysfs tcltk tcpd tetex theora threads tiff timidity toolbar truetype truetype-fonts type1-fonts udev unicode uptimed usb userlocales utf8 v4l v4l2 vcd vcdimager vdr vidix virus-scan vlm vorbis wifi win32codecs winbind wma123 xanim xface xfs xine xinerama xml xml2 xmms xosd xprint xscreensaver xv xvid xvmc yahoo yv12 zlib linguas_de linguas_cs userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS

pavilion ~ # equery list wxGTK-2.4
[ Searching for package 'wxGTK' in all categories among: ]
 * installed packages
[I--] [  ] x11-libs/wxGTK-2.4.2-r4 (2.4)

pavilion ~ # equery list gtk+-2
[ Searching for package 'gtk+' in all categories among: ]
 * installed packages
[I--] [  ] x11-libs/gtk+-2.8.8 (2)

pavilion ~ # emerge -pv =x11-libs/wxGTK-2.4.2-r4

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] x11-libs/wxGTK-2.4.2-r4  +debug +gtk2 -odbc +opengl -unicode -wxgtk1 0 kB

/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libwx_gtk2d-2.4.so: undefined reference to `vtable for wxFileProto'
collect2: ld returned 1 exit status
make[1]: *** [../audacity] Error 1
make[1]: Leaving directory `/var/tmp/portage/audacity-1.2.1/work/audacity-src-1.2.1/src'
make: *** [audacity] Error 2

!!! ERROR: media-sound/audacity-1.2.1 failed.

/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libwx_gtk2d-2.4.so: undefined reference to `vtable for wxFileProto'
collect2: ld returned 1 exit status
make[2]: *** [dvdstyler] Error 1
make[2]: Leaving directory `/var/tmp/portage/dvdstyler-1.4/work/DVDStyler-1.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dvdstyler-1.4/work/DVDStyler-1.4/src'
make: *** [all-recursive] Error 1

!!! ERROR: media-video/dvdstyler-1.4 failed.

and any other wx apps

re-emerge of x11-libs/wxGTK-2.4.2-r4 doesn't resolve this problem
Comment 1 Duncan Coutts (RETIRED) gentoo-dev 2006-02-19 08:28:50 UTC
The wxhaskell-0.8 and 0.9 ebuilds are running into this problem too.

emerging the 'stable' wxhaskell and then trying to load the package in ghci gives:

$ ghci -package wx
Loading package wxcore ... ghc-6.2.2: can't load .so/.DLL for: wxc-gtk2.4.2-0.8 (/usr/lib/libwx_gtk2-2.4.so: undefined symbol: _ZTV11wxFileProto)

I think that _ZTV11wxFileProto is just the unmagled name for the wxFileProto vtable.
Comment 2 Duncan Coutts (RETIRED) gentoo-dev 2006-02-19 08:31:33 UTC
red hat seem to have a patch

problem:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=154958#c3

the patch:
https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=113274
Comment 3 Duncan Coutts (RETIRED) gentoo-dev 2006-02-19 09:43:48 UTC
Oh, that patch is already included in wxGTK-2.4.2-r4. And yet we're still getting the linking bug. That patch seemed to fix it for the RedHat people.

I'm confused now.
Comment 4 Duncan Coutts (RETIRED) gentoo-dev 2006-02-19 10:54:27 UTC
wxhaskell-0.8-r1 and wxhaskell-0.9 will be p.masked until this bug can be fixed.
Comment 5 AJ 2006-02-20 07:33:26 UTC
I got the following for any version of rapidsvn I tried to compile last night:

/usr/lib/libwx_gtk2-2.4.so: undefined reference to `vtable for wxFileProto'
collect2: ld returned 1 exit status
make[2]: *** [rapidsvn] Error 1
Comment 6 Pamplemousse Mk2 2006-02-21 15:16:50 UTC
Hello,
I've got the same problem with dvdstyler-1.4.

i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"DVDStyler\" -DPACKAGE_TARNAME=\"dvdstyler\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"DVDStyler\ 1.0\" -DPACKAGE_BUGREPORT=\"dvdstyler-users@lists.sourceforge.net\" -DPACKAGE=\"dvdstyler\" -DVERSION=\"1.0\"  -I. -I.     -march=athlon-xp -O2 -pipe -fomit-frame-pointer  -I/usr/lib/wx/include/gtk2u-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -DGNOME2 -DDATADIR=\"/usr/share/dvdstyler\" -I.. -c -o TitleThumbnails.o `test -f 'TitleThumbnails.cpp' || echo './'`TitleThumbnails.cpp
i686-pc-linux-gnu-g++  -march=athlon-xp -O2 -pipe -fomit-frame-pointer  -I/usr/lib/wx/include/gtk2u-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -DGNOME2 -DDATADIR=\"/usr/share/dvdstyler\" -I..   -o dvdstyler  About.o AVPropDlg.o BurnDlg.o ButtonPropDlg.o Config.o DVD.o DVDPropDlg.o dvdstyler.o hyperlink.o Languages.o MainWin.o Menu.o MenuBox.o MenuPropDlg.o MPEG.o ProgressDlg.o SettingsDlg.o TextPropDlg.o TitlePropDlg.o TitleThumbnails.o ../wxVillaLib/libwxvilla.a ../wxXML/libwxxml.a -pthread    -lwx_gtk2u-2.4  -lpangox-1.0   -Wl,--export-dynamic -pthread -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnome-keyring -lxml2 -lz -lgnomecanvas-2 -lgnome-2 -lpopt -lart_lgpl_2 -lpangoft2-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgnomevfs-2 -lbonobo-2 -lgconf-2 -lgobject-2.0 -lbonobo-activation -lORBit-2 -lm -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libwx_gtk2u-2.4.so: r
Comment 7 Pamplemousse Mk2 2006-02-21 15:16:50 UTC
Hello,
I've got the same problem with dvdstyler-1.4.

i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"DVDStyler\" -DPACKAGE_TARNAME=\"dvdstyler\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"DVDStyler\ 1.0\" -DPACKAGE_BUGREPORT=\"dvdstyler-users@lists.sourceforge.net\" -DPACKAGE=\"dvdstyler\" -DVERSION=\"1.0\"  -I. -I.     -march=athlon-xp -O2 -pipe -fomit-frame-pointer  -I/usr/lib/wx/include/gtk2u-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -DGNOME2 -DDATADIR=\"/usr/share/dvdstyler\" -I.. -c -o TitleThumbnails.o `test -f 'TitleThumbnails.cpp' || echo './'`TitleThumbnails.cpp
i686-pc-linux-gnu-g++  -march=athlon-xp -O2 -pipe -fomit-frame-pointer  -I/usr/lib/wx/include/gtk2u-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -DGNOME2 -DDATADIR=\"/usr/share/dvdstyler\" -I..   -o dvdstyler  About.o AVPropDlg.o BurnDlg.o ButtonPropDlg.o Config.o DVD.o DVDPropDlg.o dvdstyler.o hyperlink.o Languages.o MainWin.o Menu.o MenuBox.o MenuPropDlg.o MPEG.o ProgressDlg.o SettingsDlg.o TextPropDlg.o TitlePropDlg.o TitleThumbnails.o ../wxVillaLib/libwxvilla.a ../wxXML/libwxxml.a -pthread    -lwx_gtk2u-2.4  -lpangox-1.0   -Wl,--export-dynamic -pthread -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnome-keyring -lxml2 -lz -lgnomecanvas-2 -lgnome-2 -lpopt -lart_lgpl_2 -lpangoft2-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgnomevfs-2 -lbonobo-2 -lgconf-2 -lgobject-2.0 -lbonobo-activation -lORBit-2 -lm -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libwx_gtk2u-2.4.so: référence indéfinie vers « vtable for wxFileProto»
collect2: ld a retourné 1 code d'état d'exécution
make[2]: *** [dvdstyler] Erreur 1
make[2]: Leaving directory `/var/tmp/portage/dvdstyler-1.4/work/DVDStyler-1.4/src'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/var/tmp/portage/dvdstyler-1.4/work/DVDStyler-1.4/src'
make: *** [all-recursive] Erreur 1

!!! ERROR: media-video/dvdstyler-1.4 failed.
!!! Function src_compile, Line 566, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.
Comment 8 Martin Wohlleben 2006-02-24 11:30:37 UTC
Hi, when I got the same error compiling ardour:

/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libwx_gtk2-2.4.so: undefined reference to `vtable for wxFileProto'
collect2: ld returned 1 exit status
make[1]: *** [../audacity] Error 1
make[1]: Leaving directory `/var/tmp/portage/audacity-1.2.4b-r1/work/audacity-src-1.2.4b/src'
make: *** [audacity] Error 2

I use gentoos i686-pc-linux-gnu-3.4.4 on x86 for compiling and tried different use-settings for wxGTK (-unicode -gtk2 wxgtk1) in various combinations but it didn't work.

 
(In reply to comment #0)
> pavilion ~ # emerge --info
> Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2,
> 2.6.15-gentoo-r1 i686)
> =================================================================
> System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
> Gentoo Base System version 1.6.14
> distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
> [disabled]
> ccache version 2.3 [disabled]
> dev-lang/python:     2.3.5-r2, 2.4.2
> sys-apps/sandbox:    1.2.12
> 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-r1
> sys-devel/binutils:  2.16.1
> sys-devel/libtool:   1.5.22
> virtual/os-headers:  2.6.11-r2
> ACCEPT_KEYWORDS="x86"
> AUTOCLEAN="yes"
> CBUILD="i686-pc-linux-gnu"
> CFLAGS="-O3 -march=pentium4 -pipe -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
> /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
> /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
> /usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
> CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
> CXXFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer"
> DISTDIR="/usr/portage/distfiles"
> FEATURES="autoconfig buildpkg distlocks fixpackages sandbox sfperms strict"
> GENTOO_MIRRORS="http://localhost/gentoo/source ftp://gentoo.inode.at/source
> ftp://gd.tuwien.ac.at/pub/linux/gentoo"
> LANG="german"
> LC_ALL="de_AT.utf8"
> LINGUAS="de cs"
> 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 a52 aac aalib acl acpi alsa apache2 apic apm arts asf audiofile avi
> berkdb bitmap-fonts bluetooth bonobo bootsplash bzip2 cdda cddb cdio cdparanoia
> cdr cdrom chroot clamav cli crypt cups curl dba debug dga directfb divx4linux
> doc dts dv dvd dvdr dvdread eds emboss encode esd ethereal examples exif expat
> fam fbcon ffmpeg flac font-server foomaticdb fortran gd gdbm geoip gg ggi gif
> glut gmp gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal icq idn
> ieee1394 imagemagick imap imlib ipv6 ithreads jack java javascript jpeg jpeg2k
> junit kde lcms ldap libcaca libclamav libg++ libwww lirc live logrotate lzo mad
> maildir mailwrapper math mbox mhash mikmod milter ming mmx mng motif mozilla
> mp3 mpeg msn mysql nas ncurses network nfs nls nntp nptl nsplugin nvidia oav
> ogg oggvorbis openal opengl oscar oss pam pascal passfile password pcmcia pcre
> pda pdf pdflib perl php physfs pic png pnp postgres povray procmail python
> qemu-fast qt quicktime quotas quotes rar rdesktop readline real recode reiserfs
> remote rplay rtc ruby samba sasl scanner screen sdk sdl sftp silc skey slang
> smime smp sms sndfile snmp sockets socks5 softmmu sox spamassassin speech speex
> spell spl sql sqlite sse sse2 ssh ssl stats stream streamzap subject-rewrite
> subtitles svg svga sysfs tcltk tcpd tetex theora threads tiff timidity toolbar
> truetype truetype-fonts type1-fonts udev unicode uptimed usb userlocales utf8
> v4l v4l2 vcd vcdimager vdr vidix virus-scan vlm vorbis wifi win32codecs winbind
> wma123 xanim xface xfs xine xinerama xml xml2 xmms xosd xprint xscreensaver xv
> xvid xvmc yahoo yv12 zlib linguas_de linguas_cs userland_GNU kernel_linux
> elibc_glibc"
> Unset:  ASFLAGS, CTARGET, LDFLAGS
> 
> pavilion ~ # equery list wxGTK-2.4
> [ Searching for package 'wxGTK' in all categories among: ]
>  * installed packages
> [I--] [  ] x11-libs/wxGTK-2.4.2-r4 (2.4)
> 
> pavilion ~ # equery list gtk+-2
> [ Searching for package 'gtk+' in all categories among: ]
>  * installed packages
> [I--] [  ] x11-libs/gtk+-2.8.8 (2)
> 
> pavilion ~ # emerge -pv =x11-libs/wxGTK-2.4.2-r4
> 
> These are the packages that I would merge, in order:
> 
> Calculating dependencies ...done!
> [ebuild   R   ] x11-libs/wxGTK-2.4.2-r4  +debug +gtk2 -odbc +opengl -unicode
> -wxgtk1 0 kB
> 
> /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libwx_gtk2d-2.4.so: undefined
> reference to `vtable for wxFileProto'
> collect2: ld returned 1 exit status
> make[1]: *** [../audacity] Error 1
> make[1]: Leaving directory
> `/var/tmp/portage/audacity-1.2.1/work/audacity-src-1.2.1/src'
> make: *** [audacity] Error 2
> 
> !!! ERROR: media-sound/audacity-1.2.1 failed.
> 
> /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libwx_gtk2d-2.4.so: undefined
> reference to `vtable for wxFileProto'
> collect2: ld returned 1 exit status
> make[2]: *** [dvdstyler] Error 1
> make[2]: Leaving directory
> `/var/tmp/portage/dvdstyler-1.4/work/DVDStyler-1.4/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/var/tmp/portage/dvdstyler-1.4/work/DVDStyler-1.4/src'
> make: *** [all-recursive] Error 1
> 
> !!! ERROR: media-video/dvdstyler-1.4 failed.
> 
> and any other wx apps
> 
> re-emerge of x11-libs/wxGTK-2.4.2-r4 doesn't resolve this problem
> 

(In reply to comment #0)
> pavilion ~ # emerge --info
> Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2,
> 2.6.15-gentoo-r1 i686)
> =================================================================
> System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
> Gentoo Base System version 1.6.14
> distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
> [disabled]
> ccache version 2.3 [disabled]
> dev-lang/python:     2.3.5-r2, 2.4.2
> sys-apps/sandbox:    1.2.12
> 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-r1
> sys-devel/binutils:  2.16.1
> sys-devel/libtool:   1.5.22
> virtual/os-headers:  2.6.11-r2
> ACCEPT_KEYWORDS="x86"
> AUTOCLEAN="yes"
> CBUILD="i686-pc-linux-gnu"
> CFLAGS="-O3 -march=pentium4 -pipe -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
> /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
> /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
> /usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
> CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
> CXXFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer"
> DISTDIR="/usr/portage/distfiles"
> FEATURES="autoconfig buildpkg distlocks fixpackages sandbox sfperms strict"
> GENTOO_MIRRORS="http://localhost/gentoo/source ftp://gentoo.inode.at/source
> ftp://gd.tuwien.ac.at/pub/linux/gentoo"
> LANG="german"
> LC_ALL="de_AT.utf8"
> LINGUAS="de cs"
> 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 a52 aac aalib acl acpi alsa apache2 apic apm arts asf audiofile avi
> berkdb bitmap-fonts bluetooth bonobo bootsplash bzip2 cdda cddb cdio cdparanoia
> cdr cdrom chroot clamav cli crypt cups curl dba debug dga directfb divx4linux
> doc dts dv dvd dvdr dvdread eds emboss encode esd ethereal examples exif expat
> fam fbcon ffmpeg flac font-server foomaticdb fortran gd gdbm geoip gg ggi gif
> glut gmp gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal icq idn
> ieee1394 imagemagick imap imlib ipv6 ithreads jack java javascript jpeg jpeg2k
> junit kde lcms ldap libcaca libclamav libg++ libwww lirc live logrotate lzo mad
> maildir mailwrapper math mbox mhash mikmod milter ming mmx mng motif mozilla
> mp3 mpeg msn mysql nas ncurses network nfs nls nntp nptl nsplugin nvidia oav
> ogg oggvorbis openal opengl oscar oss pam pascal passfile password pcmcia pcre
> pda pdf pdflib perl php physfs pic png pnp postgres povray procmail python
> qemu-fast qt quicktime quotas quotes rar rdesktop readline real recode reiserfs
> remote rplay rtc ruby samba sasl scanner screen sdk sdl sftp silc skey slang
> smime smp sms sndfile snmp sockets socks5 softmmu sox spamassassin speech speex
> spell spl sql sqlite sse sse2 ssh ssl stats stream streamzap subject-rewrite
> subtitles svg svga sysfs tcltk tcpd tetex theora threads tiff timidity toolbar
> truetype truetype-fonts type1-fonts udev unicode uptimed usb userlocales utf8
> v4l v4l2 vcd vcdimager vdr vidix virus-scan vlm vorbis wifi win32codecs winbind
> wma123 xanim xface xfs xine xinerama xml xml2 xmms xosd xprint xscreensaver xv
> xvid xvmc yahoo yv12 zlib linguas_de linguas_cs userland_GNU kernel_linux
> elibc_glibc"
> Unset:  ASFLAGS, CTARGET, LDFLAGS
> 
> pavilion ~ # equery list wxGTK-2.4
> [ Searching for package 'wxGTK' in all categories among: ]
>  * installed packages
> [I--] [  ] x11-libs/wxGTK-2.4.2-r4 (2.4)
> 
> pavilion ~ # equery list gtk+-2
> [ Searching for package 'gtk+' in all categories among: ]
>  * installed packages
> [I--] [  ] x11-libs/gtk+-2.8.8 (2)
> 
> pavilion ~ # emerge -pv =x11-libs/wxGTK-2.4.2-r4
> 
> These are the packages that I would merge, in order:
> 
> Calculating dependencies ...done!
> [ebuild   R   ] x11-libs/wxGTK-2.4.2-r4  +debug +gtk2 -odbc +opengl -unicode
> -wxgtk1 0 kB
> 
> /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libwx_gtk2d-2.4.so: undefined
> reference to `vtable for wxFileProto'
> collect2: ld returned 1 exit status
> make[1]: *** [../audacity] Error 1
> make[1]: Leaving directory
> `/var/tmp/portage/audacity-1.2.1/work/audacity-src-1.2.1/src'
> make: *** [audacity] Error 2
> 
> !!! ERROR: media-sound/audacity-1.2.1 failed.
> 
> /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libwx_gtk2d-2.4.so: undefined
> reference to `vtable for wxFileProto'
> collect2: ld returned 1 exit status
> make[2]: *** [dvdstyler] Error 1
> make[2]: Leaving directory
> `/var/tmp/portage/dvdstyler-1.4/work/DVDStyler-1.4/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/var/tmp/portage/dvdstyler-1.4/work/DVDStyler-1.4/src'
> make: *** [all-recursive] Error 1
> 
> !!! ERROR: media-video/dvdstyler-1.4 failed.
> 
> and any other wx apps
> 
> re-emerge of x11-libs/wxGTK-2.4.2-r4 doesn't resolve this problem
> 

Comment 9 Wormo (RETIRED) gentoo-dev 2006-02-26 23:09:03 UTC
I think I've got a fix -- at least it worked for building audacity.
The gcc4 patch needs one more little tweak, because it left wxFileProto with 
"#pragma implementation" and "#pragma interface" statements that didn't match.
Can you guys try out the following updated gcc4 patch?
Comment 10 Wormo (RETIRED) gentoo-dev 2006-02-26 23:13:35 UTC
Created attachment 80816 [details, diff]
updated wxGTK-2.4.2-gcc4.patch

appended a new little section that updates "#pragma interface" in file.h to match "#pragma implementation" in sckfile.cpp
Comment 11 Martin Wohlleben 2006-02-27 11:06:32 UTC
Yes, it works!

At least with audacity audacity-1.2.4b-r1 and gcc-3.4.4 on x86.

I did the following steps:

# emerge --unmerge wxGTK
# cp wxGTK-2.4.2-gcc4.patch /usr/portage/x11-libs/wxGTK/files/wxGTK-2.4.2-gcc4.patch 
# cd /usr/portage/x11-libs/wxGTK
# ebuild wxGTK-2.4.2-r4.ebuild digest
# emerge audacity

Thanks for the fast bug-fix.
Comment 12 AJ 2006-02-27 17:42:43 UTC
the patch solved my problem thanks!!
Comment 13 toon 2006-02-28 01:16:12 UTC
The patch works for me too.
I had a problem compiling dvdstyler.
The problem went away after applying the patch.
Comment 14 Petr Koval 2006-02-28 06:34:09 UTC
(In reply to comment #9)
> Created an attachment (id=80816) [edit]
> updated wxGTK-2.4.2-gcc4.patch
> 
> appended a new little section that updates "#pragma interface" in file.h to
> match "#pragma implementation" in sckfile.cpp
> 

thank you

all libwx_gtk2d-2.4.so depenced ebuilds can be emerged

this bug entry can be set as FIXED when the patch is in the official portage
Comment 15 Wormo (RETIRED) gentoo-dev 2006-02-28 09:07:07 UTC
ok, patch seems to work... one of you wxwindows devs want to take a look at committing it (or give me permission to commit it)? It should probably be pushed upstream as well
Comment 16 Sebastiaan Patrick Vandenbore 2006-02-28 15:40:19 UTC
I've done as suggested,

I did the following steps:

# emerge --unmerge wxGTK
# cp wxGTK-2.4.2-gcc4.patch
/usr/portage/x11-libs/wxGTK/files/wxGTK-2.4.2-gcc4.patch 
# cd /usr/portage/x11-libs/wxGTK
# ebuild wxGTK-2.4.2-r4.ebuild digest
# emerge =wxGTK-2.4.2-r4

Compilation went well, but when I start the security module for my homebanking application I get the following error:

$ ./HBSecurity
HBSecGUI: symbol lookup error: HBSecGUI: undefined symbol: _9wxAppBase.m_appInitFn
Comment 17 Martin Wegner 2006-03-02 06:25:41 UTC
Patch WORKSFORME

I would be very glad if the patch could be addad to portage soon.
Comment 18 Geaaru 2006-03-05 05:53:48 UTC
I had same problem in amd64 arch and gcc v.3.4.4:
NEVYL files # objdump -T  /usr/lib/libwx_gtk2-2.4.so | grep wxFileProto
00000000003b9c10 g    DF .text  0000000000000048  WXGTK2_2.4  _Z27wxConstructorForwxFileProtov
00000000003b9ce0 g    DF .text  0000000000000053  WXGTK2_2.4  _ZN11wxFileProto14GetInputStreamERK8wxString
000000000064c188 g    DO .data  0000000000000001  WXGTK2_2.4  wxProtocolUsewxFileProto
00000000003b9ca0 g    DF .text  000000000000001c  WXGTK2_2.4  _ZN11wxFileProtoD1Ev
0000000000666440 g    DO .bss   0000000000000040  WXGTK2_2.4  _ZN11wxFileProto19sm_classwxFileProtoE
0000000000666400 g    DO .bss   0000000000000040  WXGTK2_2.4  _ZN11wxFileProto19g_proto_wxFileProtoE
00000000003b9bf0 g    DF .text  0000000000000019  WXGTK2_2.4  _ZN11wxFileProtoC1Ev
00000000003b9cc0 g    DF .text  0000000000000020  WXGTK2_2.4  _ZN11wxFileProtoD0Ev
00000000003b9c60 g    DF .text  0000000000000019  WXGTK2_2.4  _ZN11wxFileProtoC2Ev
00000000003b9c80 g    DF .text  000000000000001c  WXGTK2_2.4  _ZN11wxFileProtoD2Ev
0000000000000000      D  *UND*  0000000000000000              _ZTV11wxFileProto

I removed gcc4 patch and now works.
NEVYL wxGTK # objdump -T  /usr/lib/libwx_gtk2-2.4.so | grep wxFileProto
00000000003b8670  w   DF .text  0000000000000008  WXGTK2_2.4  _ZNK11wxFileProto12GetClassInfoEv
00000000003b8690  w   DF .text  0000000000000006  WXGTK2_2.4  _ZN11wxFileProto5AbortEv
000000000045c663  w   DO .rodata        000000000000000e  WXGTK2_2.4  _ZTS11wxFileProto
00000000003b83c0 g    DF .text  0000000000000048  WXGTK2_2.4  _Z27wxConstructorForwxFileProtov
00000000003b8490 g    DF .text  0000000000000053  WXGTK2_2.4  _ZN11wxFileProto14GetInputStreamERK8wxString
00000000006480c8 g    DO .data  0000000000000001  WXGTK2_2.4  wxProtocolUsewxFileProto
00000000003b8450 g    DF .text  000000000000001c  WXGTK2_2.4  _ZN11wxFileProtoD1Ev
0000000000661540 g    DO .bss   0000000000000040  WXGTK2_2.4  _ZN11wxFileProto19sm_classwxFileProtoE
0000000000661500 g    DO .bss   0000000000000040  WXGTK2_2.4  _ZN11wxFileProto19g_proto_wxFileProtoE
00000000003b83a0 g    DF .text  0000000000000019  WXGTK2_2.4  _ZN11wxFileProtoC1Ev
00000000003b8470 g    DF .text  0000000000000020  WXGTK2_2.4  _ZN11wxFileProtoD0Ev
00000000003b8410 g    DF .text  0000000000000019  WXGTK2_2.4  _ZN11wxFileProtoC2Ev
0000000000648180  w   DO .data  0000000000000018  WXGTK2_2.4  _ZTI11wxFileProto
00000000003b8680  w   DF .text  0000000000000007  WXGTK2_2.4  _ZN11wxFileProto8GetErrorEv
00000000003b8430 g    DF .text  000000000000001c  WXGTK2_2.4  _ZN11wxFileProtoD2Ev
00000000006480e0  w   DO .data  0000000000000098  WXGTK2_2.4  _ZTV11wxFileProto
Comment 19 Jakub Moc (RETIRED) gentoo-dev 2006-03-05 12:05:30 UTC
*** Bug 125113 has been marked as a duplicate of this bug. ***
Comment 20 Peter Beekman 2006-03-07 20:10:30 UTC
(In reply to comment #9)
This patch, following procedure in comment #10, works for me too.
Comment 21 Valery Cedigt 2006-03-08 07:03:22 UTC
Hi !

THe patch in wxGTK-2.4.2-r4 helped to correct the audacity-1.2.1 merge error. Just a very curious thing : the active gcc compiler is in version 3.3.6. I have not seen in the /var/log/portage/*wxGTK* anything about using the GCC4 compiler. So it's curious the GCC4 patch correct the problem.

Cordially,
Fabienne 
Comment 22 Valery Cedigt 2006-03-08 07:06:42 UTC
Hi !

THe patch in wxGTK-2.4.2-r4 helped to correct the audacity-1.2.1 merge error. Just a very curious thing : the active gcc compiler is in version 3.3.6. I have not seen in the /var/log/portage/*wxGTK* anything about using the GCC4 compiler. So it's curious the GCC4 patch correct the problem.

Cordially,
Fabienne 
Comment 23 Valery Cedigt 2006-03-09 23:38:04 UTC
Hi again,

it almost worked ... audacity failed after reboot. Nohup outputs :

audacity: symbol lookup error: /usr/lib/libwx_gtk2-2.4.so: undefined symbol: _ZTV11wxFileProto

Remerging wxGTK-2.4.2-r4 and audacity didn't solve the problem. 

Switching to GCC4 ...


Comment 24 Bernard Fortz 2006-03-10 13:13:34 UTC
In reply to <a href="http://bugs.gentoo.org/show_bug.cgi?id=123323#c15">comment 15</a> about ING Home Bank:

I encountered the same problem, and I was not able to fix wxGTK, but you can run 
./HBSecurity -t
to launch it in text mode, then 'm' to get a menu and '2' if you need to create your key file.

I hope this helps.
Comment 25 Duncan Coutts (RETIRED) gentoo-dev 2006-03-11 16:49:40 UTC
cc'ing gcc-porting people since this is at least somewhat related to gcc4 and so far we've not had any luck with finding someone with the authority and time to commit the patch.
Comment 26 dranger 2006-03-11 18:55:06 UTC
I also had success with the patch in comment #9, except on mine I changed both #pragmas to 'protocol/file.h'.
Comment 27 Duncan Coutts (RETIRED) gentoo-dev 2006-03-11 19:45:01 UTC
Halcy0n, with Wormo's updated gcc4 patch to wxGTK-2.4.2-r4, wxhaskell-0.8-r1 and wxhaskell-0.9 now build fine.
Comment 28 Mark Loeser (RETIRED) gentoo-dev 2006-03-14 21:25:50 UTC
Fixed, thanks.
Comment 29 Jakub Moc (RETIRED) gentoo-dev 2006-03-29 00:50:55 UTC
*** Bug 127941 has been marked as a duplicate of this bug. ***
Comment 30 Sebastian Mikulec 2006-03-29 08:54:18 UTC
This fixes the error when compiling mkvtoolnix with USE="wxwindows" for me, thanks!