Skip to main content

This article explains an error that occurs when attempting to execute an application.

Problem:

When attempting to execute an application, the following error message was received:

Dependent module libfhutil.2.0.a(shr.o) could not be loaded

Resolution:

The error libfhutil.so.2.0: open failed is normally due to the fact that this library file, used in the old file handling utility (fhutils), was dropped in OCDS 4.1.40 and support for it was removed in all successive versions of the product and all versions of Server Express. It was replaced by the Rebuild utility which is capable of the same functions with better performances and the ability to handle larger files.

Having been replaced with the Rebuild utility, it will be necessary to recompile and relink all the object and executable files. This error message may indicate that there is an executable that was built using Object COBOL V4.1.xx and that you are attempting to run the executable using a Server Express product.

Note: Further information pertaining to the old file handling utility and the necessary steps to migrate to the new Rebuild utility can be found in the online manual Programmer's Guide to File Handling and also in the Migration Guide.

When an executable is built that relies on shared libraries, the path to the shared libraries is placed into the executable. If the executable is then moved to another machine you need to ensure that the same shared libraries are in the same directories as on the machine where the executable was compiled. Alternatively, the LIBPATH environment variable can be set to point to the directories where the shared libraries can be found on the new machine. Since Micro Focus provides the flexibility to install COBOL or Application Server in any directory, LIBPATH must be set for the product to run correctly. AIX products that do not give this degree of flexibility may execute without the LIBPATH variable set because the executed shared-object libraries are always located in the same place.

Old KB# 14020