- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unable to build a shared library on HP-UX 11.22
Operating System - HP-UX
1755960
Members
4510
Online
108839
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-21-2005 11:11 AM
тАО04-21-2005 11:11 AM
Hello,
I am trying to port my shared library to HP-UX 11.22 running on Itanium2. The linker is unable to find the libraries that I build *and* have in the correct place!
I seem to have the correct link line :)
......................................................
Linking executable nu80d_HP-UX_42_ia64.sl
/opt/aCC/bin/aCC +Oopenmp +DD64 +DSitanium2 +U77 -b *.o +O3 -Wl,-ashared -Wl,-L/a/homes/myneni/nu_libs -Wl,-L/a/homes/OSLIBS/LIB-HP-UX -lnumerflib_HP-UX_ia64 -lnumerclib_HP-UX_ia64 -lbcslib42_HP-UX_ia64 -lmetis_11_ia64 -Wl,-L/opt/mlib/lib/hpux64 -lblas_HP-UX_ia64 -Wl,-L/usr/lib/hpux64 -lIO77 -lF90 -lU77 -lstream -o nu80d_HP-UX_42_ia64.sl
ld: Can't find library or mismatched ABI for -lnumerflib_HP-UX_ia64
Fatal error.
make: *** [link_HP-UX_ia64] Error 1
myneni@hp73 p4_mdl/mbd >
The library libnumerflib_HP-UX_ia64.a does exist in 'nu_libs' so I am not sure why ld doesn't find it. I also tried not having -Wl, ahead of each -L/path/...but that didn't help either.
The objects in libnumerflib_HP-UX_ia64.a are of the following type:
y12mdf.o: ELF-64 relocatable object file - IA64
Any help is most appreciated.
-Sachin
I am trying to port my shared library to HP-UX 11.22 running on Itanium2. The linker is unable to find the libraries that I build *and* have in the correct place!
I seem to have the correct link line :)
......................................................
Linking executable nu80d_HP-UX_42_ia64.sl
/opt/aCC/bin/aCC +Oopenmp +DD64 +DSitanium2 +U77 -b *.o +O3 -Wl,-ashared -Wl,-L/a/homes/myneni/nu_libs -Wl,-L/a/homes/OSLIBS/LIB-HP-UX -lnumerflib_HP-UX_ia64 -lnumerclib_HP-UX_ia64 -lbcslib42_HP-UX_ia64 -lmetis_11_ia64 -Wl,-L/opt/mlib/lib/hpux64 -lblas_HP-UX_ia64 -Wl,-L/usr/lib/hpux64 -lIO77 -lF90 -lU77 -lstream -o nu80d_HP-UX_42_ia64.sl
ld: Can't find library or mismatched ABI for -lnumerflib_HP-UX_ia64
Fatal error.
make: *** [link_HP-UX_ia64] Error 1
myneni@hp73 p4_mdl/mbd >
The library libnumerflib_HP-UX_ia64.a does exist in 'nu_libs' so I am not sure why ld doesn't find it. I also tried not having -Wl, ahead of each -L/path/...but that didn't help either.
The objects in libnumerflib_HP-UX_ia64.a are of the following type:
y12mdf.o: ELF-64 relocatable object file - IA64
Any help is most appreciated.
-Sachin
Solved! Go to Solution.
- Tags:
- archive lib
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2005 03:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2005 04:13 PM
тАО04-21-2005 04:13 PM
Re: Unable to build a shared library on HP-UX 11.22
As said by Ermin using -Wl,-ashared forces search for shared library only. Replace it with -Wl,-ashared_archive, to search in shared libraries and then on failure search in archive libraries.
man ld...for more information
-Amit
man ld...for more information
-Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2005 05:46 AM
тАО04-22-2005 05:46 AM
Re: Unable to build a shared library on HP-UX 11.22
Ermin and Amit. Thanks!
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP