Operating System - HP-UX
1836604 Members
1905 Online
110102 Solutions
New Discussion

Re: Invalid loader fixup in text space needed

 
delaporte
Occasional Contributor

Invalid loader fixup in text space needed

Hello

I am trying to compile a perl module called DBD-Informix and am running in the following problem:
LD_RUN_PATH="" INFORMIXC='/opt/perl/bin/perl esqlld' ESQLLD='gcc -shared
-static-libgcc -fPIC' esql -shared -static-libgcc -fPIC Informix.o dbdimp.o db
dattr.o sqltoken.o sqltype.o ixblob.o decsci.o odbctype.o link.o esqlcver.o esql
c_v6.o -o blib/arch/auto/DBD/Informix/Informix.sl
/usr/ccs/bin/ld: Invalid loader fixup in text space needed in output file for sy
mbol "$0000006A" in input file: "/apps11/informix/lib/esql/libifgen.a(rmsg.o)".
Make sure it was compiled with +z/+Z.
collect2: ld returned 1 exit status
*** Error exit code 1

I am using gcc 3.3.3, HP-UX 11.11 64bit, Informix 7.31, Client SDK 2.40.

How can I fix this error?

Regards

Olivier Delaporte
1 REPLY 1
ranganath ramachandra
Esteemed Contributor

Re: Invalid loader fixup in text space needed

you are linking object files which were not compiled with the -fPIC gcc option. they should be recompiled with -fPIC.
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo