Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

ld: (Warning) Unsatisfied symbol "_HPMutexWrapper::~_HPMutexWrapper()" in file libocci.so

SOLVED
Go to solution
Pedro Dinis
Advisor

ld: (Warning) Unsatisfied symbol "_HPMutexWrapper::~_HPMutexWrapper()" in file libocci.so


i am trying to compile with g++ in HP-UX
but i am getting the following warnings and the the executable does not run.

with aCC everything goes well.

thanks


[]-pedro:/home/pedro/modelo_v4_g++>uname -a
HP-UX des2a B.11.23 U ia64 4092774908 licencia de usuarios ilimitados
[]-pedro:/home/pedro/modelo_v4_g++>


[]-pedro:/home/pedro/modelo_v4_g++>make
g++ -mlp64 -DOCCI_NO_WSTRING=1 -D_RWSTD_MULTI_THREAD -I/opt/users/ora10g/rdbms/demo -I/opt/users/ora10g/rdbms/public -I/opt/users/ora10g/plsql/public -I/opt/users/ora10g/network/public -DHPUX -D_REENTRANT -DHPUX_KTHREAD -DSLXMX_ENABLE -DSLTS_ENABLE -DSS_64BIT_SERVER -DBIT64 -DMACHINE64 -DORAIA64 -DHPUX_IA64 -c Main_Program.cpp
g++ -mlp64 -DOCCI_NO_WSTRING=1 -D_RWSTD_MULTI_THREAD -I/opt/users/ora10g/rdbms/demo -I/opt/users/ora10g/rdbms/public -I/opt/users/ora10g/plsql/public -I/opt/users/ora10g/network/public -DHPUX -D_REENTRANT -DHPUX_KTHREAD -DSLXMX_ENABLE -DSLTS_ENABLE -DSS_64BIT_SERVER -DBIT64 -DMACHINE64 -DORAIA64 -DHPUX_IA64 -c Modelo.cpp
g++ -o occiteste Main_Program.o Modelo.o -L/opt/users/ora10g/lib -L/usr/local/lib -L/usr/local/lib/hpux64 -L/usr/local/lib/gcc/ia64-hp-hpux11.23/4.0.1/hpux64 -L/usr/lib/hpux64 -locci -lclntsh `cat /opt/users/ora10g/lib/sysliblist` -lm -lpthread
ld: (Warning) Unsatisfied symbol "_HPMutexWrapper::~_HPMutexWrapper()" in file /opt/users/ora10g/lib/libocci.so
ld: (Warning) Unsatisfied symbol "_HPMutexWrapper::~_HPMutexWrapper()" in file /opt/users/ora10g/lib/libocci.so
ld: (Warning) Unsatisfied symbol "__bad_alloc_exception" in file /opt/users/ora10g/lib/libocci.so
ld: (Warning) Unsatisfied symbol "__bad_exception" in file /opt/users/ora10g/lib/libocci.so
ld: (Warning) Unsatisfied symbol "std::__rw_exception::_C_assign(char const*, unsigned long)" in file /opt/users/ora10g/lib/libocci.so
ld: (Warning) Unsatisfied symbol "__cxa_finalize" in file /opt/users/ora10g/lib/libocci.so
ld: (Warning) Unsatisfied symbol "_HPMutexWrapper::lock(void*)" in file /opt/users/ora10g/lib/libocci.so
ld: (Warning) Unsatisfied symbol "std::basic_string, std::allocator >::__nullref" in file /opt/users/ora10g/lib/libocci.so
ld: (Warning) Unsatisfied symbol "_HPMutexWrapper::unlock(void*)" in file /opt/users/ora10g/lib/libocci.so
ld: (Warning) Unsatisfied symbol "std::__rw_exception::_C_vformat(int, __va_list__)" in file /opt/users/ora10g/lib/libocci.so
ld: (Warning) Unsatisfied symbol "__cxa_atexit" in file /opt/users/ora10g/lib/libocci.so
ld: (Warning) Unsatisfied symbol "__cxa_personality_routine" in file /opt/users/ora10g/lib/libocci.so
ld: (Warning) Unsatisfied symbol "_HPMutexWrapper::init()" in file /opt/users/ora10g/lib/libocci.so
13 warnings.
[]-pedro:/home/pedro/modelo_v4_g++>
SLB SLB SLB Glorioso
1 REPLY
Dennis Handly
Acclaimed Contributor
Solution

Re: ld: (Warning) Unsatisfied symbol "_HPMutexWrapper::~_HPMutexWrapper()" in file libocci.so

You can NOT mix g++ and aC++.

The library libocci.so is compiled with aC++ so you must compile your application with aC++ too.

You can of course use gcc on C sources and mix with aC++.