Monday, April 21, 2008

In function `lcdprm':: warning: the `gets' function is dangerous and should not be used. :failed

I was recently applying patch 5452672 patch on a 10.2.0.3 oracle 8 node RAC instance. It gave the below error for all the remote nodes:
WARNING for re-link on remote node 'ac-oracle-008':
OPatch completed the command 'cd /oracle/product/10.2.0/db/rdbms/lib; /usr/bin/make -f ins_rdbms.mk ioracle ORACLE_HOME=/oracle/product/10.2.0/db || echo REMOTE_MAKE_FAILED::>&2 ' with warnings.
This command is from the file '/oracle/product/10.2.0/db/.patch_storage/5452672_Feb_7_2007_05_56_01/rac/make_cmds.txt.instantiated', line number '1'
Probable cause: chmod 755 /oracle/product/10.2.0/db/bin - Linking Oracle rm -f /oracle/product/10.2.0/db/rdbms/lib/oraclegcc -o /oracle/product/10.2.0/db/rdbms/lib/oracle -L/oracle/product/10.2.0/db/rdbms/lib/ -L/oracle/product/10.2.0/db/lib/ -L/oracle/product/10.2.0/db/lib/stubs/ -Wl,-E `test -f /oracle/product/10.2.0/db/rdbms/lib/sskgpsmti.o && echo /oracle/product/10.2.0/db/rdbms/lib/sskgpsmti.o` /oracle/product/10.2.0/db/rdbms/lib/opimai.o /oracle/product/10.2.0/db/rdbms/lib/ssoraed.o /oracle/product/10.2.0/db/rdbms/lib/ttcsoi.o /oracle/product/10.2.0/db/rdbms/lib/defopt.o -Wl,--whole-archive -lperfsrv10 -Wl,--no-whole-archive /oracle/product/10.2.0/db/lib/nautab.o /oracle/product/10.2.0/db/lib/naeet.o /oracle/product/10.2.0/db/lib/naect.o /oracle/product/10.2.0/db/lib/naedhs.o /oracle/product/10.2.0/db/rdbms/lib/config.o -lserver10 -lodm10 -lnnet10 -lskgxp10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 -lhasgen10 -lcore10 -lskgxn2 -locr10 -locrb10 -locrutl10 -lhasgen10 -lcore10 -lskgxn2 -lclient10 -lvsn10 -lcommon10 -lgeneric10 -lknlopt `if /usr/bin/ar tv /oracle/product/10.2.0/db/rdbms/lib/libknlopt.a | grep xsyeolap.o > /dev/null 2>&1 ; then echo "-loraolap10" ; fi` -lslax10 -lpls10 -lplp10 -lserver10 -lclient10 -lvsn10 -lcommon10 -lgeneric10 `if [ -f /oracle/product/10.2.0/db/lib/libavserver10.a ] ; then echo "-lavserver10" ; else echo "-lavstub10"; fi` `if [ -f /oracle/product/10.2.0/db/lib/libavclient10.a ] ; then echo "-lavclient10" ; fi` -lknlopt -lslax10 -lpls10 -lplp10 -ljox10 -lserver10 -lclsra10 -ldbcfg10 -locijdbcst10 -lwwg `cat /oracle/product/10.2.0/db/lib/ldflags` -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lnro10 `cat /oracle/product/10.2.0/db/lib/ldflags` -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lmm -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 `cat /oracle/product/10.2.0/db/lib/ldflags` -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lnro10 `cat /oracle/product/10.2.0/db/lib/ldflags` -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 `if /usr/bin/ar tv /oracle/product/10.2.0/db/rdbms/lib/libknlopt.a | grep "kxmnsd.o" > /dev/null 2>&1 ; then echo " " ; else echo "-lordsdo10"; fi` -lctxc10 -lctx10 -lzx10 -lgx10 -lctx10 -lzx10 -lgx10 -lordimt10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 -lsnls10 -lunls10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 -laio `cat /oracle/product/10.2.0/db/lib/sysliblist` -Wl,-rpath,/oracle/product/10.2.0/db/lib -lm `cat /oracle/product/10.2.0/db/lib/sysliblist` -ldl -lm -L/oracle/product/10.2.0/db/libmv -f /oracle/product/10.2.0/db/bin/oracle /oracle/product/10.2.0/db/bin/oracleOmv /oracle/product/10.2.0/db/rdbms/lib/oracle /oracle/product/10.2.0/db/bin/oraclechmod 6751 /oracle/product/10.2.0/db/bin/oracle/oracle/product/10.2.0/db/lib//libcore10.a(lcd.o)(.text+0xb71): In function `lcdprm':: warning: the `gets' function is dangerous and should not be used. :failed


Solutions:
Check Metalink Note: 356363.1

No action is required, please ignore the message, it is a internal code bug message reference for developer to fix the code in future versions.

Fixed in 11g.
Just thought of sharing this info. You may receive this error/warning with a lot of other patches, I faced this for other patches too.

1 Comments:

Anonymous said...

Google found you and you helped me. Thanks!