id3v2-0.1.11 fails to compile Reproducible: Always Steps to Reproduce: 1. emerge id3v2 2. 3. Actual Results: Calculating dependencies ...done! >>> emerge (1 of 1) media-sound/id3v2-0.1.11 to / >>> md5 src_uri ;-) id3v2-0.1.11.tar.gz >>> Unpacking source... >>> Unpacking id3v2-0.1.11.tar.gz to /var/tmp/portage/id3v2-0.1.11/work rm -f id3v2 create_map core *.o * Applying id3v2-0.1.11-alpha.patch... [ ok ] >>> Source unpacked. g++ -march=athlon-tbird -O3 -pipe -fomit-frame-pointer -I/usr/local/include/ -DVERSION="\"0.1.11\"" -c -o convert.o convert.cpp g++ -march=athlon-tbird -O3 -pipe -fomit-frame-pointer -I/usr/local/include/ -DVERSION="\"0.1.11\"" -c -o list.o list.cpp g++ -march=athlon-tbird -O3 -pipe -fomit-frame-pointer -I/usr/local/include/ -DVERSION="\"0.1.11\"" -c -o id3v2.o id3v2.cpp g++ -march=athlon-tbird -O3 -pipe -fomit-frame-pointer -I/usr/local/include/ -DVERSION="\"0.1.11\"" -c -o genre.o genre.cpp c++ -L/usr/local/lib/ -pedantic -Wall -lz -lid3 -g -o id3v2 convert.o list.o id3v2.o genre.o /usr/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../libid3.so: undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)' /usr/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../libid3.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >::seekp(long, std::_Ios_Seekdir)' /usr/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../libid3.so: undefined reference to `std::allocator<char>::allocate(unsigned int, void const*)' /usr/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../libid3.so: undefined reference to `std::basic_istream<char, std::char_traits<char> >::seekg(long, std::_Ios_Seekdir)' /usr/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../libid3.so: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_empty_rep_storage' /usr/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../libid3.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_empty_rep_storage' /usr/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../libid3.so: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' collect2: ld returned 1 exit status make: *** [id3v2] Error 1 !!! ERROR: media-sound/id3v2-0.1.11 failed. !!! Function src_compile, Line 32, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Portage 2.0.51_rc7 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.6.9-rc3 i686) ================================================================= System uname: 2.6.9-rc3 i686 AMD Athlon(tm) processor Gentoo Base System version 1.5.3 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux-headers-2.4.22 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer" 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/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache digest distlocks sandbox userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.rhnet.is/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowex S3TC X acpi acpi4linux aliaschain alsa apache2 avi berkdb bindist bitmap-fonts blender-game bzlib cdinstall cdparanoia cdr chroot crypt cups dga directfb divx4linux dvd dvdread encode fbcon ffmpeg foomaticdb fs ftp gdbm gif gimp gimpprint gnome gpm gstreamer gtk gtk2 icq jabber javascript joystick jpeg kde libwww mad maildir md5sum mikmod mmx mpeg mpeg4 mplayer msn music ncurses net nls nocd offensive oggvorbis openal opengl oss pam parse-clocks pdflib perl php physfs png pthreads python qt quicktime readline samba sdl slang speedo spell src ssl stencil-buffer svga tcpd tiff truetype usb x86 xface xml2 xmms xprint xrandr xv xvid yahoo zlib"
looks like gcc-3.4 issue
id3v2-0.1.11 compiles and works for me on gcc-3.4. emerge info: Portage 2.0.51_rc7 (hardened/x86, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.4.27-grsec-2.0.1 i686) ================================================================= System uname: 2.4.27-grsec-2.0.1 i686 Celeron (Coppermine) Gentoo Base System version 1.5.3 distcc[13622] (dcc_trace_version) distcc 2.17 i686-pc-linux-gnu; built Aug 25 2004 09:12:29 [disabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-Os -march=pentium3 -pipe -s -DNDEBUG -DG_DISABLE_ASSERT -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-Os -march=pentium3 -pipe -s -DNDEBUG -DG_DISABLE_ASSERT -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs candy ccache cvs digest distlocks sandbox" GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage//packages/x86/" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage/" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acl acpi aim alsa apache2 avi berkdb bzlib calendar crypt cups dba dbm dbx dga directfb encode esd fam ftp gdbm gif gpm gtk gtk2 hardened imagemagick imlib jabber jpeg ldap libwww mad maildir mikmod mime mmx motif mpeg ncurses nls offensive oggvorbis opengl pam pdflib perl pic pie png posix postgres readline sdl slang snmp sockets sqlite sse ssl svga tcltk tcpd tiff unicode usb vhosts x86 xml xml2 xmms xpm xsl zlib video_cards_trident"
I have the same version of gcc on my laptop (pentium 4) and id3v2 compiles fine there. Might this be arch specific ?
Just a guess, perhaps id3lib was compiled with gcc 3.3 and needs to be recompiled with 3.4. I can't reproduce that error in that situation, but you may want to try recompiling id3lib since that's what it dies trying to link against.
Thanks a bunch ! That fixed it.
If it works now, could you resolve the bug.
The reason for the problem has been found. Nontheless, I think that it might be a good idea to implement a check for gcc's version at compile time and mark it somewhere so that when an ebuild failed it could check for what gcc's version compiled the libs its trying to compile against, and if the version is older than the current one, to recompile the lib and then try again. Perhaps this has already been implemented and I just don't know about it yet ?