Skip to main content

Problem:

cob64: bad magic number error when linking application

cob32: bad magic number error when linking application

Resolution:

When using COBOL in conjunction with third party software, ensure that the COBOL working mode matches the environment settings for the third party software.

For example, Oracle installations on UNIX typically provide both 32-bit and 64-bit shared objects in $ORACLE_HOME/lib and $ORACLE_HOME/lib64 . You would therefore need to ensure that LIBPATH/LD_LIBRARY_PATH/SHLIB_PATH was set correctly. See Knowledge Base article #22062 for further details.

Old KB# 7183