- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: aCC compilation on HP-UX 11.31: ld: (Warning) ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2009 07:21 AM
тАО07-14-2009 07:21 AM
I'm trying to port some CPP source codes from HP-UX 11i to 11.31 IA.
I'm using:
1) gmake 3.81
2) aC++ for 11.31 with latest patch
I'm getting the following:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ld: (Warning) Unsatisfied symbol "ios::ios(streambuf*)(base)" in file /usr/lib/hpux32/librwtool.so
ld: (Warning) Unsatisfied symbol "istream::get(char*,int,char)" in file /usr/lib/hpux32/librwtool.so
ld: (Warning) Unsatisfied symbol "streambuf::seekpos(long,int)" in file /usr/lib/hpux32/librwtool.so
ld: (Warning) Unsatisfied symbol "ios::floatfield" in file /usr/lib/hpux32/librwtool.s.....................
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Any idea? Will assign points for useful idea.
jason
Solved! Go to Solution.
- Tags:
- unsat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2009 08:07 AM
тАО07-14-2009 08:07 AM
Re: aCC compilation on HP-UX 11.31: ld: (Warning) Unsatisfied symbol
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2009 02:26 PM
тАО07-14-2009 02:26 PM
Re: aCC compilation on HP-UX 11.31: ld: (Warning) Unsatisfied symbol
I'm new to compiling in CPP, can you explain how can I do what you suggested?
>You should NOT be using -lrwtool for IPF, >since the default is almost -AA, you should >use -lrwtool_v2 instead.
1) What is the meaning of "almost -AA?
2) How can I use -lrwtool_v2, where should I change before running gmake?
Pls advise.
J.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2009 06:51 PM
тАО07-14-2009 06:51 PM
Re: aCC compilation on HP-UX 11.31: ld: (Warning) Unsatisfied symbol
After changing the lrwtool to lrwtool_v2, I don't get the "Unsatisified symbol..." warnings anymore.
Now, when I run the program, I got core dump & this message on the screen:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aCC runtime: Unexpected exception of type "__rw::__rw_thread_error".
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Any idea?
- Tags:
- -mt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2009 07:06 PM
тАО07-14-2009 07:06 PM
Re: aCC compilation on HP-UX 11.31: ld: (Warning) Unsatisfied symbol
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
VPATH=../src
CPP=/opt/aCC/bin/aCC
ORACLE_SID=openview
ORACLE_HOME=/app/oracle10g/product/10.2.0.4/DB1
ORAINC=-I$(ORACLE_HOME)/rdbms/demo -I$(ORACLE_HOME)/rdbms/public -I$(ORACLE_HOME)/plsql/public -I$(ORACLE_HOME)/network/public
CPPFLAGS = -D_REENTRANT -DRWSTD_MULTI_THREAD -D_THREAD_SAFE -D_LARGEFILE64_SOURCE -I../src $(ORAINC)
LINKFLAGS=-L$(ORACLE_HOME)/lib32 -L$(ORACLE_HOME)/rdbms/lib32
ORALINK = -locci -lclntsh `cat $(ORACLE_HOME)/lib32/sysliblist`
LINKLIBS = -lrwtool_v2 $(ORALINK)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The only change I've made = LINKLIBS = -lrwtool_v2 (from lrwtool).
Since I'm on HPUX IA 11.31, what else I need to change?
Pls advise.
Jason.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2009 08:11 PM
тАО07-14-2009 08:11 PM
Re: aCC compilation on HP-UX 11.31: ld: (Warning) Unsatisfied symbol
#./progd
aCC runtime: Unexpected exception of type "__rw::__rw_thread_error".
Abort(coredump)
#strings core
./progd
x32/libstd_v2.so.1
04:Unable to find library '/usr/lib/nls/loc/hpux32/locales.3/C'.
# ll /usr/lib/nls/loc/hpux32/locales.3/C
/usr/lib/nls/loc/hpux32/locales.3/C not found
# what /usr/lib/hpux32/libstd_v2.so.1
/usr/lib/hpux32/libstd_v2.so.1:
HP aC++ for Integrity Servers B3910B A.06.20 [May 13 2008] C++ Standard Library (RogueWave Version 2.02.01)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Let me know if any other info required.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2009 01:21 AM
тАО07-15-2009 01:21 AM
SolutionNot quite -AA. Read the man page. It is better if you explicitly add -AA, then I don't have to explain. :-)
>CPPFLAGS = -D_REENTRANT -DRWSTD_MULTI_THREAD -D_THREAD_SAFE
These are the -AP values. Remove all of these and replace by -mt. That works for both -AA and -AP.
>aCC runtime: Unexpected exception of type "__rw::__rw_thread_error".
Hum, typically this would tell you that you have illegally compiled your threaded source without the -mt option but it doesn't appear if there is a throw spec:
aCC runtime: Use of "-mt" must be consistent during both compilation and linking.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2009 06:00 AM
тАО07-15-2009 06:00 AM
Re: aCC compilation on HP-UX 11.31: ld: (Warning) Unsatisfied symbol
Thanks for your reply. I'm waiting whole day for you :-). Well I understand what you wanted me to change, except the following:
>Hum, typically... but it doesn't appear if >there is a throw spec:
>aCC runtime: Use of "-mt" must be >consistent during both compilation and >linking.
What's the meaning of "throw spec"?
I wil change the makefile for removing those unwanted & replacing it with -mt.
Where can I add this "throw spec"?
Pls advise.
Jason.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2009 11:27 PM
тАО07-15-2009 11:27 PM
Re: aCC compilation on HP-UX 11.31: ld: (Warning) Unsatisfied symbol
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2009 04:07 AM
тАО07-16-2009 04:07 AM
Re: aCC compilation on HP-UX 11.31: ld: (Warning) Unsatisfied symbol
The throw spec is short for exception specification on a function:
void foo() throw() { }
>I will change the makefile for removing those unwanted & replacing it with -mt. Where can I add this "throw spec"?
All you need is to change your makefile. The throw spec is in the aC++ runtime lib and can't be changed. The throw spec is why you don't get a nicer message, saying to use -mt.