Occi "Undefined References" Linking Libocci.So.10.1 With Libstdc++.So.6 (Doc ID 554045.1)

Last updated on JULY 05, 2017

Applies to:

Oracle Server - Enterprise Edition - Version: 10.2.0.3 and later   [Release: 10.2 and later ]
Information in this document applies to any platform.

Symptoms

Building an OCCI application on SuSE Linux Enterprise (SLES) 10 fails with the
following link errors:
/vobs/tps_binary/lib/linux-x86_64/debug/libocci.so: undefined reference to
`std::allocator<char>::deallocate(char*, unsigned long)'
/vobs/tps_binary/lib/linux-x86_64/debug/libocci.so: undefined reference to
`std::allocator<char>::allocate(unsigned long, void const*)'
/vobs/tps_binary/lib/linux-x86_64/debug/libocci.so: undefined reference to
`std::__default_alloc_template<true, 0>::deallocate(void*, unsigned long)'
/vobs/tps_binary/lib/linux-x86_64/debug/libocci.so: undefined reference to
`std::__default_alloc_template<true, 0>::allocate(unsigned long)'

If libstdc++.so.5 is installed the above errors disappear but the following warning is issued:
ld: warning: libstdc++.so.5, needed by /appl/local/oracle/10.2.0/lib/libocci.so, may conflict with
libstdc++.so.6

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms