Problem Building audio/id3lib

Chris BeHanna chris at behanna.org
Sat Feb 14 20:37:54 PST 2004


    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 at bogus.behanna.org
                 Turning coffee into software since 1990.



More information about the freebsd-ports mailing list