Discussion:
wrong ELF class: ELFCLASS64
Mohd Hisham Auyob
2006-12-19 13:18:39 UTC
Permalink
Hi...

really need help on this.
i got error while compiling my pro C program.
ld: fatal: file /oracle/app/oracle/product/10.2.0/lib//libclntsh.so: wrong ELF class: ELFCLASS64
ld: fatal: file /oracle/app/oracle/product/10.2.0/lib/scorept.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to t.exe

i'm using solaris 10 sparc , oracle 10G.


This message posted from opensolaris.org
Frank Hofmann
2006-12-19 14:12:16 UTC
Permalink
Post by Mohd Hisham Auyob
Hi...
really need help on this.
i got error while compiling my pro C program.
ld: fatal: file /oracle/app/oracle/product/10.2.0/lib//libclntsh.so: wrong ELF class: ELFCLASS64
ld: fatal: file /oracle/app/oracle/product/10.2.0/lib/scorept.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to t.exe
i'm using solaris 10 sparc , oracle 10G.
Well, it looks like you're trying to link 64bit libraries and 32bit
application objects together. That doesn't work. You must compile your
program into 64bit code in order to link it with the library files listed
above, which are 64bit.

FrankH.
Post by Mohd Hisham Auyob
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
James Carlson
2006-12-19 15:04:17 UTC
Permalink
Post by Mohd Hisham Auyob
really need help on this.
i got error while compiling my pro C program.
ld: fatal: file /oracle/app/oracle/product/10.2.0/lib//libclntsh.so: wrong ELF class: ELFCLASS64
ld: fatal: file /oracle/app/oracle/product/10.2.0/lib/scorept.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to t.exe
i'm using solaris 10 sparc , oracle 10G.
S10 isn't Open Solaris, nor is this an Oracle support forum, but this
looks like a familiar problem. Check your LD_LIBRARY_PATH and -L/-R
flags. I think Oracle requires the use of that path (yecch), and that
it needs to have $ORACLE_HOME/lib32 in it before the other libraries.
--
James Carlson, KISS Network <james.d.carlson-xsfywfwIY+***@public.gmane.org>
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
Rod Evans
2006-12-19 15:04:40 UTC
Permalink
Post by Mohd Hisham Auyob
ld: fatal: file /oracle/app/oracle/product/10.2.0/lib//libclntsh.so: wrong ELF class: ELFCLASS64
ld: fatal: file /oracle/app/oracle/product/10.2.0/lib/scorept.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to t.exe
http://blogs.sun.com/rie/entry/wrong_elf_class_requires_consistent
--
Rod
Mohd Hisham Auyob
2006-12-20 10:26:57 UTC
Permalink
thanks to all, it works. :)


This message posted from opensolaris.org
Mohd Hisham Auyob
2006-12-20 07:50:02 UTC
Permalink
Yeap you are right..
I've added -xarch=v9 in my compile option and it works..
thanks

------------------------------------
Celcom (M) Bhd
Mohd Hisham Auyob
hisham-MBSyI7zRhGwW6/***@public.gmane.org
4th Floor, Wisma Celcom,
Lot 74, Jln Kemajuan, Section 13,
46200, Petaling Jaya,
Selangor
tel: 03-72027451
fax: 03-72027337
mobile: 019-3149755
------------------------------------

-----Original Message-----
From: Frank.Hofmann-UdXhSnd/***@public.gmane.org [mailto:Frank.Hofmann-UdXhSnd/***@public.gmane.org]
Sent: Tuesday, December 19, 2006 10:12 PM
To: Mohd Hisham Auyob
Cc: opensolaris-discuss-***@public.gmane.org
Subject: Re: [osol-discuss] wrong ELF class: ELFCLASS64
Post by Mohd Hisham Auyob
Hi...
really need help on this.
i got error while compiling my pro C program.
wrong ELF class: ELFCLASS64
Post by Mohd Hisham Auyob
ld: fatal: file /oracle/app/oracle/product/10.2.0/lib/scorept.o: wrong
ELF class: ELFCLASS64
Post by Mohd Hisham Auyob
ld: fatal: File processing errors. No output written to t.exe
i'm using solaris 10 sparc , oracle 10G.
Well, it looks like you're trying to link 64bit libraries and 32bit
application objects together. That doesn't work. You must compile your
program into 64bit code in order to link it with the library files
listed
above, which are 64bit.

FrankH.
Post by Mohd Hisham Auyob
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
Mohd Hisham Auyob
2006-12-20 07:52:12 UTC
Permalink
Thanks to all who reply and help me..
I'm able to compile my source code

------------------------------------
Celcom (M) Bhd
Mohd Hisham Auyob
hisham-MBSyI7zRhGwW6/***@public.gmane.org
4th Floor, Wisma Celcom,
Lot 74, Jln Kemajuan, Section 13,
46200, Petaling Jaya,
Selangor
tel: 03-72027451
fax: 03-72027337
mobile: 019-3149755
------------------------------------

-----Original Message-----
From: Rod Evans [mailto:Rod.Evans-UdXhSnd/***@public.gmane.org]
Sent: Tuesday, December 19, 2006 11:05 PM
To: Mohd Hisham Auyob
Cc: opensolaris-discuss-***@public.gmane.org
Subject: Re: [osol-discuss] wrong ELF class: ELFCLASS64
wrong ELF class: ELFCLASS64
Post by Mohd Hisham Auyob
ld: fatal: file /oracle/app/oracle/product/10.2.0/lib/scorept.o: wrong
ELF class: ELFCLASS64
Post by Mohd Hisham Auyob
ld: fatal: File processing errors. No output written to t.exe
http://blogs.sun.com/rie/entry/wrong_elf_class_requires_consistent
--
Rod
Mohd Hisham Auyob
2006-12-20 07:54:04 UTC
Permalink
Hi james..
I haven't tried to use $(RACLE_HOME/lib32 instead I used -xarch=v9
option. It works..
Thanks.

------------------------------------
Celcom (M) Bhd
Mohd Hisham Auyob
hisham-MBSyI7zRhGwW6/***@public.gmane.org
4th Floor, Wisma Celcom,
Lot 74, Jln Kemajuan, Section 13,
46200, Petaling Jaya,
Selangor
tel: 03-72027451
fax: 03-72027337
mobile: 019-3149755
------------------------------------

-----Original Message-----
From: James Carlson [mailto:james.d.carlson-xsfywfwIY+***@public.gmane.org]
Sent: Tuesday, December 19, 2006 11:04 PM
To: Mohd Hisham Auyob
Cc: opensolaris-discuss-***@public.gmane.org
Subject: Re: [osol-discuss] wrong ELF class: ELFCLASS64
Post by Mohd Hisham Auyob
really need help on this.
i got error while compiling my pro C program.
wrong ELF class: ELFCLASS64
Post by Mohd Hisham Auyob
ld: fatal: file /oracle/app/oracle/product/10.2.0/lib/scorept.o: wrong
ELF class: ELFCLASS64
Post by Mohd Hisham Auyob
ld: fatal: File processing errors. No output written to t.exe
i'm using solaris 10 sparc , oracle 10G.
S10 isn't Open Solaris, nor is this an Oracle support forum, but this
looks like a familiar problem. Check your LD_LIBRARY_PATH and -L/-R
flags. I think Oracle requires the use of that path (yecch), and that
it needs to have $ORACLE_HOME/lib32 in it before the other libraries.
--
James Carlson, KISS Network <james.d.carlson-xsfywfwIY+***@public.gmane.org>
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
Loading...