Unix/Linux Go Back    

Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Wrong ELF class


Closed Linux or Unix Question    
Thread Tools Search this Thread Display Modes
Old Unix and Linux 05-20-2012
q8devilish q8devilish is offline
Registered User
Join Date: Jun 2009
Last Activity: 23 March 2014, 5:38 AM EDT
Location: Kuwait
Posts: 31
Thanks: 4
Thanked 0 Times in 0 Posts
Wrong ELF class

guys anyone knows a solution for this?
wrong ELF class: ELFCLASS64

pwrcard:cms-dev:/pcard16/pwrcard/src/interfaces/interface_host>isainfo -v
64-bit sparcv9 applications
        vis2 vis
32-bit sparc applications
        vis2 vis v8plus div32 mul32
pwrcard:cms-dev:/pcard16/pwrcard/src/interfaces/interface_host>uname -a
SunOS cms-dev 5.10 Generic_118833-24 sun4u sparc SUNW,Sun-Fire-V240
pwrcard:cms-dev:/pcard16/pwrcard/src/interfaces/interface_host>make -f Makefile
cc -D_REETRANT -g -lpthread  -lodm -lcfg -L/pcard16/pwrcard/usr/lib -lpthr -lqueue -ltools -lutils -lcomora -lpiso -lget -lprivtlv -lprocessing -lhsmtdes -lauthotlv -L/oracle/product/10g/lib -L/oracle/product/10g/lib -lclntsh -lphost -lnethost host_main.o host_ini.o host_params.o host_net_mng.o host_thread_adm.o host_process_adm.o host_services.o fct_shut_down.o host_thread_bal.o host_process_bal.o host_thread_line.o host_process_line.o host_thread_timeout.o host_process_timeout.o host_thread_saf.o host_process_saf.o host_manage_saf.o  host_thread_sig.o host_thread_ctl.o host_ftr_req.o host_ftr_rep.o host_aut_req.o host_aut_rep.o host_advice.o host_reversal.o -o HOST_BANK
ld: fatal: library -lodm: not found
ld: fatal: library -lcfg: not found
ld: fatal: file /oracle/product/10g/lib/libclntsh.so: wrong ELF class: ELFCLASS64
ld: fatal: file host_thread_sig.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to HOST_BANK
*** Error code 1
make: Fatal error: Command failed for target `HOST_BANK'

Sponsored Links
Old Unix and Linux 05-20-2012
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlos
Join Date: Dec 2007
Last Activity: 8 October 2015, 7:04 PM EDT
Location: Paris
Posts: 4,625
Thanks: 17
Thanked 519 Times in 465 Posts
You are missing a couple of libraries and two other ones are 64-bit while you are compiling in 32-bit mode. You can't mix 32 and 64 bit code.

Remove all objects you built (likely "make clean") then add -m64 to the compiler options.
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
C++ class definition with a member of the same class pogdorica Programming 7 06-21-2010 04:26 AM
php class mrlayance Shell Programming and Scripting 0 03-08-2010 02:05 PM
awk and sed class tjmannonline UNIX for Dummies Questions & Answers 3 10-09-2009 03:47 PM
car class (not school class) rickym2626 UNIX for Dummies Questions & Answers 1 09-01-2009 01:55 PM
wrong ELF class: ELFCLASS32 when trying to run ps as particular user aussieos Solaris 5 06-04-2009 03:07 AM

All times are GMT -4. The time now is 09:56 AM.