- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- shared library must be position independent" error...
Operating System - HP-UX
1753448
Members
5897
Online
108794
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
тАО11-16-2004 01:24 PM
тАО11-16-2004 01:24 PM
I try to compile Resin 2.1.14 with Apache 2.0.x bundled with HP-UX. When I did
$ ./configure --with-apxs=/opt/hpws/apache/bin/apxs
It seems to be ok other than the linker is not GNU but OS-bundled ld.
When I do 'make', I get the error below. The first line is a warning so I suppose it's ok. But the next line is a real error, which I have no idea what it means.
Could some one help on this?
Thanks,
----errors----
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (jni_vfs.o) was detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: DP relative code in file std.o - shared library must be position independent. Use +z or +Z to recompile.
*** Error exit code 1
$ ./configure --with-apxs=/opt/hpws/apache/bin/apxs
It seems to be ok other than the linker is not GNU but OS-bundled ld.
When I do 'make', I get the error below. The first line is a warning so I suppose it's ok. But the next line is a real error, which I have no idea what it means.
Could some one help on this?
Thanks,
----errors----
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (jni_vfs.o) was detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: DP relative code in file std.o - shared library must be position independent. Use +z or +Z to recompile.
*** Error exit code 1
Solved! Go to Solution.
- Tags:
- PIC
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2004 01:38 PM
тАО11-16-2004 01:38 PM
Re: shared library must be position independent" error when making Resin with Apache on HP 9000
The file its complaining about either does not exist or is not on the path variable SHLIB_PATH.
If it exists, which I think it does.
echo $SHLIB_PATH
SHLIB_PATH=$SHLIB_PATH:/usr/ccs/bin
export SHLIB_PATH
Try the compile again.
SEP
If it exists, which I think it does.
echo $SHLIB_PATH
SHLIB_PATH=$SHLIB_PATH:/usr/ccs/bin
export SHLIB_PATH
Try the compile again.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2004 02:18 PM
тАО11-16-2004 02:18 PM
Solution
As the error message indicates linker is trying to create a shared library but objects that it's including in the shared library haven't been compiled with '+z' or '+Z' option.
You can try defining CFLAGS environment variable as follows.
/* if you are using hp's cc */
$ export CFLAGS="+Z"
/* if you are using gcc */
$ export CFLAGS="-fPIC"
Run 'make distclean' and configure again.
You can try defining CFLAGS environment variable as follows.
/* if you are using hp's cc */
$ export CFLAGS="+Z"
/* if you are using gcc */
$ export CFLAGS="-fPIC"
Run 'make distclean' and configure again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2004 12:53 PM
тАО11-17-2004 12:53 PM
Re: shared library must be position independent" error when making Resin with Apache on HP 9000
Thanks to Ermin and Steven for such quick helps.
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