Jegan Kunniya
Jegan Kunniya

Reputation: 992

Issues with building PROC application using Oracle 10g 64 bit

I am trying to build my PRO* C application in 32 bit mode using Oracle 10g 64 bit on Solaris SPARC platform.

Can someone tell me what settings has to be made in order to successfully compiler and create an executable?

Currently when I switch my LD_LIBRARY_PATH=$ORACLE_HOME/lib32, proc fails with the following error:

##ld.so.1: proc: fatal: /opt/oracle/product/10.2.0.4/lib32/libclntsh.so.10.1: wrong ELF class: ELFCLASS32

Any help is appreciated.

Upvotes: 2

Views: 1994

Answers (1)

Patrick Schlüter
Patrick Schlüter

Reputation: 11841

The error message is quite clear, you try to link a 32bit library with a 64bit application. You should try with LD_LIBRARY_PATH=$ORACLE_HOME/lib as it is there that the 64bit libraries are put. Oracle doesn't use the normal library scheme of Solaris (the sparcv9 subdirectory thing).

Upvotes: 1

Related Questions