/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 make[1]: *** [../audacity] Error 1 make[1]: Leaving directory `/var/tmp/portage/audacity-1.2.3-r1/work/audacity-src-1.2.3/src' make: *** [audacity] Error 2 !!! ERROR: media-sound/audacity-1.2.3-r1 failed. !!! Function src_compile, Line 59, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. media-sound/audacity-1.2.3-r1 -encode +flac +gtk2 -libsamplerate +mad +oggvorbis CFLAGS="-march=pentium4 -Os -pipe -fomit-frame-pointer" FEATURES="autoconfig ccache distlocks nodoc noinfo sandbox sfperms strict userpriv usersandbox" USE="X a52 aac aalib acpi alsa apache2 avi bash-completion berkdb bmp bzip2 c++ cairo cdr chroot crypt curl dga dvd dvdr dvdread ecc fbcon firefox flac gd gdbm ggi gif gnome gnutls gpm gtk gtk2 gtkhtml hal idea imagemagick java jpeg lm_sensors mad md5sum memlimit mmx mmx2 mmxext moznocompose moznoirc moznomail mozsvg mp3 mpeg msn mysql mysqli ncurses no-helper no-htdocs no-suexec nodoc noinfo nojoystick nosamples nosendmail nptl nptlonly nvidia ogg oggvorbis opengl pascal pcre perl php pic png python rar readline rtc sdl smp sse sse2 ssl svg symlink tcltk theora threads tiff truetype truetype-fonts usb userlocales vcd vim-with-x vorbis wma123 x86 xine xml2 xv xvid xvmc yahoo zlib userland_GNU kernel_linux elibc_glibc" Reproducible: Always Steps to Reproduce: 1. 2. 3.
Run revdep-rebuild, you have updated GTK2, now wxGTK has broken library dependencies.
(In reply to comment #1) > Run revdep-rebuild, you have updated GTK2, now wxGTK has broken library > dependencies. > Doesn't help...
Reemerge wxGTK-2.4: emerge -av1 =wxGTK-2.4*
(In reply to comment #3) > Reemerge wxGTK-2.4: > > emerge -av1 =wxGTK-2.4* Tryed and still doesn't work.
That seems strange..
Moving to wxWindows herd, as that is a wxGTK problem most probably. CCing gnome as it can be something related to newer pango/gtk.
I have the same problem on amd64: [snip] /usr/lib64/libwx_gtk2-2.4.so: undefined reference to `pango_x_get_context' collect2: ld returned 1 exit status make[1]: *** [../audacity] Error 1 make[1]: Leaving directory `/var/tmp/portage/audacity-1.2.3-r1/work/audacity-src-1.2.3/src' make: *** [audacity] Error 2 !!! ERROR: media-sound/audacity-1.2.3-r1 failed. !!! Function src_compile, Line 59, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Output from "emerge info": Portage 2.0.53_rc5 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.13-gentoo-r4 x86_64) ================================================================= System uname: 2.6.13-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.12.0_pre9 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.13 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 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O3 -ftracer -pipe" CHOST="x86_64-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/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O3 -ftracer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sfperms strict" GENTOO_MIRRORS="http://bower/gentoo" LANG="en_AU" LC_ALL="en_AU" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://bower/gentoo-portage" USE="amd64 X alsa arts avi bash-completion berkdb bitmap-fonts bzlib cdparanoia cdr chroot crypt cups curl dvd dvdr eds emboss encode fam fbcon flac foomaticdb fortran gd gdbm gif gimpprint gnome gphoto2 gpm gps gstreamer gtk gtk2 imagemagick imap imlib ipv6 jack java jpeg jpeg2k junit kde lcms lm_sensors lzw lzw-tiff mad mmap mng motif mp3 mpeg mpeg4 ncurses nls nptl nptlonly nvidia ogg oggvorbis openal opengl pam pda pdflib perl pic png ppds python qt quicktime readline sdk sdl slang sndfile speex spell ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts usb userlocales vorbis xine xml xml2 xpm xprint xscreensaver xv xvid xvmc yv12 zlib video_cards_nvidia userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
The same happens on my ppc system: /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../libwx_gtk2-2.4.so: undefined reference to `pango_x_get_context' collect2: ld returned 1 exit status make[1]: *** [../audacity] Error 1 make[1]: Leaving directory `/var/tmp/portage/audacity-1.2.3-r1/work/audacity-src-1.2.3/src' make: *** [audacity] Error 2 !!! ERROR: media-sound/audacity-1.2.3-r1 failed. !!! Function src_compile, Line 59, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. emerge info: Portage 2.0.53_rc6 (default-linux/ppc/2005.1/ppc/G4, gcc-3.4.4, glibc-2.3.5-r2, 2.6.13-gentoo-r3 ppc) ================================================================= System uname: 2.6.13-gentoo-r3 ppc 7447A, altivec supported Gentoo Base System version 1.12.0_pre9 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.13 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 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="ppc ~ppc" AUTOCLEAN="yes" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -pipe -mcpu=7450 -mtune=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fomit-frame-pointer" CHOST="powerpc-unknown-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/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -mcpu=7450 -mtune=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirror.switch.ch/ftp/mirror/gentoo/" LINGUAS="en it" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac aalib alsa altivec arts berkdb bitmap-fonts bluetooth browserplugin bzip2 cdr cjk crypt cups curl directfb dts dvb dvd dvdr dvdread eds emboss encode esd fam fame fbcon ffmpeg fortran freetype ftp gd ggi gif gpm gstreamer gtk gtk2 hal ieee1394 imagemagick imlib ipv6 java jikes jpeg kde kdeenablefinal kdexdeltas ldap libwww live logitech-mouse mad mime mjpeg mp3 mpeg mysql ncurses nls nptl nptlonly nsplugin opengl pam pdflib perl png ppc python qt quicktime readline sdk sdl spell ssl svg tcltk tcpd truetype truetype-fonts type1-fonts udev unicode userlocales v4l v4l2 wmf xine xml2 xosd xv xvid zeroconf zlib video_cards_radeon linguas_en linguas_it userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Same error on a mostly stable x86 system. /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libwx_gtk2-2.4.so: undefined reference to `pango_x_get_context' collect2: ld returned 1 exit status make[1]: *** [../audacity] Error 1 make[1]: Leaving directory `/var/tmp/portage/audacity-1.2.3-r1/work/audacity-src-1.2.3/src' make: *** [audacity] Error 2 !!! ERROR: media-sound/audacity-1.2.3-r1 failed. !!! Function src_compile, Line 59, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. # emerge info: Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.13-gentoo-r5 i686) ================================================================= System uname: 2.6.13-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.6.13 ccache version 2.3 [enabled] dev-lang/python: 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.15.92.0.2-r10 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="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/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="-O2 -march=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict" GENTOO_MIRRORS=(...) LANG="de_DE.utf8" LC_ALL="de_DE.utf8" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X aac alsa apache2 apm avi bash-completion berkdb bitmap-fonts cdr crypt cups curl dbus doc dvd dvdr eds emboss encode esd firefox flac foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 hal howl imagemagick imlib ipv6 java jikes jpeg junit libg++ libwww mad mikmod motif mozilla mp3 mpeg mysql ncurses nls nptl nvidia ogg oggvorbis opengl oss pam pdflib perl php png python quicktime readline samba sdl spell sqlite ssl svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis xine xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS
I suppose you don't anymore confirmations. I'm doing a emerge --emptytree world right now and I got this so I'll get back to this later...
This is an issue with GTK+2.8 and < wxGTK-2.6.1 the solution is to install >=wxGTK-2.6.2 but it seems that audacity is not compatable with any thing greater than 2.4 looks like this is up to the audacity folks to use 2.6.2 :( http://bugs.gentoo.org/show_bug.cgi?id=105189
Sorry to butt into this thread. but here is somthing that you can do to make it work. It worked for me echo "x11-libs/wxGTK -gtk2 -unicode wxgtk1" >> /etc/portage/package.use echo "media-sound/audacity -gtk2" >> /etc/portage/package.use emerge -v =x11-libs/wxGTK-2.4.2-r3 =media-sound/audacity-1.2.3-r1
I think I've got a workaround for this one. This problem is (as I understand it) caused by changes to gtk+ between 2.6 and 2.8. What needs to be done is to ensure that when the audacity executable is linked, that it is linked with libpangox-1.0 The procedure that worked for me consisted of : ebuild /usr/portage/media-sound/audacity/audacity-1.2.3-r1.ebuild unpack cd /var/tmp/portage/audacity-1.2.3-r1/work/audacity-src-1.2.3 Add 'LIBS="$LIBS -lpangox-1.0"' to configure.in autoconf ebuild the_audacity.ebuild compile, install, make And this appears to work (although not without use of artsdsp - I think that's unrelated though). Getting this into the ebuild is a bit beyond me at this point, hope someone else can get this sorted and into portage. (btw, I have wxGTK-2.4.2-r3 installed)
See http://bugs.gentoo.org/show_bug.cgi?id=110809 and http://bugs.gentoo.org/show_bug.cgi?id=113410 for fixes and new worked ebuilds have a fun!
wxGTK 2.4.2-r4 is now in portage, which will fix this. Audacity 1.2.4 is in bugzilla #113948
audacity-1.2.4b in cvs. please test.
Is this still a problem for anyone or can we close it seeing as the problem was with wxGTK and it's fixed in wxGTK 2.4.2-r4?
Not fixed, I'm trying to emerge media-sound/audacity-1.2.4b-r1 with wxGTK 2.6.2-r1 installed and I am still getting the same error as the ones above, well, not exact but close. --------------------------------------------- x86_64-pc-linux-gnu-g++ -o ../audacity obj/AColor.o obj/AStatus.o obj/AboutDialog.o obj/AudacityApp.o obj/AudioIO.o obj/Benchmark.o obj/ControlToolBar.o obj/DirManager.o obj/Envelope.o obj/EditToolBar.o obj/FFT.o obj/FormatSelection.o obj/FreqWindow.o obj/Help.o obj/HistoryWindow.o obj/ImageManipulation.o obj/Internat.o obj/LabelTrack.o obj/Languages.o obj/LangChoice.o obj/Legacy.o obj/Menus.o obj/MeterToolBar.o obj/Mix.o obj/MixerToolBar.o obj/NoteTrack.o obj/PitchName.o obj/PlatformCompatibility.o obj/Project.o obj/Resample.o obj/RingBuffer.o obj/Sequence.o obj/Spectrum.o obj/Tags.o obj/Track.o obj/TrackArtist.o obj/TrackPanel.o obj/ToolBar.o obj/UndoManager.o obj/WaveTrack.o obj/TimeTrack.o obj/commands/CommandManager.o obj/commands/Keyboard.o obj/effects/Effect.o obj/effects/SimpleMono.o obj/effects/TwoPassSimpleMono.o obj/effects/SimplePairedTwoTrack.o obj/effects/SoundTouchEffect.o obj/effects/LoadEffects.o obj/effects/Amplify.o obj/effects/BassBoost.o obj/effects/ChangePitch.o obj/effects/ChangeSpeed.o obj/effects/ChangeTempo.o obj/effects/ClickRemoval.o obj/effects/Compressor.o obj/effects/Echo.o obj/effects/Equalization.o obj/effects/Fade.o obj/effects/Filter.o obj/effects/Invert.o obj/effects/Noise.o obj/effects/NoiseRemoval.o obj/effects/Normalize.o obj/effects/Phaser.o obj/effects/Repeat.o obj/effects/Reverse.o obj/effects/Silence.o obj/effects/ToneGen.o obj/effects/Wahwah.o obj/export/Export.o obj/export/ExportMultiple.o obj/export/ExportMP3.o obj/export/ExportOGG.o obj/export/ExportPCM.o obj/export/ExportCL.o obj/import/Import.o obj/import/ImportLOF.o obj/import/ImportMIDI.o obj/import/ImportMP3.o obj/import/ImportOGG.o obj/import/ImportPCM.o obj/import/ImportRaw.o obj/import/RawAudioGuess.o obj/prefs/PrefsDialog.o obj/prefs/AudioIOPrefs.o obj/prefs/QualityPrefs.o obj/prefs/FileFormatPrefs.o obj/prefs/DirectoriesPrefs.o obj/prefs/GUIPrefs.o obj/prefs/KeyConfigPrefs.o obj/prefs/MousePrefs.o obj/prefs/SpectrumPrefs.o obj/widgets/AButton.o obj/widgets/ASlider.o obj/widgets/Meter.o obj/widgets/Ruler.o obj/widgets/Warning.o obj/xml/XMLFileReader.o obj/xml/XMLTagHandler.o obj/effects/nyquist/Nyquist.o obj/effects/nyquist/LoadNyquist.o obj/effects/ladspa/LoadLadspa.o obj/effects/ladspa/LadspaEffect.o ../lib-src/expat/expat.a ../lib-src/allegro/allegro.a ../lib-src/soundtouch/source/SoundTouch/.libs/libSoundTouch.a ../lib-src/libnyquist/libnyquist.a ../lib-src/libresample/libresample.a ../lib-src/portaudio/pa_unix_oss/portaudio.a ../lib-src/portmixer/px_unix_oss/portmixer.a libaudacity.a -lsndfile -lmad -lvorbisenc -lvorbisfile -lvorbis -logg -lid3tag -L/usr/lib64 -pthread -lwx_gtk2-2.4 -lpangox-1.0 /usr/lib64/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
(In reply to comment #18) > Not fixed, I'm trying to emerge media-sound/audacity-1.2.4b-r1 with wxGTK > 2.6.2-r1 installed and I am still getting the same error as the ones above, > well, not exact but close. Completely irrelevant, audacity depends on wxGTK-2.4, so - you need wxGTK 2.4.2-r4; also this is a different error. Closing.
*** Bug 124311 has been marked as a duplicate of this bug. ***
In my case, the error hasn't been restricted to just pango but has included wxgtk_file_proto as one of the errors I recall. Another factor is that this has occurred on new installation as Feb 24, 2006 using the athlon-xp optimized tarball. This system is also free of gcc-3.3.6 as it was upgraded using the safe method of emerge -e system && emerge -e world following the gcc upgrade guide. Another step that I've gotten into the habit of taking after a fresh installation is doing an emerge -e world to ensure the entire system is consistent before I begin installing any additional apps. In further testing, under the assumption that wxGTK was to blame, I performed several installations/rebuilds but as wxGTK-2.4.2 is not the latest version but 2.6.2 the initial assumption was wrong. After discovering the difference, I did uninstall 2.4.2 and 2.6.2 as it was not needed by anything. Doing a rebuild/reinstall of 2.4.2 testing to see if the problem was related to 2.4.2-r4 by masking that version and attempting 2.4.2-r3 did not resolve the issue. I then tested by adding to package.use the flag "-gtk2" in case the issue revolved around that while adding the wxgtk1 flag as that had been the only solution to work earlier. This failed again. In unmasking the ~arch branch, I attempted to install 1.2.4b-r1 as that's marked as ~x86. It also failed with another undefined error but in a different section of wx_gtk-2.4.2.so. Note that this problem has occured with all versions of audacity that are currently in portage (1.2.2/1.2.4b-r1 x86 inclusive) along with testing of wxGTK-2.4.2-r3. I have yet to test this with wxGTK-2.4.2-r2.
Additional Information with audacity-1.2.4b-r1 Failure was "undefined reference to Vtable for wxFileProto. Did have an idea that needs testing, attempt with gcc-3.3.6 as the problem could be directly related to the ABI change in gcc-3.4.4 as I had the same failures with gcc-4.0.2 testing. So I'm going to see if gcc-3.3.6 solves the various problems as I'd had audacity working correctly at the beginning of Feb after a clean installation w/o upgrade to gcc-3.4.4.
Well I finally got the damn thing to build but had to mask versions later then wxGTK-2.4.2-r2 as both of them seem to be where the problem is. Note that the only version I succeeded in getting working is 1.2.1 (stable) and that according to the audacity home page, you must ensure that wxGTK-2.4 is built without gtk2 and unicode. This means -gtk2 -unicode in package.use for x11-libs/wxGTK. Another step I took to ensure the restriction to version 2.4.2-r2 was to place a listing in package.mask for the two versions that fail to build correctly.
Well I finally got the damn thing to build but had to mask versions later then wxGTK-2.4.2-r2 as both of them seem to be where the problem is. Note that the only version I succeeded in getting working is 1.2.1 (stable) and that according to the audacity home page, you must ensure that wxGTK-2.4 is built without gtk2 and unicode. This means -gtk2 -unicode in package.use for x11-libs/wxGTK. Another step I took to ensure the restriction to version 2.4.2-r2 was to place a listing in package.mask for the two versions that fail to build correctly. Note that this is with gcc-3.4 as the test with 3.3.6 still resulted in failure as it used r3/r4 versions.