adrelink is exiting with status 1: In 11i/R12 & RHEL 5.4 while patching
STEP1: cd $AD_TOP/bin
STEP2: Take backup of the existing adrelinknew.sh
cp -rp adrelinknew.sh adrelinknew.sh_orig
STEP3: Edit the adrelinknew.sh
Change CPP_LDFLAGS as below
CPP_LDFLAGS=' -L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/lib/stubs -lclntsh'
#CPP_LDFLAGS=' -L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/lib/stubs -lclntsh'
CPP_LDFLAGS=' -L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/lib/stubs -lclntsh -Wl,--noinhibit-exec'
:wq! --> save & exit
STEP4: Reapply the patch, now the patch will complete successfully.
Retain the executable output file whenever it is still usable. Normally, the linker will not produce an output file if it encounters errors during the link process; it exits without writing an output file when it issues any error whatsoever.
-w --words print the word counts
-l --max-line-length print the length of the longest line