My Oracle Support Banner

Client Shared Library does not get generated and no errors displayed, or relink error that libclntsh does not exist (Doc ID 460078.1)

Last updated on FEBRUARY 14, 2023

Applies to:

Oracle Database - Enterprise Edition - Version 9.2.0.1 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform. *** ***

Symptoms

You are in the process of relinking, either manually, or automatically as part of a new install or while applying a patch or patchset. 

The relink process is attempting to build a new client shared library.

If you were only running "genclntsh" or "make -f ins_rdbms.mk client_sharedlib", you notice that genclntsh runs, but does not create the client shared library (libclntsh) AND does not display an error. 

If you already have the libclntsh libraries, you may find that the date/time stamp for the libraries does not get updated when you try to re-generate them (genclntsh).

If other relinks are done which expect to find the missing client shared library, you may notice relink errors similar to the following (depending on OS platform and Oracle version):

ld: fatal: library -lclntsh: not found
...or...
/usr/ccs/bin/ld: Can't find library: "clntsh"
...or...
/usr/bin/ld: cannot find -lclntsh
...or...
ld: fatal: file libclntsh.so: open failed: No such file or directory

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.