My Oracle Support Banner

Opatch reports relink issue :collect2: ld returned 1 exit status,make: *** [$Oracle_Home/lib/oracle] Error 1 (Doc ID 1643572.1)

Last updated on DECEMBER 26, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

When applying a PSU to Oracle Home,the relink phase can generate the following warnings:

opatch log file,


Verifying the update...
Make failed to invoke "/usr/bin/make -f ins_rdbms.mk ioracle ORACLE_HOME=<oracle-home>"....'<oracle-home>/lib//libserver11.a(kfd.o): In function `kfdCheckDiskstring':
kfd.c:(.text+0x242): undefined reference to `kgfmIsOdaTestPriv'
kfd.c:(.text+0x2e9): undefined reference to `kgfmDumpCtx'
<oracle_home>/lib//libserver11.a(kfd.o): In function `kfdApplianceDiskNum':
kfd.c:(text.unlikely+0xc1aa): undefined reference to `kgfmDumpCtx'
<oracle_home>/lib//libserver11.a(kfd.o): In function `kfdJoin':
kfd.c:(text.unlikely+0x3b539): undefined reference to `kgfmDumpCtx'
<oracle_home>/lib//libserver11.a(kfd.o): In function `kfdDiscoverShallow':
kfd.c:(text.unlikely+0x408cf): undefined reference to `kgfmReloadConfig'
<oracle_home>/lib//libserver11.a(kfdp.o): In function `kfdp_getTgtCard':
kfdp.c:(text.unlikely+0x10880): undefined reference to `kfgpGetTemplate'
collect2: ld returned 1 exit status
make: *** [<oracle-home>/rdbms/lib/oracle] Error 1
'
The following make actions have failed :

Re-link fails on target "ioracle".

Do you want to proceed? [y|n]
y
User Responded with: Y
Composite patch 16902043 successfully applied.
OPatch Session completed with warnings.
Log file location: <oracle-home>/cfgtoollogs/opatch/opatch2014-04-02_09-42-34AM_1.log

 

 When relink the oracle home manually,the error will occur with following message.

 

<oracle-home>/rdbms/lib
oracle@hostname> /usr/bin/make -f ins_rdbms.mk ioracle ORACLE_HOME=<oracle-home>
chmod 755 <oracle-home>/bin

- Linking Oracle
rm -f <oracle_home>/rdbms/lib/oracle
gcc -o <oracle_home>/rdbms/lib/oracle -m64 -L<oracle_home>/rdbms/lib/ -L<oracle_home>/lib/ -L<oracle_home>/lib/stubs/ -Wl,-E <oracle_home>/rdbms/lib/opimai.o <oracle_home>/rdbms/lib/ssoraed.o <oracle_home>/rdbms/lib/ttcsoi.o -Wl,--whole-archive -lperfsrv11 -Wl,--no-whole-archive <oracle_home>/lib/nautab.o <oracle_home>/lib/naeet.o <oracle_home>/lib/naect.o <oracle_home>/lib/naedhs.o <oracle_home>/rdbms/lib/config.o -lserver11 -lodm11 -lcell11 -lnnet11 -lskgxp11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 -lclient11 -lvsn11 -lcommon11 -lgeneric11 -lknlopt `if /usr/bin/ar tv <oracle_home>/rdbms/lib/libknlopt.a | grep xsyeolap.o > /dev/null 2>&1 ; then echo "-loraolap11" ; fi` -lslax11 -lpls11 -lrt -lplp11 -lserver11 -lclient11 -lvsn11 -lcommon11 -lgeneric11 `if [ -f <oracle_home>/lib/libavserver11.a ] ; then echo "-lavserver11" ; else echo "-lavstub11"; fi` `if [ -f <oracle_home>/lib/libavclient11.a ] ; then echo "-lavclient11" ; fi` -lknlopt -lslax11 -lpls11 -lrt -lplp11 -ljavavm11 -lserver11 -lwwg `cat <oracle_home>/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat <oracle_home>/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnnz11 -lzt11 -lmm -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 -lztkg11 `cat <oracle_home>/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat <oracle_home>/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnnz11 -lzt11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 `if /usr/bin/ar tv <oracle_home>/rdbms/lib/libknlopt.a | grep "kxmnsd.o" > /dev/null 2>&1 ; then echo " " ; else echo "-lordsdo11"; fi` -L<oracle_home>/ctx/lib/ -lctxc11 -lctx11 -lzx11 -lgx11 -lctx11 -lzx11 -lgx11 -lordimt11 -lclsra11 -ldbcfg11 -lhasgen11 -lskgxn2 -lnnz11 -lzt11 -lxml11 -locr11 -locrb11 -locrutl11 -lhasgen11 -lskgxn2 -lnnz11 -lzt11 -lxml11 -loraz -llzopro -lorabz2 -lipp_z -lipp_bz2 -lippdcemerged -lippsemerged -lippdcmerged -lippsmerged -lippcore -lippcpemerged -lippcpmerged -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 -lsnls11 -lunls11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 -lasmclnt11 -lcommon11 -lcore11 -laio `cat <oracle_home>/lib/sysliblist` -Wl,-rpath,<oracle_home>/lib -lm `cat <oracle_home>/lib/sysliblist` -ldl -lm -L<oracle_home>/lib
<oracle_home>/lib//libserver11.a(kfd.o): In function `kfdCheckDiskstring':
kfd.c:(.text+0x242): undefined reference to `kgfmIsOdaTestPriv'
kfd.c:(.text+0x2e9): undefined reference to `kgfmDumpCtx'
<oracle_home>/lib//libserver11.a(kfd.o): In function `kfdApplianceDiskNum':
kfd.c:(text.unlikely+0xc1aa): undefined reference to `kgfmDumpCtx'
<oracle_home>/lib//libserver11.a(kfd.o): In function `kfdJoin':
kfd.c:(text.unlikely+0x3b539): undefined reference to `kgfmDumpCtx'
<oracle_home>/lib//libserver11.a(kfd.o): In function `kfdDiscoverShallow':
kfd.c:(text.unlikely+0x408cf): undefined reference to `kgfmReloadConfig'
<oracle_home>/lib//libserver11.a(kfdp.o): In function `kfdp_getTgtCard':
kfdp.c:(text.unlikely+0x10880): undefined reference to `kfgpGetTemplate'
collect2: ld returned 1 exit status
make: *** [<oracle_home>/rdbms/lib/oracle] Error 1

<oracle_home>/rdbms/lib

  

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.