Operating System - HP-UX
1745791 Members
4156 Online
108722 Solutions
New Discussion юеВ

I have a similiar problem on hp 11.0

 
amit_29
New Member

I have a similiar problem on hp 11.0

I am trying to compile a shared object on hp 3.3.2.
this has been compiled on multiple other platforms but here I get invalid loader fixup in text space ....
I also get the error
DP relative code in file ..... use +z or +Z to recompile when trying to compile with 2.95.
I have tried both -fpic and -fPIC but no results
3 REPLIES 3
ranganath ramachandra
Esteemed Contributor

Re: I have a similiar problem on hp 11.0

your question is not clear. the -fpic and -fPIC are options for gcc. if you are using cc or aCC you should use the +z/+Z options as the message says. remember that these are compiler options (not linker options), so you have to recompile your source files using the appropriate option.
 
--
ranga
[i work for hpe]

Accept or Kudo

ranganath ramachandra
Esteemed Contributor

Re: I have a similiar problem on hp 11.0

also if you are using the latest cc/aCC you can simply use the '-b' compiler option to build a shared library directly (instead of using ld separately).
 
--
ranga
[i work for hpe]

Accept or Kudo

amit_29
New Member

Re: I have a similiar problem on hp 11.0

ok, I am trying to use gcc/g++ to compile shared object.
the error I am getting talks about +z and +Z and is received when building the shared library.
I have tried compiling both 2.95 and 3.3.2
I have tried buiding a really small application (which uses stl) but I still fail.
I think that the reason is that g++ is compiled with libstdc as shared object.
can I compile shared objects that way ?
Amit