- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Link time error for +z/+Z
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
06-22-2005 01:15 AM
06-22-2005 01:15 AM
Link time error for +z/+Z
/opt/aCC/lbin/ld: Invalid loader fixup in text space needed in output file for symbol "$00000091" in input file: "/usr/lib/libpthread.a(extension.o)". Make sure it was compiled with +z/+Z.
Can anyone tell me how to resolve this ?
Regards
Anand.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2005 01:36 AM
06-22-2005 01:36 AM
Re: Link time error for +z/+Z
From the cc(1) man page:
+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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2005 01:44 AM
06-22-2005 01:44 AM
Re: Link time error for +z/+Z
1) Your code was not compiled with +z/+Z option, so ensure that you use these option while creatign object files.
2) Last but not the least, if you are compiling with +03 option, try compiling with +02.
3) You are using const for pointers, which will be exported and be visible outside library. Remove the const qualifier
4) You are using static pointers that get assigned some address at runtime. you might need to remove static.
Try taking one solution at a time, and perform compile and linking. If it works then fine, else try the other one in the same order as above.
HTH
-Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2005 06:30 PM
06-23-2005 06:30 PM
Re: Link time error for +z/+Z
I am already using +z to compile my shared lib.
I also tried removing 'const' from my pointers and I am not using any static pointers.
Is it possible that one of the libs I am linking to, is not built with +z ?
Regards
Anand.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2005 03:25 AM
06-24-2005 03:25 AM
Re: Link time error for +z/+Z
Is there any specific reason that you are linking with libpthread.a? Why not .sl?
Try '-a shared_archive' on the link line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2005 11:50 PM
06-26-2005 11:50 PM
Re: Link time error for +z/+Z
My makefile currently has +z. When I used '-a shared_archive' I get several errors 'use +Z option to recompile'. But just compiling that library with +Z does not seem to help. It seems that I have to compile my whole source with +Z.
Because when I compiled that library with +Z i got errors 'Data Linkage Table (+z) overflow in file ../../../libs/HP-UX/libacmcrypt.a(strng.o)' where libacmcrypt.a is one more of my application libraries.
So does this mean that I have to rebuild my whole application with +Z ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2005 12:07 AM
06-27-2005 12:07 AM
Re: Link time error for +z/+Z
FWIW removing 'const' keywords is a wrong idea. You might miss out on a number of compiler optimizations. 'const' has nothing to do with +Z. +Z deals with relocatable code. const has to deal with non-changing data
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2005 12:15 AM
06-27-2005 12:15 AM
Re: Link time error for +z/+Z
I ask this because I have been using the same makefiles to compile code that uses Oracle 32 bit. Only when I am using Oracle 64-bit that I am facing this problem ?
I am confused..
Anand.