Sunday, 14 April 2019

ld.so.1: FNDCPUCF: fatal: xxxxxx libclntsh.so.10.1: wrong ELF class: ELFCLASS64 Killed


ld.so.1: FNDCPUCF: fatal: /u01/apps/tech_st/10.1.2/lib/libclntsh.so.10.1: wrong ELF class: ELFCLASS64
Killed
ld.so.1: FNDCPUCF: fatal: /u01/apps/tech_st/10.1.2/lib/libclntsh.so.10.1: wrong ELF class: ELFCLASS64
Killed


Issue:As part of the application clone "perl adcfgclone.pl appsTier" received below error.

/u01/apps/apps_st/appl/fnd/12.0.0/bin
$ cd $FND_TOP/bin
$ ldd -d FNDCPUCF
        libnnz10.so =>   /u01/apps/tech_st/10.1.2/lib32/libnnz10.so
        libkstat.so.1 =>         /lib/libkstat.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        libsocket.so.1 =>        /lib/libsocket.so.1
        libgen.so.1 =>   /lib/libgen.so.1
        libdl.so.1 =>    /lib/libdl.so.1
        libsched.so.1 =>         /usr/lib/libsched.so.1
        libaio.so.1 =>   /lib/libaio.so.1
        librt.so.1 =>    /lib/librt.so.1
        libm.so.2 =>     /lib/libm.so.2
        libclntsh.so.10.1 =>     /u01/apps/tech_st/10.1.2/lib/libclntsh.so.10.1  - wrong ELF class: ELFCLASS64
        libpthread.so.1 =>       /lib/libpthread.so.1
        libc.so.1 =>     /lib/libc.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libmd.so.1 =>    /lib/libmd.so.1
        libscf.so.1 =>   /lib/libscf.so.1
        libdoor.so.1 =>  /lib/libdoor.so.1
        libuutil.so.1 =>         /lib/libuutil.so.1
        /platform/SUNW,Sun-Fire-V890/lib/libc_psr.so.1
        /platform/SUNW,Sun-Fire-V890/lib/libmd_psr.so.1
$ echo $ORACLE_HOME
/u01/apps/tech_st/10.1.2



Solution

$ ls -l $ORACLE_HOME/lib/ldflags $ORACLE_HOME/lib32/ldflags
-rw-r--r--   1 appldev  oinstall     131 Apr  4 15:11 /u01/apps/tech_st/10.1.2/lib/ldflags
lrwxrwxrwx   1 appldev  oinstall      41 Apr  4 14:17 /u01/apps/tech_st/10.1.2/lib32/ldflags -> /prodapps/apps/tech_st/10.1.2/lib/ldflags

$ unlink /u01/apps/tech_st/10.1.2/lib32/ldflags
$ ln -s $ORACLE_HOME/lib/ldflags $ORACLE_HOME/lib32/ldflags

$ ls -ltr $ORACLE_HOME/lib32/ldflags
lrwxrwxrwx   1 appldev  oinstall      36 Apr  4 15:17 /u01/apps/tech_st/10.1.2/lib32/ldflags -> /u01/apps/tech_st/10.1.2/lib/ldflags
$ genclntsh
$ date
Thursday, April  4, 2019 03:18:20 PM AST
$ relink all



$ cd $FND_TOP/bin
$ ldd -d FNDCPUCF
        libnnz10.so =>   /u01/apps/tech_st/10.1.2/lib32/libnnz10.so
        libkstat.so.1 =>         /lib/libkstat.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        libsocket.so.1 =>        /lib/libsocket.so.1
        libgen.so.1 =>   /lib/libgen.so.1
        libdl.so.1 =>    /lib/libdl.so.1
        libsched.so.1 =>         /usr/lib/libsched.so.1
        libaio.so.1 =>   /lib/libaio.so.1
        librt.so.1 =>    /lib/librt.so.1
        libm.so.2 =>     /lib/libm.so.2
        libclntsh.so.10.1 =>     /u01/apps/tech_st/10.1.2/lib32/libclntsh.so.10.1
        libpthread.so.1 =>       /lib/libpthread.so.1
        libc.so.1 =>     /lib/libc.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libmd.so.1 =>    /lib/libmd.so.1
        libscf.so.1 =>   /lib/libscf.so.1
        libdoor.so.1 =>  /lib/libdoor.so.1
        libuutil.so.1 =>         /lib/libuutil.so.1
        /platform/SUNW,Sun-Fire-V890/lib/libc_psr.so.1
        /platform/SUNW,Sun-Fire-V890/lib/libmd_psr.so.1
$

No comments:

Post a Comment