1833801 Members
2546 Online
110063 Solutions
New Discussion

Error while compilation

 
Anand_30
Regular Advisor

Error while compilation

I have ported some Objective C code from one HP-UX10.20 machine to another HP-UX10.20 machine. While compiling the code in the new machine,I am getting the following error and the compilation is failing:

collect2: ld returned 1 exit status
/usr/bin/ld: Invalid fixup: 0x3e in file /lib/crt0.o

Can anyone please tell me what is the reason for this type of error.

Anand.
3 REPLIES 3
Massimo Bianchi
Honored Contributor

Re: Error while compilation

can you execute a
file /lib/crt0.o

on both server and check if output is the same ?

Massimo
Steven E. Protter
Exalted Contributor

Re: Error while compilation

Please make sure the c compiler version and patching is the same on both platforms.

Does it compile on the original machine? Maybe something changed in the environment.

Check the PATH variable as well for the compiling user.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
ranganath ramachandra
Esteemed Contributor

Re: Error while compilation

this is likely to occur when you are including crt0.o in the link when building a shared library. please make sure that you use the same compile and link lines on both machines.
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo