Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Compilation Errors "skipp incompatible" installing oracle 10g on linux 64z9

user579884Jun 13 2007 — edited Jun 13 2007
Hello Friends,

I have errors while installing Oracle 10g 10.2.0 for z9 Systems on a IBM Z/OS System with a SLES 10 Linux for z9 (64bit System).

The Problem:
Some programs of oracle cause errors while compiling libraries.

The Error:
------------ With LD_LIBRARY_PATH set to $ORACLE_HOME/lib (which contains 64bit libs) -------------------

(13:54) [oracle@linux-server-LXS1] /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/bin
[b]> ./genclntsh

/usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: skipping incompatible /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libdl.so when searching for -ldl
/usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: skipping incompatible /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libm.so when searching for -lm
/usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: skipping incompatible /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libnsl.so when searching for -lnsl
/usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: skipping incompatible /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/librt.so when searching for -lrt
/usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/libclient10.a(obindps.o): relocation R_390_PC32 against `ocibndps' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: final link failed: Bad value
collect2: ld gab 1 als Ende-Status zurück
genclntsh: Failed to link libclntsh.so.10.1

------------ With LD_LIBRARY_PATH set to $ORACLE_HOME/lib32 (which contains 32bit libs) ------------------
(13:54) [oracle@linux-server-LXS1] /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/bin
export LD_LIBRARY_PATH=/ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib32
(13:54) [oracle@linux-server-LXS1] /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/bin
./genclntsh
/usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: skipping incompatible /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libdl.so when searching for -ldl
/usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: skipping incompatible /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libm.so when searching for -lm
/usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: skipping incompatible /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libnsl.so when searching for -lnsl
/usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: skipping incompatible /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/librt.so when searching for -lrt
/usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/libclient10.a(obindps.o): relocation R_390_PC32 against `ocibndps' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: final link failed: Bad value
collect2: ld gab 1 als Ende-Status zurück
genclntsh: Failed to link libclntsh.so.10.1
(13:54) [oracle@linux-server-LXS1] /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/bin



Questions:

1) LD_LIBRARY_PATH doesn´t change any behavior of oracle - means the lib-path used stays on the 64bit directory. WHY?

2) All necessary packages are installed (checked with Oracle Admin Docu!). All other devel and lib and compile and stuff packages are installed as 64 and 32 bit version. OK Nearly every f*#(#*_ package which has something to do with compilation and make processes is installed. COULD SOMETHING BE STILL MISSING?

3) What do I have to change to get compilation with 32bit?

4) Is it reasonable to compile with 32bit ? I think it isn´t.

4) This is a S390 System so are there any special libs or patches to install for Oracle?

5) Where are the 64bit libs for oracle ??????? (See below)


What I found out:
The libraries in $ORACLE_HOME/lib and ../lib32 are both 32 bit .... ????? WHY? Not wondering its incompatible.

(13:56) [root@linux-server-LXS1] /ASLing01/opt/apps/oracle10g/app/oracle
find /ASLing01/opt/apps/oracle10g/app/oracle -name "libdl*"
/ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libdl-2.3.2-stub.so
/ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libdl.so
/ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libdl.so.2
/ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib32/stubs/libdl-2.3.2-stub.so
/ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib32/stubs/libdl.so
/ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib32/stubs/libdl.so.2

(14:37) [root@linux-server-LXS1] /ASLing01/opt/apps/oracle10g/app/oracle
file /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libdl.so
/ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libdl.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
(14:39) [root@linux-server-LXS1] /ASLing01/opt/apps/oracle10g/app/oracle
file /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib32/stubs/libdl.so
/ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib32/stubs/libdl.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
(14:40) [root@linux-server-LXS1] /ASLing01/opt/apps/oracle10g/app/oracle
file /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libdl-2.3.2-stub.so
/ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libdl-2.3.2-stub.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
(14:40) [root@linux-server-LXS1] /ASLing01/opt/apps/oracle10g/app/oracle
file /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib32/stubs/libdl.so.2
/ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib32/stubs/libdl.so.2: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
(14:40) [root@linux-server-LXS1] /ASLing01/opt/apps/oracle10g/app/oracle[ i]

Libraries are loaded from system as follows:
[i](14:37) [root@linux-server-LXS1] /ASLing01/opt/apps/oracle10g/app/oracle
ldconfig -p|grep -i libnsl
libnsl.so.1 (libc6,64bit, OS ABI: Linux 2.6.4) => /lib64/libnsl.so.1
libnsl.so.1 (libc6, OS ABI: Linux 2.6.4) => /lib/libnsl.so.1
libnsl.so (libc6,64bit, OS ABI: Linux 2.6.4) => /usr/lib64/libnsl.so
libnsl.so (libc6, OS ABI: Linux 2.6.4) => /usr/lib/libnsl.so
ldconfig -p|grep -i libdl
libdl.so.2 (libc6,64bit, OS ABI: Linux 2.6.4) => /lib64/libdl.so.2
libdl.so.2 (libc6, OS ABI: Linux 2.6.4) => /lib/libdl.so.2
libdl.so (libc6,64bit, OS ABI: Linux 2.6.4) => /usr/lib64/libdl.so
libdl.so (libc6, OS ABI: Linux 2.6.4) => /usr/lib/libdl.so



Thanks for help!

Markus

Message was edited by:
user579884
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 11 2007
Added on Jun 13 2007
1 comment
936 views