Search This Blog

Tuesday, February 14, 2012

Adrelink is exiting with status 1:


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

cp -rp  adrelinknew.sh_orig

STEP3: Edit the


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


  1. awsum my friend thanks for this error resolve document this is good.

  2. Hi,
    After migration of EBS R12.1.3 from RHEL 5.7(32 bit) to RHEL 5.7(64 bit) adadmin - relink operation is ending with these errors: cc: You_need_to_edit_adrelink_to_set_LDFLAGS: No such file or directory
    make: *** [/data/APPSR12/R12/apps/apps_st/appl/fnd/12.0.0/bin/AFTBLGEN] Error
    Done with link of fnd executable 'AFTBLGEN' on Thu Aug 15 19:40:54 MUT 2013

    Relink of module "AFTBLGEN" 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 /data/APPSR12/R12/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.

    Kindly let me know if you encountered any similar errors.