Search Blog Post

Thursday, September 19, 2013

libgcc_s.so: undefined reference to `__stack_chk_fail@GLIBC_2.4'

While applying Patch 8919491, I got the following error on adpatch session.
 
Running adjcopy.class:

adjava -mx512m -nojit oracle.apps.ad.jri.adjcopy @/u01/appl_top/apps/apps_st/appl/admin/PROD/out/apps.cmd
/bin/sh: adjava: command not found


Cause:-
After checking adrelink.log I found out
..
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/32/libgcc_s.so: undefined reference to `__stack_chk_fail@GLIBC_2.4'

.. 

Solution:-

After digging further I found out a metalink note which says to apply patch (12415211) to  update the stub libraries in the 10.1.2 and 10.1.3 Oracle Homes by installing the patch 12415211
Relink From Adadmin Giving Error: libgcc_s.so: undefined reference to `__stack_chk_fail@GLIBC_2.4' (Doc ID 1525823.1)
 
This will correctly create libgcc_s.so and will avoid relink failures.
 
 In following the Readme.txt, it says please note that Opatch should not be used to install this patch.
The instructions for the 10.1.3 Oracle Home are:-

[applmgr@oracleupk 10.1.2]$ cd lib/
[applmgr@oracleupk lib]$ pwd
/u01/appl_top/apps/tech_st/10.1.2/lib
[applmgr@oracleupk lib]$ cp -p -R stubs stubsORIG
[applmgr@oracleupk lib]$ cd stubs
 [applmgr@oracleupk stubs]$ cp /home/applmgr/12415211/files/lib/stubs/libgcc_s-2.3.2-stub.so .
[applmgr@oracleupk stubs]$ ln -s libgcc_s-2.3.2-stub.so libgcc_s.so.1
[applmgr@oracleupk stubs]$ ln -s libgcc_s.so.1 libgcc_s.so
  
After this is done and sourcing the APPS<CONTEXT_NAME>.env file, users should relink all 10.1.2 executables by running the $ORACLE_HOME/appsutil/clone/adlnktools.sh script and ensuring that there are now no errors in the make log file output from the script.

[applmgr@oracleupk stubs]$ cd $APPL_TOP
[applmgr@oracleupk appl]$ . ./APPSPROD_oracleupk.env
[applmgr@oracleupk appl]$ cd /u01/appl_top/apps/tech_st/10.1.2/appsutil/clone/
[applmgr@oracleupk clone]$ ls adlnktools.sh
adlnktools.sh
[applmgr@oracleupk clone]$ ./adlnktools.sh

adlnktools.sh started at Wed Sep 18 04:16:03 CDT 2013
Log file located at /u01/appl_top/inst/apps/PROD_oracleupk/logs/ora/10.1.2/install/make_09180416.log

adlnktools.sh completed sucessfully
 


The instructions for the 10.1.3 Oracle Home are:

[applmgr@oracleupk ~]$ cd /u01/appl_top/apps/tech_st/10.1.3/lib/
 [applmgr@oracleupk lib]$ cp -p -R stubs stubsORIG
[applmgr@oracleupk lib]$ cd stubs
[applmgr@oracleupk stubs]$ cp /home/applmgr/12415211/files/lib/stubs/libgcc_s-2.3.2-stub.so .
[applmgr@oracleupk stubs]$ ln -s libgcc_s-2.3.2-stub.so libgcc_s.so.1
[applmgr@oracleupk stubs]$ ln -s libgcc_s.so.1 libgcc_s.so
 [applmgr@oracleupk stubs]$ cd ../../appsutil/clone/
[applmgr@oracleupk clone]$ ls adlnkweboh.sh
adlnkweboh.sh
[applmgr@oracleupk clone]$ ./adlnkweboh.sh

adlnkweboh.sh started at Wed Sep 18 05:00:55 CDT 2013
Log file located at /u01/appl_top/inst/apps/PROD_oracleupk/logs/ora/10.1.3/install/make_09180500.log


adlnkweboh.sh completed sucessfully

2 comments:

  1. Thanks. We are moving Oracle instances from RHEL5 to RHEL6 and ran into the issue but couldn't download the patch from Oracle. Since you provided details instead of just a link to the patch and included the name of the stub file and other links indicated there is both a 32 bit and 64 bit version of it I was able to find where we had previously gotten the 32 bit version in 12.x.x and copy it into 10.1.2 & 10.1.3 to get the relink working.

    ReplyDelete