Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107989 - Cannot build musicbrainz 2.1.1 undefined reference error
Summary: Cannot build musicbrainz 2.1.1 undefined reference error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-03 08:19 UTC by nandelbosc
Modified: 2005-10-05 18:19 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nandelbosc 2005-10-03 08:19:26 UTC
Simply the build process crash 

Reproducible: Always
Steps to Reproduce:
1.# emerge musicbrainz 
Actual Results:  
Build crashes 

Expected Results:  
Install software 

Making all in examples 
make[2]: Entering directory 
`/var/tmp/portage/musicbrainz-2.1.1/work/libmusicbrainz-2.1.1/examples' 
if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include    -O3 
-frepo -Wall -MT cpp_example.o -MD -MP -MF ".deps/cpp_example.Tpo" -c -o 
cpp_example.o cpp_example.cpp; \ 
then mv -f ".deps/cpp_example.Tpo" ".deps/cpp_example.Po"; else rm -f 
".deps/cpp_example.Tpo"; exit 1; fi 
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include    -O3 
-Wall -MT findartist.o -MD -MP -MF ".deps/findartist.Tpo" -c -o findartist.o 
findartist.c; \ 
then mv -f ".deps/findartist.Tpo" ".deps/findartist.Po"; else rm -f 
".deps/findartist.Tpo"; exit 1; fi 
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include    -O3 
-Wall -MT findalbum.o -MD -MP -MF ".deps/findalbum.Tpo" -c -o findalbum.o 
findalbum.c; \ 
then mv -f ".deps/findalbum.Tpo" ".deps/findalbum.Po"; else rm -f 
".deps/findalbum.Tpo"; exit 1; fi 
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include    -O3 
-Wall -MT findtrack.o -MD -MP -MF ".deps/findtrack.Tpo" -c -o findtrack.o 
findtrack.c; \ 
then mv -f ".deps/findtrack.Tpo" ".deps/findtrack.Po"; else rm -f 
".deps/findtrack.Tpo"; exit 1; fi 
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include    -O3 
-Wall -MT gettrack.o -MD -MP -MF ".deps/gettrack.Tpo" -c -o gettrack.o 
gettrack.c; \ 
then mv -f ".deps/gettrack.Tpo" ".deps/gettrack.Po"; else rm -f 
".deps/gettrack.Tpo"; exit 1; fi 
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include    -O3 
-Wall -MT cdlookup.o -MD -MP -MF ".deps/cdlookup.Tpo" -c -o cdlookup.o 
cdlookup.c; \ 
then mv -f ".deps/cdlookup.Tpo" ".deps/cdlookup.Po"; else rm -f 
".deps/cdlookup.Tpo"; exit 1; fi 
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include    -O3 
-Wall -MT gettrm.o -MD -MP -MF ".deps/gettrm.Tpo" -c -o gettrm.o gettrm.c; \ 
then mv -f ".deps/gettrm.Tpo" ".deps/gettrm.Po"; else rm -f 
".deps/gettrm.Tpo"; exit 1; fi 
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include    -O3 
-Wall -MT submittrm.o -MD -MP -MF ".deps/submittrm.Tpo" -c -o submittrm.o 
submittrm.c; \ 
then mv -f ".deps/submittrm.Tpo" ".deps/submittrm.Po"; else rm -f 
".deps/submittrm.Tpo"; exit 1; fi 
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include    -O3 
-Wall -MT getalbum.o -MD -MP -MF ".deps/getalbum.Tpo" -c -o getalbum.o 
getalbum.c; \ 
then mv -f ".deps/getalbum.Tpo" ".deps/getalbum.Po"; else rm -f 
".deps/getalbum.Tpo"; exit 1; fi 
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include    -O3 
-Wall -MT getartist.o -MD -MP -MF ".deps/getartist.Tpo" -c -o getartist.o 
getartist.c; \ 
then mv -f ".deps/getartist.Tpo" ".deps/getartist.Po"; else rm -f 
".deps/getartist.Tpo"; exit 1; fi 
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include    -O3 
-Wall -MT mp3info.o -MD -MP -MF ".deps/mp3info.Tpo" -c -o mp3info.o mp3info.c; 
\ 
then mv -f ".deps/mp3info.Tpo" ".deps/mp3info.Po"; else rm -f 
".deps/mp3info.Tpo"; exit 1; fi 
/bin/sh ../libtool --mode=link i686-pc-linux-gnu-g++  -O3 -frepo -Wall  
-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s -o cpp_example  
cpp_example.o ../lib/libmusicbrainz.la -lstdc++ -lm 
/bin/sh ../libtool --mode=link i686-pc-linux-gnu-gcc  -O3 -Wall  -Wl,-O1 
-Wl,--enable-new-dtags -Wl,--sort-common -s -o findartist  
findartist.o ../lib/libmusicbrainz.la -lstdc++ -lm 
mkdir .libs 
i686-pc-linux-gnu-gcc -O3 -Wall -Wl,-O1 -Wl,--enable-new-dtags 
-Wl,--sort-common -s -o .libs/findartist 
findartist.o  ../lib/.libs/libmusicbrainz.so /usr/lib/libexpat.so 
-L/usr/i686-pc-linux-gnu/bin 
-L/usr/i686-pc-linux-gnu/lib /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/libstdc++.so 
-L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130 
-L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/../../../../i686-pc-linux-gnu/lib 
-lgcc_s -lc -lm 
i686-pc-linux-gnu-g++ -O3 -frepo -Wall -Wl,-O1 -Wl,--enable-new-dtags 
-Wl,--sort-common -s -o .libs/cpp_example 
cpp_example.o  ../lib/.libs/libmusicbrainz.so /usr/lib/libexpat.so 
-L/usr/i686-pc-linux-gnu/bin 
-L/usr/i686-pc-linux-gnu/lib /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/libstdc++.so 
-L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130 
-L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/../../../../i686-pc-linux-gnu/lib 
-lgcc_s -lc -lm 
../lib/.libs/libmusicbrainz.so: undefined reference to `void 
std::__adjust_heap<std::_Deque_iterator<float, float&, float*>, int, float, 
std::greater<float> >(std::_Deque_iterator<float, float&, float*>, int, int, 
float, std::greater<float>)' 
../lib/.libs/libmusicbrainz.so: undefined reference to `std::deque<double, 
std::allocator<double> >::_M_pop_front_aux()' 
../lib/.libs/libmusicbrainz.so: undefined reference to 
`std::list<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > 
>::insert(std::_List_iterator<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >*>, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > const&)' 
../lib/.libs/libmusicbrainz.so: undefined reference to `std::list<int, 
std::allocator<int> >::insert(std::_List_iterator<int, int&, int*>, int 
const&)' 
../lib/.libs/libmusicbrainz.so: undefined reference to `std::deque<float, 
std::allocator<float> >::_M_push_back_aux(float const&)' 
../lib/.libs/libmusicbrainz.so: undefined reference to 
`std::vector<RDFStatement, std::allocator<RDFStatement> 
>::_M_insert_aux(__gnu_cxx::__normal_iterator<RDFStatement*, 
std::vector<RDFStatement, std::allocator<RDFStatement> > >, RDFStatement 
const&)' 
../lib/.libs/libmusicbrainz.so: undefined reference to 
`std::_Deque_base<double, std::allocator<double> 
>::_M_initialize_map(unsigned)' 
../lib/.libs/libmusicbrainz.so: undefined reference to `std::deque<double, 
std::allocator<double> >::_M_push_back_aux(double const&)' 
../lib/.libs/libmusicbrainz.so: undefined reference to 
`std::vector<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > 
>::_M_insert_aux(__gnu_cxx::__normal_iterator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >*, 
std::vector<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > > >, std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)' 
../lib/.libs/libmusicbrainz.so: undefined reference to `void 
std::__push_heap<std::_Deque_iterator<float, float&, float*>, int, float, 
std::greater<float> >(std::_Deque_iterator<float, float&, float*>, int, int, 
float, std::greater<float>)' 
../lib/.libs/libmusicbrainz.so: undefined reference to 
`std::_Deque_base<float, std::allocator<float> >::~_Deque_base [not-in-charge]
()' 
../lib/.libs/libmusicbrainz.so: undefined reference to `std::deque<float, 
std::allocator<float> >::_M_pop_back_aux()' 
../lib/.libs/libmusicbrainz.so: undefined reference to 
`std::_Deque_base<float, std::allocator<float> >::_M_initialize_map(unsigned)' 
../lib/.libs/libmusicbrainz.so: undefined reference to 
`std::vector<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > 
>::erase(__gnu_cxx::__normal_iterator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >*, 
std::vector<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > > >, 
__gnu_cxx::__normal_iterator<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >*, std::vector<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, 
std::allocator<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > > > >)' 
../lib/.libs/libmusicbrainz.so: undefined reference to `std::_List_base<int, 
std::allocator<int> >::__clear()' 
../lib/.libs/libmusicbrainz.so: undefined reference to 
`std::list<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > 
>::erase(std::_List_iterator<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >*>)' 
../lib/.libs/libmusicbrainz.so: undefined reference to 
`std::_Deque_base<double, std::allocator<double> >::~_Deque_base 
[not-in-charge]()../lib/.libs/libmusicbrainz.so: undefined reference to `void 
std::__adjust_heap<std::_Deque_iterator<float, float&, float*>, int, float, 
std::greater<float> >(std::_Deque_iterator<float, float&, float*>, int, int, 
float, std::greater<float>)' 
../lib/.libs/libmusicbrainz.so: undefined reference to `std::deque<double, 
std::allocator<double> >::_M_pop_front_aux()' 
../lib/.libs/libmusicbrainz.so: undefined reference to 
`std::list<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > 
>::insert(std::_List_iterator<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >*>, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > const&)' 
../lib/.libs/libmusicbrainz.so: undefined reference to `std::list<int, 
std::allocator<int> >::insert(std::_List_iterator<int, int&, int*>, int 
const&)' 
../lib/.libs/libmusicbrainz.so: undefined reference to `std::deque<float, 
std::allocator<float> >::_M_push_back_aux(float const&)' 
../lib/.libs/libmusicbrainz.so: undefined reference to 
`std::vector<RDFStatement, std::allocator<RDFStatement> 
>::_M_insert_aux(__gnu_cxx::__normal_iterator<RDFStatement*, 
std::vector<RDFStatement, std::allocator<RDFStatement> > >, RDFStatement 
const&)' 
../lib/.libs/libmusicbrainz.so: undefined reference to 
`std::_Deque_base<double, std::allocator<double> 
>::_M_initialize_map(unsigned)' 
../lib/.libs/libmusicbrainz.so: undefined reference to `std::deque<double, 
std::allocator<double> >::_M_push_back_aux(double const&)' 
../lib/.libs/libmusicbrainz.so: undefined reference to 
`std::vector<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > 
>::_M_insert_aux(__gnu_cxx::__normal_iterator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >*, 
std::vector<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > > >, std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)' 
../lib/.libs/libmusicbrainz.so: undefined reference to `void 
std::__push_heap<std::_Deque_iterator<float, float&, float*>, int, float, 
std::greater<float> >(std::_Deque_iterator<float, float&, float*>, int, int, 
float, std::greater<float>)' 
../lib/.libs/libmusicbrainz.so: undefined reference to 
`std::_Deque_base<float, std::allocator<float> >::~_Deque_base [not-in-charge]
()' 
../lib/.libs/libmusicbrainz.so: undefined reference to `std::deque<float, 
std::allocator<float> >::_M_pop_back_aux()' 
../lib/.libs/libmusicbrainz.so: undefined reference to 
`std::_Deque_base<float, std::allocator<float> >::_M_initialize_map(unsigned)' 
../lib/.libs/libmusicbrainz.so: undefined reference to 
`std::vector<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > 
>::erase(__gnu_cxx::__normal_iterator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >*, 
std::vector<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > > >, 
__gnu_cxx::__normal_iterator<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >*, std::vector<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, 
std::allocator<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > > > >)' 
../lib/.libs/libmusicbrainz.so: undefined reference to `std::_List_base<int, 
std::allocator<int> >::__clear()' 
../lib/.libs/libmusicbrainz.so: undefined reference to 
`std::list<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > 
>::erase(std::_List_iterator<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >*>)' 
../lib/.libs/libmusicbrainz.so: undefined reference to 
`std::_Deque_base<double, std::allocator<double> >::~_Deque_base 
[not-in-charge]()' 
../lib/.libs/libmusicbrainz.so: undefined reference to `std::deque<float, 
std::allocator<float> >::clear()' 
../lib/.libs/libmusicbrainz.so: undefined reference to 
`std::vector<RDFStatement, std::allocator<RDFStatement> 
>::operator=(std::vector<RDFStatement, std::allocator<RDFStatement> > const&)' 
../lib/.libs/libmusicbrainz.so: undefined reference to `std::list<int, 
std::allocator<int> >::erase(std::_List_iterator<int, int&, int*>)' 
../lib/.libs/libmusicbrainz.so: undefined reference to 
`std::_List_base<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > >::__clear()' 
collect2: ld returned 1 exit status 
make[2]: *** [findartist] Error 1 
make[2]: *** Waiting for unfinished jobs.... 
' 
../lib/.libs/libmusicbrainz.so: undefined reference to `std::deque<float, 
std::allocator<float> >::clear()' 
../lib/.libs/libmusicbrainz.so: undefined reference to 
`std::vector<RDFStatement, std::allocator<RDFStatement> 
>::operator=(std::vector<RDFStatement, std::allocator<RDFStatement> > const&)' 
../lib/.libs/libmusicbrainz.so: undefined reference to `std::list<int, 
std::allocator<int> >::erase(std::_List_iterator<int, int&, int*>)' 
../lib/.libs/libmusicbrainz.so: undefined reference to 
`std::_List_base<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > >::__clear()' 
collect2: ld returned 1 exit status 
make[2]: *** [cpp_example] Error 1 
make[2]: Leaving directory 
`/var/tmp/portage/musicbrainz-2.1.1/work/libmusicbrainz-2.1.1/examples' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory 
`/var/tmp/portage/musicbrainz-2.1.1/work/libmusicbrainz-2.1.1' 
make: *** [all] Error 2
Comment 1 MATSUU Takuto (RETIRED) gentoo-dev 2005-10-04 14:56:39 UTC
2.1.1 works for me.
please paste your `emerge info`.
Comment 2 nandelbosc 2005-10-04 17:54:33 UTC
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.5-r1, 2.6.9-gentoo-r1 i686)
=================================================================
System uname: 2.6.9-gentoo-r1 i686 Intel(R) Pentium(R) M processor 1400MHz
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
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.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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
/var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -frepo"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://gentoo.inode.at/source/
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib apache2 apm arts avi berkdb bitmap-fonts cdr crypt cups curl
dvd eds emboss encode esd fam flac foomaticdb fortran gd gdbm gif gimpprint
gnome gphoto2 gpm gstreamer gtk gtk2 i8x0 imagemagick imap imlib ipv6 java jpeg
kde libg++ libwww mad maildir mikmod mmx motif mozilla mp3 mpeg mysql ncurses
nls nptl ogg oggvorbis opengl oss pam pcmcia pdflib perl png python quicktime
readline samba sasl sdl slang spell sse sse2 ssl svga tcltk tcpd tiff truetype
truetype-fonts type1-fonts vorbis xine xml2 xmms xv zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS, PORTDIR_OVERLAY
Comment 3 MATSUU Takuto (RETIRED) gentoo-dev 2005-10-05 14:00:12 UTC
Please remove '-frepo' from CXXFLAGS and remerge.
Comment 4 nandelbosc 2005-10-05 18:19:10 UTC
Great! now work's!

Thanks matsoo! When I view your comment, I search info for -frepo CXXFLAG, and
discover that flag is a few "dangerous"