Re: I have a similiar problem on hp 11.0 (272 Views)
Reply
Occasional Visitor
Posts: 2
Registered: ‎05-24-2004
Message 1 of 4 (272 Views)

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
Esteemed Contributor
Posts: 375
Registered: ‎05-16-2003
Message 2 of 4 (272 Views)

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.
Esteemed Contributor
Posts: 375
Registered: ‎05-16-2003
Message 3 of 4 (272 Views)

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).
Highlighted
Occasional Visitor
Posts: 2
Registered: ‎05-24-2004
Message 4 of 4 (272 Views)

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
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.