Skip to main content

Object Cobol vs Server Express : Differences in shared library searching

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

Under Object Cobol Developer Suite, using chatr to examine an executable, the following occurs:

  cob -x pd.cbl

  chatr pd

    pd:

         shared executable

         shared library dynamic path search:

             SHLIB_PATH     disabled  second

             embedded path  disabled  first  Not Defined

Under Server Express the following occurs:

  cob -x pd.cbl

  chatr pd

    pd:

         shared executable

         shared library dynamic path search:

             SHLIB_PATH     enabled   first  

             embedded path  enabled   second /usr/lib

Resolution:

HP/UX Specific:

The Default behavior for Object COBOL Developer was to build executables which  ignored SHLIB_PATH, searching for shared libraries in the same locations used at build time. This meant that executables built using the default options under Object Cobol Developer Suite could not be executed by Cobol  which was installed in a different location than the one used to build it. The default behavior could be modified at build time by passing options to the system link editior.

Executbales built under Server Express search the directories identified by the SHLIB_PATH environment variable first, and the path names embedded in the executable second.

To obtain the same results as Object Cobol Developer Suite, issue the command

  chatr s disable pd

Old KB# 2185

0 replies

Be the first to reply!