List Info

Thread: Problem while running configure




Problem while running configure
country flaguser name
Australia
2008-04-13 08:20:17
Hello,

Sorry for the previous message .. was a mis-click 


I am compiling a package and i run the configure script. i
Get the
following error:

configure:3699: result: /usr/bin/xsltproc
configure:3715: checking for fop
configure:3748: result: no
configure:3813: checking for Vorbis
configure:3865: gcc -o conftest -g -O2     conftest.c  
-lvorbis -lm -
lvorbisenc  >&5
configure:3868: $? = 0
configure:3874: ./conftest
configure:3877: $? = 0
configure:3897: result: yes
configure:3995: checking for ID3Tag_New in -lid3
configure:4030: gcc -o conftest -g -O2    conftest.c -lid3  
-
lvorbisfile  -lvorbis -lm >&5
/usr/local/lib/libid3.so: undefined reference to
`std::basic_string<char, std::char_traits<char>,
std::allocator<char>
>::copy(char*, unsigned int, unsigned int) const'

/usr/local/lib/libid3.so: undefined reference to
`std::_List_node_base::hook(std::_List_node_base*)'
/usr/local/lib/libid3.so: undefined reference to `operator
new[]
(unsigned int)'
/usr/local/lib/libid3.so: undefined reference to
`std::_List_node_base::unhook()'
/usr/local/lib/libid3.so: undefined reference to
`__cxa_begin_catch'
/usr/local/lib/libid3.so: undefined reference to
`std::basic_string<char, std::char_traits<char>,
std::allocator<char>
>::_Rep::_M_destroy(std::allocator<char>
const&)'

/usr/local/lib/libid3.so: undefined reference to `operator
delete[]
(void*)'
/usr/local/lib/libid3.so: undefined reference to `compress'
/usr/local/lib/libid3.so: undefined reference to
`std::basic_istream<char, std::char_traits<char>
>::seekg(std::fpos<__mbstate_t>)'

/usr/local/lib/libid3.so: undefined reference to
`std::basic_string<char, std::char_traits<char>,
std::allocator<char>
>::_M_leak_hard()'

/usr/local/lib/libid3.so: undefined reference to
`std::basic_ostream<char, std::char_traits<char>
>::put(char)'

------------------

I googled it. Seems an error related to libstdc++.

Could someone help me with this ?

- Kaustubh



Re: Problem while running configure
user name
2008-04-13 08:44:05
* ksashtekargmail.com wrote on Sun, Apr 13, 2008 at 03:20:17PM
CEST:
> 
> I am compiling a package and i run the configure
script. i Get the
> following error:

> configure:3995: checking for ID3Tag_New in -lid3
> configure:4030: gcc -o conftest -g -O2    conftest.c
-lid3   -
> lvorbisfile  -lvorbis -lm >&5
> /usr/local/lib/libid3.so: undefined reference to
> `std::basic_string<char,
std::char_traits<char>, std::allocator<char>
> >::copy(char*, unsigned int, unsigned int) const'

> I googled it. Seems an error related to libstdc++.

It seems the configure script tries to link against a C++
library with
the C compiler.  Tests in configure.ac that need C++ should
be wrapped
in
  AC_LANG_PUSH([C++])
  ...
  AC_LANG_POP([C++])

Cheers,
Ralf



[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )