adrelink is exiting with status 1 r12

adrelink is exiting with status 1 r12| When attempting to apply R12.ATG_PF.B.delta.3 patch 8919491, error appears on relink, the following error occurs on relinking executables task.

How to fix adrelink is exiting with status 1 r12

ERROR — adrelink failed in r12

adrelink.log:-

Relink of module “MSCCPP” failed.


Relink of module “MSCMON” failed.


Relink of module “MSCNEW” failed.

Relink of module “MSCNSP” failed.

Relink of module “MSCNSPNM” failed.

Relink of module “MSCPCL” failed.

Relink of module “MSCPDW” failed.

Relink of module “MSCPRG” failed.

Relink of module “MSCSDW” failed.

Relink of module “MSCSLD” failed.

Relink of module “MSCXGCAL” failed.

Relink of module “MSONEW” failed.

----------------------- 
Relink of module "MSCPDW" 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 /data03/APPS_8027/apps/apps_st/appl/msc/12.0.0/bin, 
and that there is sufficient space remaining on the disk partition 
containing your Oracle Applications installation. 
.. 
collect2: ld returned 1 exit status 
make: *** 
[/data03/GST_APPS_8027/apps/apps_st/appl/msc/12.0.0/bin/MSCCPP] Error 1 
Done with link of msc executable 'MSCCPP' on Thu Jul 26 10:29:09 IST 2018 

Relink of module "MSCCPP" 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 /data03/GST_APPS_8027/apps/apps_st/appl/msc/12.0.0/bin, 
and that there is sufficient space remaining on the disk partition 
containing your Oracle Applications installation. 
Relinking module 'MSCMON' in product msc ... 

adrelink is exiting with status 1 

End of adrelink session
Date/time is  Wed Sep 5 09:33:39 IST 2018
**********************************************************

Line-wrapping log file for readability ...
Done line-wrapping log file.

Original copy is /acedata03/GST_APPS_8027_1/apps/apps_st/appl/admin/GST/log/adrelink.lsv
New copy is /data03/GST_APPS_8027_1/apps/apps_st/appl/admin/GST/log/adrelink.log


An error occurred while relinking application programs.

Continue as if it were successful [No] :
 

Solution:-


To fix this problem, users are required to replace the following line under the Linux section of the $AD_TOP/bin/adrelinknew.sh:

CPP_LDFLAGS=’ -L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/lib/stubs -lclntsh’

with

CPP_LDFLAGS=’ -L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/lib/stubs -lclntsh -Wl,–noinhibit-exec’

After making this change, users are then required to run the adadmin utility and relink application executables.

Ensure to create a copy of the file before trying any change. Also try this change in Test environment before doing it in a production. 

Useful Posts:-

1 thought on “adrelink is exiting with status 1 r12”

Leave a Comment