TagLib 1.3.1 compilation fails under OpenBSD-current

Lukas Ratajski ratajski at gmxpro.net
Sat Apr 9 21:38:42 CEST 2005


Hello everybody,

I'd like to report a compilation problem under OpenBSD. The whole thing builds 
fine, but when it comes to linking that beast, it's getting messy. I tried it 
under OpenBSD 3.6, but it failed with the same errors. Now I hope I can get 
some help from you :) (some lines may actually get wrapped, sorry for this 
inconvenience)

Compiler (FYI):
$ g++ -v
Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd3.7/3.3.5/specs
Configured with:
Thread model: single
gcc version 3.3.5 (propolice)

Now the whole compilation process:

Script started on Sat Apr  9 21:27:19 2005
$ ./configure
checking build system type... i386-unknown-openbsd3.7
checking host system type... i386-unknown-openbsd3.7
checking target system type... i386-unknown-openbsd3.7
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether g++ supports -Wundef... yes
checking whether g++ supports -Wno-long-long... yes
checking whether g++ supports -Wnon-virtual-dtor... yes
checking whether g++ supports -fno-exceptions... yes
checking whether g++ supports -fno-check-new... yes
checking whether g++ supports -fexceptions... yes
checking how to run the C++ preprocessor... g++ -E
checking whether g++ supports -frepo... yes
not using lib directory suffix
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... 
checking whether ln -s works... yes
checking how to recognise dependant libraries... file_magic ELF [0-9]
[0-9]*-bit [LM]SB shared object
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 65536
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... openbsd3.7 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... no
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... no
checking whether -lc should be explicitly linked in... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... openbsd3.7 ld.so
appending configuration tag "GCJ" to libtool
checking if gcj supports -fno-rtti -fno-exceptions... (cached) no
checking for gcj option to produce PIC... -fPIC
checking if gcj PIC flag -fPIC works... no
checking if gcj supports -c -o file.o... no
checking whether the gcj linker (/usr/bin/ld) supports shared 
libraries... ./configure[16626]: gcj: not found
yes
checking whether -lc should be explicitly linked in... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... ./configure[16626]: gcj: not found
openbsd3.7 ld.so
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking if bindings should be compiled... yes
checking if examples should be compiled... yes
checking if taglib should be compiled... yes
checking if tests should be compiled... yes
configure: creating ./config.status
fast creating Makefile
fast creating bindings/Makefile
fast creating bindings/c/Makefile
fast creating examples/Makefile
fast creating taglib/Makefile
fast creating taglib/ape/Makefile
fast creating taglib/flac/Makefile
fast creating taglib/mpc/Makefile
fast creating taglib/mpeg/Makefile
fast creating taglib/mpeg/id3v1/Makefile
fast creating taglib/mpeg/id3v2/Makefile
fast creating taglib/mpeg/id3v2/frames/Makefile
fast creating taglib/ogg/Makefile
fast creating taglib/ogg/flac/Makefile
fast creating taglib/ogg/vorbis/Makefile
fast creating taglib/toolkit/Makefile
fast creating tests/Makefile
fast creating taglib/taglib-config
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

Good - your configure finished. Start make now

$ gmake

[99.9% of the compilation process snipped away...]
Here we go, that's what I get when I try to compile that thing:

/bin/sh ../libtool --silent --mode=link --tag=CXX g++  -Wnon-virtual-dtor 
-Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -O2 
-fno-exceptions -fno-check-new    -o libtag.la.closure libtag_la_closure.lo  
-no-undefined -version-info 4:0:3 tag.lo fileref.lo 
audioproperties.lo ./mpeg/libmpeg.la ./ogg/libogg.la ./flac/libflac.la ./mpc/libmpc.la ./ape/libape.la ./toolkit/libtoolkit.la 
libtool: link: warning: `-version-info' is ignored for programs
./toolkit/.libs/libtoolkit.a(tstring.o)(.text+0x14c2): In function 
`TagLib::String::toCString(bool) const':
: warning: strcpy() is almost always misused, please use strlcpy()
/usr/lib/libstdc++.so.35.0: warning: sprintf() is often misused, please use 
snprintf()
./toolkit/.libs/libtoolkit.a(tstring.o)(.text+0x2106): In function 
`TagLib::String::operator==(TagLib::String const&) const':
: undefined reference to `std::char_traits<wchar_t>::compare(wchar_t const*, 
wchar_t const*, unsigned)'
./toolkit/.libs/libtoolkit.a(tstring.o)(.text+0x219a): In function 
`TagLib::String::operator+=(wchar_t const*)':
: undefined reference to `std::char_traits<wchar_t>::length(wchar_t const*)'
./toolkit/.libs/libtoolkit.a(tstring.o)(.text+0x2c67): In function 
`TagLib::String::operator<(TagLib::String const&) const':
: undefined reference to `std::char_traits<wchar_t>::compare(wchar_t const*, 
wchar_t const*, unsigned)'
./toolkit/.libs/libtoolkit.a(tstring.o)
(.gnu.linkonce.t._ZNSbIwSt11char_traitsIwESaIwEEC1EPKwRKS1_+0x22): In 
function `std::basic_string<wchar_t, std::char_traits<wchar_t>, 
std::allocator<wchar_t> >::basic_string[in-charge](wchar_t const*, 
std::allocator<wchar_t> const&)':
: undefined reference to `std::char_traits<wchar_t>::length(wchar_t const*)'
./toolkit/.libs/libtoolkit.a(tstring.o)
(.gnu.linkonce.t._ZNKSbIwSt11char_traitsIwESaIwEE4findEPKwjj+0x3d): In 
function `std::basic_string<wchar_t, std::char_traits<wchar_t>, 
std::allocator<wchar_t> >::find(wchar_t const*, unsigned, unsigned) const':
: undefined reference to `std::char_traits<wchar_t>::compare(wchar_t const*, 
wchar_t const*, unsigned)'
./toolkit/.libs/libtoolkit.a(tstring.o)
(.gnu.linkonce.t._ZNSbIwSt11char_traitsIwESaIwEE7replaceEN9__gnu_cxx17__normal_iteratorIPwS2_EES6_jw+0x79): 
In function `std::basic_string<wchar_t, std::char_traits<wchar_t>, 
std::allocator<wchar_t> >::replace(__gnu_cxx::__normal_iterator<wchar_t*, 
std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> 
> >, __gnu_cxx::__normal_iterator<wchar_t*, std::basic_string<wchar_t, 
std::char_traits<wchar_t>, std::allocator<wchar_t> > >, unsigned, wchar_t)':
: undefined reference to `std::char_traits<wchar_t>::assign(wchar_t*, 
unsigned, wchar_t)'
./toolkit/.libs/libtoolkit.a(tstring.o)
(.gnu.linkonce.t._ZNSbIwSt11char_traitsIwESaIwEE4_Rep8_M_cloneERKS1_j+0x78): 
In function `std::basic_string<wchar_t, std::char_traits<wchar_t>, 
std::allocator<wchar_t> >::_Rep::_M_clone(std::allocator<wchar_t> const&, 
unsigned)':
: undefined reference to `std::char_traits<wchar_t>::copy(wchar_t*, wchar_t 
const*, unsigned)'
./toolkit/.libs/libtoolkit.a(tstring.o)
(.gnu.linkonce.t._ZNSbIwSt11char_traitsIwESaIwEE9_M_mutateEjjj+0x120): In 
function `std::basic_string<wchar_t, std::char_traits<wchar_t>, 
std::allocator<wchar_t> >::_M_mutate(unsigned, unsigned, unsigned)':
: undefined reference to `std::char_traits<wchar_t>::copy(wchar_t*, wchar_t 
const*, unsigned)'
./toolkit/.libs/libtoolkit.a(tstring.o)
(.gnu.linkonce.t._ZNSbIwSt11char_traitsIwESaIwEE9_M_mutateEjjj+0x137): In 
function `std::basic_string<wchar_t, std::char_traits<wchar_t>, 
std::allocator<wchar_t> >::_M_mutate(unsigned, unsigned, unsigned)':
: undefined reference to `std::char_traits<wchar_t>::copy(wchar_t*, wchar_t 
const*, unsigned)'
./toolkit/.libs/libtoolkit.a(tstring.o)
(.gnu.linkonce.t._ZNSbIwSt11char_traitsIwESaIwEE9_M_mutateEjjj+0x17b): In 
function `std::basic_string<wchar_t, std::char_traits<wchar_t>, 
std::allocator<wchar_t> >::_M_mutate(unsigned, unsigned, unsigned)':
: undefined reference to `std::char_traits<wchar_t>::move(wchar_t*, wchar_t 
const*, unsigned)'
./toolkit/.libs/libtoolkit.a(tstring.o)
(.gnu.linkonce.t._ZNSbIwSt11char_traitsIwESaIwEE12_S_constructIPKwEEPwT_S7_RKS1_St20forward_iterator_tag+0x47): 
In function `wchar_t* std::basic_string<wchar_t, std::char_traits<wchar_t>, 
std::allocator<wchar_t> >::_S_construct<wchar_t const*>(wchar_t const*, 
wchar_t const*, std::allocator<wchar_t> const&, std::forward_iterator_tag)':
: undefined reference to `std::char_traits<wchar_t>::copy(wchar_t*, wchar_t 
const*, unsigned)'
./toolkit/.libs/libtoolkit.a(tstring.o)
(.gnu.linkonce.t._ZNSbIwSt11char_traitsIwESaIwEE12_S_constructIN9__gnu_cxx17__normal_iteratorIPwS2_EEEES6_T_S8_RKS1_St20forward_iterator_tag+0x7e): 
In function `wchar_t* std::basic_string<wchar_t, std::char_traits<wchar_t>, 
std::allocator<wchar_t> 
>::_S_construct<__gnu_cxx::__normal_iterator<wchar_t*, 
std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> 
> > >(__gnu_cxx::__normal_iterator<wchar_t*, std::basic_string<wchar_t, 
std::char_traits<wchar_t>, std::allocator<wchar_t> > >, 
__gnu_cxx::__normal_iterator<wchar_t*, std::basic_string<wchar_t, 
std::char_traits<wchar_t>, std::allocator<wchar_t> > >, 
std::allocator<wchar_t> const&, std::forward_iterator_tag)':
: undefined reference to `std::char_traits<wchar_t>::copy(wchar_t*, wchar_t 
const*, unsigned)'
./toolkit/.libs/libtoolkit.a(tstring.o)
(.gnu.linkonce.t._ZNSbIwSt11char_traitsIwESaIwEE15_M_replace_safeIN9__gnu_cxx17__normal_iteratorIPwS2_EEEERS2_S7_S7_T_S9_+0x6f): 
In function `std::basic_string<wchar_t, std::char_traits<wchar_t>, 
std::allocator<wchar_t> >& std::basic_string<wchar_t, 
std::char_traits<wchar_t>, std::allocator<wchar_t> 
>::_M_replace_safe<__gnu_cxx::__normal_iterator<wchar_t*, 
std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> 
> > >(__gnu_cxx::__normal_iterator<wchar_t*, std::basic_string<wchar_t, 
std::char_traits<wchar_t>, std::allocator<wchar_t> > >, 
__gnu_cxx::__normal_iterator<wchar_t*, std::basic_string<wchar_t, 
std::char_traits<wchar_t>, std::allocator<wchar_t> > >, 
__gnu_cxx::__normal_iterator<wchar_t*, std::basic_string<wchar_t, 
std::char_traits<wchar_t>, std::allocator<wchar_t> > >, 
__gnu_cxx::__normal_iterator<wchar_t*, std::basic_string<wchar_t, 
std::char_traits<wchar_t>, std::allocator<wchar_t> > >)':
: undefined reference to `std::char_traits<wchar_t>::copy(wchar_t*, wchar_t 
const*, unsigned)'
./toolkit/.libs/libtoolkit.a(tstring.o)
(.gnu.linkonce.t._ZNSbIwSt11char_traitsIwESaIwEE12_S_constructIN9__gnu_cxx17__normal_iteratorIPKwS2_EEEEPwT_SA_RKS1_St20forward_iterator_tag+0x7e): 
In function `wchar_t* std::basic_string<wchar_t, std::char_traits<wchar_t>, 
std::allocator<wchar_t> >::_S_construct<__gnu_cxx::__normal_iterator<wchar_t 
const*, std::basic_string<wchar_t, std::char_traits<wchar_t>, 
std::allocator<wchar_t> > > >(__gnu_cxx::__normal_iterator<wchar_t const*, 
std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> 
> >, __gnu_cxx::__normal_iterator<wchar_t const*, std::basic_string<wchar_t, 
std::char_traits<wchar_t>, std::allocator<wchar_t> > >, 
std::allocator<wchar_t> const&, std::forward_iterator_tag)':
: undefined reference to `std::char_traits<wchar_t>::copy(wchar_t*, wchar_t 
const*, unsigned)'
./toolkit/.libs/libtoolkit.a(tstring.o)
(.gnu.linkonce.t._ZNSbIwSt11char_traitsIwESaIwEE15_M_replace_safeIPKwEERS2_N9__gnu_cxx17__normal_iteratorIPwS2_EESA_T_SB_+0x6f): 
In function `std::basic_string<wchar_t, std::char_traits<wchar_t>, 
std::allocator<wchar_t> >& std::basic_string<wchar_t, 
std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_replace_safe<wchar_t 
const*>(__gnu_cxx::__normal_iterator<wchar_t*, std::basic_string<wchar_t, 
std::char_traits<wchar_t>, std::allocator<wchar_t> > >, 
__gnu_cxx::__normal_iterator<wchar_t*, std::basic_string<wchar_t, 
std::char_traits<wchar_t>, std::allocator<wchar_t> > >, wchar_t const*, 
__gnu_cxx::__normal_iterator<wchar_t*, std::basic_string<wchar_t, 
std::char_traits<wchar_t>, std::allocator<wchar_t> > >)':
: undefined reference to `std::char_traits<wchar_t>::copy(wchar_t*, wchar_t 
const*, unsigned)'
collect2: ld returned 1 exit status
gmake[3]: *** [libtag.la.closure] Error 1
gmake[3]: Leaving directory `/home/lukas/taglib-1.3.1/taglib'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/home/lukas/taglib-1.3.1/taglib'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/lukas/taglib-1.3.1'
gmake: *** [all] Error 2
$ ^D

Script done on Sat Apr  9 21:28:52 2005

If you need more information, feel free to contact me.
Thank you :)

-- 
Lukas Ratajski - ratajski at gmxpro.net
Feel free to use PGP public key 0xEF4DA75A for e-mail encryption


More information about the taglib-devel mailing list