Package: libcwd0
Version: 0.99.40-2
Severity: important

It seems to me that libcwd0 in unstable has not been built with gcc-4.0,
as it depends on libstdc++5 instead of libstdc++6
this gaves problems with programs built with gcc-4.0

I tried to built libcwd packages from sources obtaining this error:

$ dpkg-buildpackage -uc -us -rfakeroot -b
[...]
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/basic_string.tcc:491:
  instantiated from 'void std::basic_string<_CharT, _Traits,
_Alloc>::reserve(typename _Alloc::size_type) [with _CharT = char,
_Traits = std::char_traits<char>, _Alloc =
libcwd::_private_::allocator_adaptor<char,
libcwd::_private_::CharPoolAlloc<true, -0x00000000000000001>,
auto_internal_pool>]'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/sstream.tcc:116:
  instantiated from 'typename std::basic_stringbuf<_CharT, _Traits,
_Alloc>::int_type std::basic_stringbuf<_CharT, _Traits,
_Alloc>::overflow(typename _Traits::int_type) [with _CharT = char,
_Traits = std::char_traits<char>, _Alloc =
libcwd::_private_::allocator_adaptor<char,
libcwd::_private_::CharPoolAlloc<true, -0x00000000000000001>,
auto_internal_pool>]'
exec_prog.cc:454:   instantiated from here
./../include/libcwd/private_allocator.h:175: error: no matching function
for call to '__gnu_cxx::__pool<true>::_M_initialize_once(void (&)())'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/ext/mt_allocator.h:314:
note: candidates are: void
__gnu_cxx::__pool<true>::_M_initialize_once()make[3]: ***
[libutils_r_la-exec_prog.lo] Error 1
make[3]: Leaving directory `/home/riccardopub/debian/libcwd-0.99.40/utils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/riccardopub/debian/libcwd-0.99.40'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/riccardopub/debian/libcwd-0.99.40'
make: *** [build-stamp] Error 2


the error vanishes replacing line 175 of file
include/libcwd/private_allocator.hfrom
      _S_pool_instance.ptr->_M_initialize_once(_S_initialize);
to
      _S_pool_instance.ptr->_M_initialize_once();

but this could be not the right way to solve the problem...


libcwd0 installed after recompiling seems to work well


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to