Error creating library using autoextvj : "i386 architecture of input file `autoextvj.o' is incompatible with i386:x86-64 output"
search cancel

Error creating library using autoextvj : "i386 architecture of input file `autoextvj.o' is incompatible with i386:x86-64 output"

book

Article ID: 217362

calendar_today

Updated On:

Products

CA Workload Automation AE - Scheduler (AutoSys)

Issue/Introduction

Trying to create a shared library using autoextvj, the following error is received:

$ gcc -shared -o libautoextvj.so autoextvj.o

/bin/ld: i386 architecture of input file `autoextvj.o' is incompatible with i386:x86-64 output
/bin/ld: autoextvj.o: file class ELFCLASS32 incompatible with ELFCLASS64
/bin/ld: final link failed: File in wrong format
collect2: error: ld returned 1 exit status

The 'libautoextvj.so' file is present under path /apps/CA/WorkloadAutomationAE/autosys/test/lib/' on all servers.

Environment

AutoSys 11.3.6x and 12.x

Resolution

The solution is to amend the linking command as follows, adding the value highlighted below:
 
$ gcc -m32 -shared -o libautoextvj.so autoextvj.o
 
Once that step is completed, the 'libautoextvj.so' file needs to be moved to the $AUTOSYS/lib directory on the Application Server machine(s). The Application Server(s) will need to be restarted for the library to be loaded.