1752777 Members
5756 Online
108789 Solutions
New Discussion

Unsatisfied symbol

 
SOLVED
Go to solution
Neel2
Regular Advisor

Unsatisfied symbol

Hi,

I am getting the following error:

Conf.:
$uname -a
HP-UX B.11.23 U ia64 2917453674 unlimited-user license
$aCC -V
aCC: HP C/aC++ B3910B A.06.15 [May 16 2007]

//-------------------------------------------
aCC -D_REENTRANT -g0 -Wl,+n +DD32 -Wl,+Oprocelim +z -ext -AP -Aa -mt +p -DOS_HP
UX_11_00 -DOS_STL_ASSERT -DOS_NO_WSTRING -DOS_NO_ALLOCATORS -DOS_MULTI_THREADE
D -DOS_HPUX_PTHREADS -DOS_PTHREADS -D_HPUX_SOURCE ../libvstream.a /disk/nkhemkar/BUILD/aCC_6.15_build/toolkit/5.0.6/
HP-UXB.11.23_32bit_aCC_A.06.15/dbg/lib/libospace.a -Wl,-a,default -lpthread -lm
-o /disk/nkhemkar/BUILD/aCC_6.15_build/cxx/7.0.1.4/HP-UX_32bit/dbg//bin/vsstrem


ld: Unsatisfied symbol "std::basic_ostream<(%0=)char,(%1=)std::char_traits
>& __rw::__rw_insert,unsigned long>((%1=)std::char_
traits,(%2=)unsigned long)" in file /disk/nkhemkar/VOD_BUILD/aCC_6.15_buil
d/cxx/7.0.1.4/HP-UX_32bit/dbg//lib/libcxxcls.a[time.o]
ld: Unsatisfied symbol "std::ctype::ctype(std::ctype_base::mask const*,boo
l,unsigned long)(complete)" in file /disk/nkhemkar/VOD_BUILD/aCC_6.15_build/cxx/
7.0.1.4/HP-UX_32bit/dbg//lib/libcxxcls.a[time.o]
ld: Unsatisfied symbol "_HPMutexWrapper::~_HPMutexWrapper()(complete)" in file /

//------------------------------------------


Remark: I have tried with +nostl flag, but it does not work and I got different errors. If I compiled/linked with -AA flag and i got the following errors:
//-------------------------------------
aCC -c -D_REENTRANT -g0 -Wl,+n +DD32 -Wl,+Oprocelim +z -ext -AA -Aa -mt +p -DOS
_HPUX_11_00 -DOS_USE_ALTERNATE_STD -DOS_STL_ASSERT -DOS_NO_WSTRING -DOS_NO_ALLOC
ATORS -DOS_ENABLE_EMBER_TEMPLATE_FEATURE -DOS_MULTI_THREADED -DOS_HPUX_PTHREADS
-DOS_PTHREADS -D_HPUX_SOURCE -I../../../ -I/disk/nkhemkar/VOD_
BUILD/aCC_6.15_build/toolkit/5.0.6/HP-UXB.11.23_32bit_aCC_A.06.15/dbg -I. export
.cpp -o /disk/nkhemkar/VOD_BUILD/aCC_6.15_build/cxx/7.0.1.4/HP-UX_32bit/dbg//o/c
xx//vstream/examples/export.o
"../../../ospace/vstream/vstrctrl.h", line 20: warning #2161-D: unrecognized #pr
agma
# pragma warning ( disable : 4237 )
^

"/disk/nkhemkar/VOD_BUILD/aCC_6.15_build/toolkit/5.0.6/HP-UXB.11.23_32bit_aCC_A.
06.15/dbg/ospace/osstd/iterator.h", line 60: error #2266: "input_iterator_tag" i
s ambiguous
inline os_input_iterator_tag
^

Could you please let me know, How could i resolve the above errors. It used the configuration files from ospace thirdparty toolkit.


Best regards,
Neel
1 REPLY 1
Dennis Handly
Acclaimed Contributor
Solution

Re: Unsatisfied symbol

>-Wl,+Oprocelim

No need for -Wl, just use +Oprocelim. Unless you don't want the compiler to know?

>-AP -Aa

The default on IPF is -AA. Don't use -AP. That's why you get these unsats:
Unsatisfied symbol __rw::__rw_insert,unsigned long>
Unsatisfied symbol _HPMutexWrapper::~_HPMutexWrapper

>Remark: I have tried with +nostl flag, but it does not work and I got different errors.

If you insist on using conflicting C++ Standard Libraries, you MUST use +nostl and fix those errors. (Of course nobody has ever called our bluff. :-)
Customers have used STLport.

>If I compiled/linked with -AA flag and I got the following errors:
>error #2266: "input_iterator_tag" is ambiguous

This gets you back to your original thread.

>Could you please let me know, How could I resolve the above errors? It used the configuration files from ospace third party toolkit.

Basically, why do you want to use ospace? I don't think I ever got an answer?
If you just want to use it for the STL, you need to use +nostl and fix any issues. (In general, I know how but have never done it.)
But with all the pain you have had in the last 3 months, I would assume you would have given up by now?

If you are using ospace for something other than STL, you need to remove the STL from ospace toolkit.