HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- DP relative code in file
Operating System - HP-UX
1832785
Members
3392
Online
110045
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
Forums
Discussions
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
02-01-2002 09:05 AM
02-01-2002 09:05 AM
DP relative code in file
We try to link a program on HP and get the error message like that:
$CC -b -o uvtest.sl uvtest.o -L/var/uv/lib -lvm_ici
/usr/ccs/bin/ld: DP relative code in file
/var/uv/lib/libvm_ici.a(ic_info.o) - shared library must be position independent. Use +z or +Z to recompile.
What is this means?
Is this means the library libvm_ici.a has some code be compiled without -z options?
Is this means if we link the a shared library, all the object must compiled with -z option?
Thanks!
$CC -b -o uvtest.sl uvtest.o -L/var/uv/lib -lvm_ici
/usr/ccs/bin/ld: DP relative code in file
/var/uv/lib/libvm_ici.a(ic_info.o) - shared library must be position independent. Use +z or +Z to recompile.
What is this means?
Is this means the library libvm_ici.a has some code be compiled without -z options?
Is this means if we link the a shared library, all the object must compiled with -z option?
Thanks!
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2002 08:28 AM
02-19-2002 08:28 AM
Re: DP relative code in file
From man cc:
+z,+Z Both of these options cause the compiler to generate
position independent code (PIC) for use in building
shared libraries. +Z is the default in 64-bit mode.
The -G and -p options are ignored if +z or +Z is used.
Normally, +z should be used to generate PIC; however,
when certain limits are exceeded, +Z is required to
generate PIC. The ld linker issues the error
indicating when +Z is required. If both +z and +Z are
specified, only the last one encountered applies. For
a more complete discussion regarding PIC and these
options, see HP-UX Linker and Libraries Online User's
Guide and the manual Programming on HP-UX.
unsupported
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2002 08:50 AM
02-19-2002 08:50 AM
Re: DP relative code in file
The vm_ici library you are linking with has not been compiled as PIC (with +z), so you cannot use it in a shared library. If you have this libraries source code, simply recompile with +z, otherwise you will have to contact the vendor for a shared version.
Regards,
Steve
Regards,
Steve
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP