Tuesday, October 6, 2015

/usr/lib/gcc/x86_64-redhat-linux/4.4.7/32/libgcc_s.so: undefined reference to `__stack_chk_fail@GLIBC_2.4

Target CLONE Instance: Adrelink Failed on FNDLIBR With Error: /usr/lib/gcc/x86_64-redhat-linux/4.4.7/32/libgcc_s.so: undefined reference to `__stack_chk_fail@GLIBC_2.4' (Doc ID 2057857.1)
https://support.oracle.com/epmos/adf/images/t.gif

https://support.oracle.com/epmos/adf/images/t.gif
In this Document






APPLIES TO:
Oracle Concurrent Processing - Version 12.1.3 to 12.2.4 [Release 12.1 to 12.2]
Oracle Applications DBA - Version 12.1.3 to 12.2.4 [Release 12.1 to 12.2]
Information in this document applies to any platform.
SYMPTOMS
Experiencing relinking errors after performing a clone on the target machine:
Removing $FND_TOP/$APPLBIN from PATH ...
.....
...
APP/apps/apps_st/appl/gml/12.0.0/lib/libgml.a
/APP/apps/apps_st/appl/gma/12.0.0/lib/libgma.a
/APP/apps/apps_st/appl/gmf/12.0.0/lib/libgmf.a
/APP/apps/apps_st/appl/fnd/12.0.0/lib/libfnd.a
/APP/apps/apps_st/appl/fnd/12.0.0/lib/libfnd.a -lsql10 -lclntsh `cat
/APP/apps/tech_st/10.1.2/lib/ldflags` -lnsslb10 -lncrypt10 -lnsgr10
-lnzjs10 -ln10 -lnnz10 -lnl10 -lnro10 `cat
/APP/apps/tech_st/10.1.2/lib/ldflags` -lnsslb10 -lncrypt10 -lnsgr10
-lnzjs10 -ln10 -lnnz10 -lnl10 -lclient10 -lnnetd10 -lvsn10 -lcommon10
-lgeneric10 -lmm -lcore10 -lxml10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10
`cat /APP/apps/tech_st/10.1.2/lib/ldflags` -lnsslb10 -lncrypt10 -lnsgr10
-lnzjs10 -ln10 -lnnz10 -lnl10 -lnro10 `cat
/APP/apps/tech_st/10.1.2/lib/ldflags` -lnsslb10 -lncrypt10 -lnsgr10
-lnzjs10 -ln10 -lnnz10 -lnl10 -lclient10 -lnnetd10 -lvsn10 -lcommon10
-lgeneric10 -lcore10 -lxml10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10
-lclient10 -lnnetd10 -lvsn10 -lcommon10 -lgeneric10 -lcore10 -lxml10
-lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 `cat
/APP/apps/tech_st/10.1.2/lib/sysliblist` -ldl -lm -lpthread
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/32/libgcc_s.so: undefined reference to
`__stack_chk_fail@GLIBC_2.4'
collect2: ld returned 1 exit status
make: *** [/APP/apps/apps_st/appl/fnd/12.0.0/bin/FNDLIBR] Error 1
Done with link of fnd executable 'FNDLIBR' on Sat Sep 12 16:31:30 EEST 2015

Relink of module "FNDLIBR" failed.
See error messages above (also recorded in log file) for possible
reasons for the failure. Also, please check that the Unix userid
running adrelink has read, write, and execute permissions
on the directory /APP/apps/apps_st/appl/fnd/12.0.0/bin,
and that there is sufficient space remaining on the disk partition
containing your Oracle Applications installation.

Done with link of product 'fnd' on Sat Sep 12 16:31:30 EEST 2015


adrelink is exiting with status 1

End of adrelink session

 
CHANGES
Cloning to a different Linux kernel version:
Source instance is on Linux 5 - kernel version 2.6.18-194.el5xen
Target instance is on Linux 6 - kernel version 3.8.13-44.1.1.el6uek.x86_64
CAUSE
Missing or corrupt Library Files on the Target Instance caused the libgcc_s.so: undefined reference to `__stack_chk_fail@GLIBC_2.4' error.

This error indicated that a bad library file was linked into the 10.1.2 & 10.1.3 IAS Oracle Homes.
 
SOLUTION
1. Check what RPMs are installed on the Source and Target machines by running the following command on each machine:

As Root: 

$ rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}\n'|egrep 'binutils|compat|elfutils|gcc|glibc|libaio|libgcc|libstdc|make|openmotif|libXp'|grep -v automake|grep -v avahi|grep -v elfutils|sort > WHAT_RPMS_SOURCE.txt
$ rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}\n'|egrep 'binutils|compat|elfutils|gcc|glibc|libaio|libgcc|libstdc|make|openmotif|libXp'|grep -v automake|grep -v avahi|grep -v elfutils|sort > WHAT_RPMS_TARGET.txt

2. Examine both files to see the difference.

3. Install all the latest RPMs from the Oracle Mirror Site for Linux 6 kernel version:


http://mirrors.psu.ac.th/oraclelinux/repo/OracleLinux/OL6/UEKR3/latest/x86_64/
 > Search down for:
    -- 3.8.13-44.1.1.el6uek.x86_64

4. Then use Note 761566.1 - Oracle E-Business Suite Installation and Upgrade Notes Release 12 (12.1.1) for Linux x86-64
 ***  ALTHOUGH INSTANCE IS 12.1.3  -- SAME STEPS APPLY.. Specific Steps below must be carried out:
Update AS 10g (10.1.2 and 10.1.3) Oracle Homes (Oracle Linux 6, RHEL 6, Oracle Linux 7 and RHEL 7 only)

After installation, users must update the stub libraries in the 10.1.2 and 10.1.3 Oracle Homes using Patch 12415211.  In following the instructions below, please note that Opatch should not be used to install this patch.

Users must specifically copy the files in the patch to the specified directories as follows for the 10.1.2 Oracle Home:

$ cd <12 .1_install_dir="">/apps/tech_st/10.1.2/lib
$ cp -p -R stubs stubsORIG
$ cd stubs
$ cp /12415211/files/lib/stubs/libgcc_s-2.3.2-stub.so .
$ ln -s libgcc_s-2.3.2-stub.so libgcc_s.so.1
$ ln -s libgcc_s.so.1 libgcc_s.so
After this is done and sourcing the APPS.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.

The instructions for the 10.1.3 Oracle Home are:

$ cd <12 .1_install_dir="">/apps/tech_st/10.1.3/lib
$ cp -p -R stubs stubsORIG
$ cd stubs
$ cp /12415211/files/lib/stubs/libgcc_s-2.3.2-stub.so .
$ ln -s libgcc_s-2.3.2-stub.so libgcc_s.so.1
$ ln -s libgcc_s.so.1 libgcc_s.so


6 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. This comment has been removed by a blog administrator.

    ReplyDelete
  4. This comment has been removed by a blog administrator.

    ReplyDelete
  5. This comment has been removed by a blog administrator.

    ReplyDelete
  6. This comment has been removed by a blog administrator.

    ReplyDelete