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

Bug 119932

Summary: Cannot compile media-gfx/hugin-0.5 - linking (wxGTK) error
Product: Gentoo Linux Reporter: Ben Oni <prieger>
Component: Current packagesAssignee: Mark Loeser (RETIRED) <halcy0n>
Status: RESOLVED DUPLICATE    
Severity: normal CC: graphics+disabled
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Full hugin error output

Description Ben Oni 2006-01-22 08:23:33 UTC
Emerging media-gfx/hugin-0.5 fails with following error:

/bin/sh ../../libtool --mode=link i686-pc-linux-gnu-g++ -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DHasPANO  -march=pentium3 -O2 -pipe -fomit-frame-pointer   -o hugin -pthread -L/usr/X11R6/lib -lwx_gtk2u_xrc-2.6 -lwx_gtk2u_html-2.6 -lwx_gtk2u_adv-2.6 -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6 -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 -ltiff -lpng -ljpeg -lz -lpano12 huginApp.o ImagesList.o AutoCtrlPointCreator.o MainFrame.o CPImageCtrl.o CPEditorPanel.o LensPanel.o ImagesPanel.o CommandHistory.o PanoPanel.o NonaStitcherPanel.o PTStitcherPanel.o PreviewFrame.o PreviewPanel.o ImageCenter.o OptimizePanel.o RunOptimizerFrame.o RunStitcherFrame.o CPListFrame.o TextKillFocusHandler.o ImageOrientationPanel.o ImageOrientationFrame.o PanoDruid.o CPZoomDisplayPanel.o CPFineTuneFrame.o PreferencesDialog.o LocalizedFileTipProvider.o  ../../src/Panorama/libpanorama.la ../../src/foreign/vigra_impex/libvigra_impex.la ../../src/jhead/libjhead.la ../../src/common/libcommon.la libhuginwxutils.la
i686-pc-linux-gnu-g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DHasPANO -march=pentium3 -O2 -pipe -fomit-frame-pointer -o hugin huginApp.o ImagesList.o AutoCtrlPointCreator.o MainFrame.o CPImageCtrl.o CPEditorPanel.o LensPanel.o ImagesPanel.o CommandHistory.o PanoPanel.o NonaStitcherPanel.o PTStitcherPanel.o PreviewFrame.o PreviewPanel.o ImageCenter.o OptimizePanel.o RunOptimizerFrame.o RunStitcherFrame.o CPListFrame.o TextKillFocusHandler.o ImageOrientationPanel.o ImageOrientationFrame.o PanoDruid.o CPZoomDisplayPanel.o CPFineTuneFrame.o PreferencesDialog.o LocalizedFileTipProvider.o  -L/usr/X11R6/lib -lwx_gtk2u_xrc-2.6 -lwx_gtk2u_html-2.6 -lwx_gtk2u_adv-2.6 -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6 -pthread /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangocairo-1.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libcairo.so /usr/lib/libXrender.so /usr/lib/libX11.so /usr/lib/libXau.so /usr/lib/libXdmcp.so -lpng12 /usr/lib/libglitz.so /usr/lib/libfontconfig.so /usr/lib/libexpat.so /usr/lib/libfreetype.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libgthread-2.0.so -lpthread /usr/lib/libglib-2.0.so ../../src/Panorama/.libs/libpanorama.a /usr/lib/libpano12.so -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib ../../src/foreign/vigra_impex/.libs/libvigra_impex.a -lpng /usr/lib/libtiff.so /usr/lib/libjpeg.so -lz ../../src/jhead/.libs/libjhead.a ../../src/common/.libs/libcommon.a ./.libs/libhuginwxutils.a /usr/lib/gcc/i686-pc-linux-gnu/4.0.2/libstdc++.so -lm -L/usr/lib/gcc/i686-pc-linux-gnu/4.0.2 -L/usr/lib/gcc/i686-pc-linux-gnu/4.0.2/../../../../i686-pc-linux-gnu/lib -lgcc_s -lc
/usr/X11R6/lib/libwx_gtk2u_core-2.6.so: undefined reference to `wxDCBase::ReservedDCFunc7()'
/usr/X11R6/lib/libwx_gtk2u_core-2.6.so: undefined reference to `wxToolBarToolBase::~wxToolBarToolBase()'
/usr/X11R6/lib/libwx_gtk2u_core-2.6.so: undefined reference to `wxMouseEvent::Clone() const'
/usr/X11R6/lib/libwx_gtk2u_core-2.6.so: undefined reference to `wxDCBase::BeginDrawing()'
/usr/X11R6/lib/libwx_gtk2u_core-2.6.so: undefined reference to `wxStaticBitmapBase::HasTransparentBackground()'
/usr/X11R6/lib/libwx_gtk2u_core-2.6.so: undefined reference to `wxStaticBox::IsTransparentForMouse() const'
/usr/X11R6/lib/libwx_gtk2u_core-2.6.so: undefined reference to `wxListEvent::Clone() const'
/usr/X11R6/lib/libwx_gtk2u_core-2.6.so: undefined reference to `wxMenuBarBase::Enable(bool)'
/usr/X11R6/lib/libwx_gtk2u_core-2.6.so: undefined reference to `wxPaletteBase::~wxPaletteBase()'

... a lot of undefined references ...

/usr/X11R6/lib/libwx_gtk2u_core-2.6.so: undefined reference to `wxDCBase::DoGetLogicalOrigin(int*, int*) const'
/usr/X11R6/lib/libwx_gtk2u_core-2.6.so: undefined reference to `wxMenuItemBase::IsChecked() const'
/usr/X11R6/lib/libwx_gtk2u_core-2.6.so: undefined reference to `wxFileDialogBase::SetStyle(long)'
collect2: ld returned 1 exit status
make[3]: *** [hugin] Error 1
make[3]: Leaving directory `/var/tmp/portage/hugin-0.5/work/hugin-0.5/src/hugin'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/hugin-0.5/work/hugin-0.5/src/hugin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/hugin-0.5/work/hugin-0.5/src'
make: *** [all-recursive] Error 1

!!! ERROR: media-gfx/hugin-0.5 failed.
!!! Function src_compile, Line 45, Exitcode 2
!!! compiling failed
!!! If you need support, post the topmost build error, NOT this status message.



My emerge --info output is:

Portage 2.1_pre3-r1 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r2, 2.6.15.1 i686)
=================================================================
System uname: 2.6.15.1 i686 Intel(R) Pentium(R) III Mobile CPU      1200MHz
Gentoo Base System version 1.12.0_pre15
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="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /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="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.utf8"
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 acpi alsa apache2 apm arts artworkextra asf audiofile avi bash-completion beagle berkdb bitmap-fonts bluetooth bzip2 cairo cdparanoia cdr crypt cups curl dbus directfb divx4linux djvu dri dvd dvdread dvi eds emboss encode esd evo exif expat fam fbcon ffmpeg firefox flac font-server foomaticdb fortran fuse gdbm gif gimp gimpprint glitz glut gmp gnome gnutls gpm gstreamer gtk gtk2 gtkhtml hal idn imagemagick imlib insecure-drivers ipv6 irda java jpeg kde kerberos lcms ldap libg++ libwww mad mikmod mmx mmxext mng modperl mono motif mozdevelop mozxmlterm mp3 mpeg mplayer mysql nautilus ncurses nfs nls nptl ogg oggvorbis opengl oss pam pcre pdf pdflib perl plotutils png ppds print python qt quicktime readline real recode sdl slang sms socks5 speex spell sqlite sse ssl svg sysfs t1lib tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb utf8 vidix vorbis win32codecs wordperfect xine xml2 xmms xprint xv xvid zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS

My computer is running xorg-x11-7.0 - I hope this is not the reason for my hugin-trouble. Compiling hugin with gcc-3.4.5 results in the same hugin-error.

Thank you for any help
Comment 1 Ben Oni 2006-01-22 08:25:37 UTC
Created attachment 77823 [details]
Full hugin error output
Comment 2 Mark Loeser (RETIRED) gentoo-dev 2006-01-22 10:31:35 UTC
Try recompiling wxGTK with 3.4.5 and then hugin.  I think this is the same as bug #118361
Comment 3 Ben Oni 2006-01-23 05:24:38 UTC
(In reply to comment #2)

You were right. Compiling both wxGTK and hugin with gcc-3.4.5 worked. Thank you for your immediate help!

*** This bug has been marked as a duplicate of 118361 ***
Comment 4 Mark Loeser (RETIRED) gentoo-dev 2006-01-23 05:47:22 UTC
As per my comment on the other bug, if you have just sync'ed, then re-emerging gcc-4, then wxGTK, and then hugin should also "fix" it, since I removed the patches that introduced the breakage.
Comment 5 Ben Oni 2006-01-24 04:01:06 UTC
(In reply to comment #4)

Yes - it worked just as you predicted. Thank you!