Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74436 - protux 0.20.1 and 0.20.2 fail to link with undefined reference
Summary: protux 0.20.1 and 0.20.2 fail to link with undefined reference
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-14 18:16 UTC by ville
Modified: 2005-01-21 00:35 UTC (History)
1 user (show)

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


Attachments
output of emerge --info (emerge_info.txt,1.70 KB, text/plain)
2005-01-11 05:06 UTC, ville
Details
output of emerge -va protux (emerge_protux.txt,35.33 KB, text/plain)
2005-01-11 05:06 UTC, ville
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ville 2004-12-14 18:16:00 UTC
Mixer.o(.text+0xd737): In function `Mixer::render_all(QString)':
: undefined reference to `CursorManager::block_to_smpte(long long, int)'


Reproducible: Always
Steps to Reproduce:
1.emerge protux
2.
3.

Actual Results:  
Failed with the following linker error:
Mixer.o(.text+0xd737): In function `Mixer::render_all(QString)':
: undefined reference to `CursorManager::block_to_smpte(long long, int)'


Expected Results:  
Program should've been succesfully installed.
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2005-01-11 04:44:46 UTC
Please provide emerge --info and a larger log
Comment 2 ville 2005-01-11 05:06:09 UTC
Created attachment 48191 [details]
output of emerge --info
Comment 3 ville 2005-01-11 05:06:41 UTC
Created attachment 48192 [details]
output of emerge -va protux
Comment 4 Phil Sexton 2005-01-14 09:52:25 UTC
emerge --info:
System uname: 2.4.22-1.2199.nptl i686 AMD Duron(tm) Processor
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon -O2"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=athlon -O2"
DISTDIR="/pub/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/local/packages"
PORTAGE_TMPDIR="/pub/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib alsa apm arts avi berkdb bitmap-fonts cdr crypt cups directfb doc dvd encode esd f77 fam fbcon flac font-server foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 guile imagemagick imlib ipv6 jack java joystick jpeg kde libg++ libwww mad mikmod mmx motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl pic png python qt quicktime readline samba sdl slang speex spell sse sse2 ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts videos x86 xml xml2 xmms xv zlib"

Here is my error:

/bin/sh ../libtool --mode=link i686-pc-linux-gnu-g++ -I/usr/qt/3/include -DQT_TH READ_SUPPORT -I/usr/include  -D_REENTRANT -mcpu=athlon -O2   -o protux  Audio.o AudioClip.o AudioSourcesList.o BusMonitor.o BusSelector.o ColorManager.o CursorM anager.o DevelGuardian.o FileBrowser.o GlobalProperties.o GlobalPropertiesDialog .o Help.o Interface.o Main.o Mixer.o MtaRegion.o Peak.o Project.o ProjectManager .o Protux.o Song.o SongPropertiesDialog.o Spectrogram.o SplashScreen.o Track.o T rackPanel.o TrackPanelsArea.o TracksArea.o moc_BusMonitor.o moc_BusSelector.o mo c_CursorManager.o moc_FileBrowser.o moc_GlobalPropertiesDialog.o moc_SongPropert iesDialog.o moc_Interface.o moc_Mixer.o moc_Peak.o moc_Project.o moc_ProjectMana ger.o moc_Song.o moc_Spectrogram.o moc_SplashScreen.o moc_Track.o -L/usr/qt/3/li b -lqt-mt -L/usr/lib -lmustux -lm  -lasound -lm -ldl -lpthread filters/libprotux filters.a -lasound -lm -ldl -lpthread
mkdir .libs
libtool: link: cannot find the library `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4 /libstdc++.la'
make[3]: *** [protux] Error 1
make[3]: Leaving directory `/pub/tmp/portage/protux-0.20.2/work/protux-0.20.2/sr c'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/pub/tmp/portage/protux-0.20.2/work/protux-0.20.2/sr c'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/pub/tmp/portage/protux-0.20.2/work/protux-0.20.2'
make: *** [all] Error 2
 
!!! ERROR: media-sound/protux-0.20.2 failed.
!!! Function src_compile, Line 28, Exitcode 2
!!! (no error message)
Comment 5 Phil Sexton 2005-01-16 05:59:18 UTC
Apparently, I have a later version of libstdc++.la installed than the version looked for.

Error message
libtool: link: cannot find the library `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4 /libstdc++.la'

tinwhistle / # locate libstdc++.la
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.la

revdep-rebuild fails to fix this error.
Comment 6 Jan Brinkmann (RETIRED) gentoo-dev 2005-01-16 06:03:16 UTC
Phil:

you actually have to use 'fix_libtool_files.sh' to fix this:

-------

kerberos ~ # fix_libtool_files.sh 
Usage: fix_libtool_files.sh <old-gcc-version> [--oldarch <old-CHOST>]

    Where <old-gcc-version> is the version number of the
    previous gcc version.  For example, if you updated to
    gcc-3.2.1, and you had gcc-3.2 installed, run:

      # fix_libtool_files.sh 3.2

-----

that means that you have to use the following command, in this case:
# fix_libtool_files.sh 3.3.4
Comment 7 A.J. Aranyosi 2005-01-16 21:11:47 UTC
I had the same problem as ville.  After some poking around, I found a reference (http://lists.gnu.org/archive/html/protux-support/2004-07/msg00011.html) suggesting that the problem was related to inlining the function - apparently that causes it to no longer be seen properly by the linker.  When I took out the "inline" tag, it built properly.
Comment 8 Phil Sexton 2005-01-20 12:01:48 UTC
Successful upgrade for me!

Thanks Jan,

That let me compile and let me still have:

/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.la

I had tried:

fix_libtool_files.sh 3.3.5 and it failed as I apparently misunderstood the gentoo-wiki article I had found concerning this.
Comment 9 Jan Brinkmann (RETIRED) gentoo-dev 2005-01-20 13:42:46 UTC
added a patch, now it works fine again. thanks for the report.