Consultor Eletrônico



Kbase P58782: Mixing 32 bit with 64 bit objects causes error LD: Fatal file ./4gl/drargs.o: wrong ELF class: ELF c
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   9/15/2008
Status: Verified

SYMPTOM(s):

LD: Fatal file ./4gl/drargs.o: wrong ELF class: ELF class 64
LD: Fatal file processing error

Error occurs when linking HLC objects with Progress objects

file $DLC/probuild/4gl/drarg.o

outputs

drargs.o: ELF 64-bit MSB relocatable SPARCV9 Version 1

file myobj.o (myobj.o is cutomized HLC object) returns

myobj.o: ELF 32-bit MSB relocatable SPARC Version 1

FACT(s) (Environment):

Sun Solaris SPARC
Progress 9.1D 64-bit
Progress installation is 64 bit

CAUSE:

HLC objects are built as 32 bit objects, but progress objects are 64 bit objects, different object types can not link together.

FIX:

Built customer HLC objects as 64 bit objects, for Solaris, compiler switch is

-xarch=v9