Date: Sat, 14 Feb 2004 23:37:52 -0500 From: Chris BeHanna <chris@behanna.org> To: freebsd-ports@freebsd.org Subject: Re: Problem Building audio/id3lib Message-ID: <200402142337.52168.chris@behanna.org> In-Reply-To: <20040211183025.B37219@waumbek.panasas.com> References: <20040211183025.B37219@waumbek.panasas.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Following up to myself, sorry. On Wednesday 11 February 2004 18:36, Chris BeHanna wrote: > I'm building audio/id3lib (a dependency of kdemultimedia3) on > 4.9-STABLE as of a few weeks ago. It falls over during linking, like > so: > > /usr/local/bin/g++33 -O -pipe -march=pentiumpro -Wall -Wno-unused -Wno-inline -Woverloaded-virtual -Wmissing-declarations -L/usr/local/lib -o .libs/id3info demo_info_options.o demo_info.o ../src/.libs/libid3.so -liconv -lz getopt.o getopt1.o -liconv -Wl,--rpath -Wl,/usr/local/lib > ../src/.libs/libid3.so: undefined reference to `std::char_traits<wchar_t>::compare(wchar_t const*, wchar_t const*, unsigned)' > ../src/.libs/libid3.so: undefined reference to `std::char_traits<wchar_t>::assign(wchar_t*, unsigned, wchar_t)' > ../src/.libs/libid3.so: undefined reference to `std::char_traits<wchar_t>::copy(wchar_t*, wchar_t const*, unsigned)' > ../src/.libs/libid3.so: undefined reference to `std::char_traits<wchar_t>::move(wchar_t*, wchar_t const*, unsigned)' > collect2: ld returned 1 exit status > *** Error code 1 > > Stop in /usr0/ports/build/usr0/ports/ports/audio/id3lib/work/id3lib-3.8.3/examples. > *** Error code 1 > > Stop in /usr0/ports/build/usr0/ports/ports/audio/id3lib/work/id3lib-3.8.3. > *** Error code 1 > > Stop in /usr0/ports/build/usr0/ports/ports/audio/id3lib/work/id3lib-3.8.3. > *** Error code 1 > > Stop in /usr0/ports/ports/audio/id3lib. > *** Error code 1 taglib had the same problem, as do a few other ports. I've found that when the above error appears, the port will often build just fine with lang/gcc34. Thus far, I have had no problems mixing and matching C++ ports built with lang/gcc33 and with lang/gcc34, but there's always the possibility that there will be a link-time error or a random crash. portupgrade -M "CC=/path/to/C/compiler CXX=/path/to/C++/compiler" is your friend. -- Chris BeHanna Software Engineer (Remove "bogus" before responding.) chris@bogus.behanna.org Turning coffee into software since 1990.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402142337.52168.chris>