- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HP-UX equivalent for -shared option to ld
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
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
тАО06-22-2009 01:53 AM
тАО06-22-2009 01:53 AM
I have worked myself through the configure script (after some downloads of additional modules) and now I am running "make".
Make fails however with the message "ld: Unrecognized argument: -shared"
I found this option specified in Makefile. This should probably be something else on HP-UX. Has someone of you an idea what it should be ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 01:55 AM
тАО06-22-2009 01:55 AM
Re: HP-UX equivalent for -shared option to ld
ld +h liblwgeom.so.1 -b
- -shared -o liblwgeom.so.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 02:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 05:59 AM
тАО06-22-2009 05:59 AM
Re: HP-UX equivalent for -shared option to ld
I have been able to remove the "-shared" option. Make continues now, but fails later on with messages :
ld: unsatisfied symbol "libiconv_open" in file shp2pgsql.o
ld: unsatisfied symbol "libiconv_close" in file shp2pgsql.o
ld: unsatisfied symbol "libiconv" in file shp2pgsql.o
This despite the fact I added /usr/local/lib/hpux32 to SHLIB_PATH, which contains libiconv.so
Any further ideas ? Anyone of you who has some more expirience with compiling open source code on HP-UX ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 01:01 PM
тАО06-22-2009 01:01 PM
Re: HP-UX equivalent for -shared option to ld
It doesn't matter that you are using make. It shouldn't be used directly.
If you have a LD macro, it should be set to $(CC) or $(CXX).
>fails later on with messages: ld: unsatisfied symbol "libiconv_open"
Have you specified -liconv with a -L path?
>I added /usr/local/lib/hpux32 to SHLIB_PATH, which contains libiconv.so
SHLIB_PATH is useless during linking, you need -L path.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 10:10 PM
тАО06-22-2009 10:10 PM
Re: HP-UX equivalent for -shared option to ld
Setting the environment variable LDFLAGS to "-L/usr/local/bin/hpux32" fixed this last issue. I could complete the make commands.