- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- The link error
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
Forums
Discussions
Discussions
Discussions
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
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
04-17-2002 11:43 PM
04-17-2002 11:43 PM
I want to compile some code which work correctly on Linux but not go on HP_UX now.
The error message lists below:
ld -lc -o ../lib/libcom.so cLog.o
ld: (Warning) At least one PA 2.0 object file (cLog.o) was detected. The linked
output may not run on a PA 1.x system.
ld: Unsatisfied symbols:
__nw__FUi (code)
__dl__FPv (code)
__curStaticObject (data)
ld: Unsatisfied symbols:
$global$ (data)
*** Error exit code 1
Stop.
It looks like some c++ libraries are missed,right?
Could somebody give me some suggestion?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 12:27 AM
04-18-2002 12:27 AM
Re: The link error
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 12:39 AM
04-18-2002 12:39 AM
Re: The link error
Thanks for your suggestion firstly.
However I do use the aCC compiler,my Makefile is attached,Could you have a look on it?
The content of os.mk
#
# OS_HP: for hp operating system, HP-UX
#
OS_CC = aCC
OS_LD = ld
OS_AR = ar
OS_LEX = lex
OS_LEXFLAGS =
OS_YACC = yacc
OS_YACCFLAGS = -d
#OS_FLAGS = -g +w +a1 -Wl,+nocompatwarnings
OS_FLAGS = -g +w
OS_DYNALDFLAGS =
Cheers
Jack
OS_LLIB = -lc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 12:51 AM
04-18-2002 12:51 AM
Solution# build the libraries
$(LIB_PATH)/libcom.so: $(LIBCOMOBJS)
$(LD) $(OS_DYNALDFLAGS) -o $@ $(LIBCOMOBJS)
The correct command line for building a shared library is:
$ aCC -b -o ../lib/libcom.so cLog.o
See this link for more information:
http://docs.hp.com/hpux/onlinedocs/dev/aCC/a_03_33/libs.htm#shlib
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 02:06 AM
04-18-2002 02:06 AM
Re: The link error
I have fixed it with your great help,thank you very much.You really good.
Cheers
Jack