Domino on Linux/Unix, Troubleshooting, Best Practices, Tips and more ...


Daniel Nashed


Building Domino C-API applications for RHEL/CentOS 8 - Lib dependency

Daniel Nashed  16 January 2020 23:35:17

Now that Domino 11 officially supports RHEL/CentOS 8.x I am testing my applications.

I ran into a changed lib version for Domino C-API applications which compile and link with makefiles derived from the examples shipped with the SDK.
Those examples use the lib "-lnsl".

RHEL/CentOS 8 changed to a new version ( -->

The lib is usually not needed for most applications unless you are using cetain TCP/IP operations as far I found out.

The error you see, when starting the application is the following:

/opt/hcl/domino/notes/latest/linux/nshtest: error while loading shared libraries: cannot open shared object file: No such file or directory

So when building your applications you can usually remove the dependency.
Domino itself doesn't have the dependency.

Just to remind you: The support build environment for Domino 10 and Domino 11 on Linux is still CentOS 7.4 with the gcc/gcc++ compiler shipped with that version!

This is a about the run-time environment and the changed lib dependencies. And again, this is only for specific add-on applications.
I added the exact error message to let Google to pick it up...

Here is the original link line form the examples:

# set LIBS to list all the libraries ld should link with.

LIBS = -lnotes -lm
-lnsl -lc -ldl -lpthread -lresolv

Here are the libs installed by default:







    • [IBM Lotus Domino]
    • [Domino on Linux]
    • [Nash!Com]
    • [Daniel Nashed]