Skip to main content

Problem:

Error message:  

Dependent module libcobrts64_t.2.so could not be loaded.

Could not load module libcobrts64_t.2.so.

System error: No such file or directory

cob64: error(s) in compilation: sample1.cob

A recently released AIX update appears to cause the symptom.  To diagnose,

  cd to a directory in which you have write permission

  cp $COBDIR/demo/debug/pi.cbl pi.cbl

  cob pi.cbl

  cobrun pi

If this fails with a similar message, check the LIBPATH setting.  If it works, try the Oracle demo, sample1 or any other compilation run from the "make" command.  If that fails with the error message above, the problem is diagnosed.

Resolution:

The problem is caused by make being changed to a setgid program. setuid and setgid programs ignore the value of LIBPATH.   This is for security reasons. As a result, Cobol executables, such as rts64, cannot find the Cobol libraries.

  

Changing make back to a standard executable, as detailed below by IBM/Oracle in IY79104, will fix the issue with no need to add users to groups.

From IBM's documentation:

IBM APAR number IY79104

* Remove existing link for make:

rm /usr/bin/make

* Change ownership of make from "bin:system" to "bin:bin" :

chown bin:bin /usr/ccs/bin/make

* Remove sticky bit from Group permissions:

chmod g-s /usr/ccs/bin/make

* As user "bin" recreate link to /usr/bin/make

su - bin

ln -s /usr/ccs/bin/make /usr/bin/make

Link to IBM's discussion of APAR IY79104:

http://www-1.ibm.com/support/docview.wss?uid=isg1IY79104

Old KB# 4069