Virgo Logbook
UTC--:--:--
GPS-
Reports
Computers Network›Software Management #886

(untitled)

When a package A for the platform OSF1 is using a C++ library
from another package B, if the package A is compiled and linked
on a worstation with OSF1 v5 and if the library B has been
compiled on a workstation with OSF1 v4, unresolved external
references show up. Here is the list:

.............................................................
std::basic_string,
std::allocator >::npos
std::basic_string,
std::allocator >::basic_string(const char*, const
std::allocator&)
__rwstd::rwse_StringIndexOutOfRange
std::basic_string,
std::allocator >::replace(unsigned long, unsigned long,
const char*, unsigned long, unsigned long, unsigned long)
std::__rw_stdexcept_NoNamedException
__rwstd::rwse_PosBeyondEndOfString
__rwstd::rwse_InvalidSizeParam
std::basic_string,
std::allocator >::getRep(unsigned long, unsigned long)
__rwstd::rwse_ResultLenInvalid
__rwstd::rwse_UnexpectedNullPtr
..............................................................

In order to resolve them, I have copied the v4 libcxxstd.a
library from /usr/lib/cmplrs/cxx into /usr/local/lib with the
new name libcxxstd-compat.a

If one adds this library as the last library at link time, the
external references are resolved.

Some tests are needed to check if this trick does not introduce
undesirable side-effects.