rhel8: Warning about linking a program with both libnsl.so.1 and libnsl.so2

Solution Verified - Updated -

Issue

The following warning was appearing when building the program:

/usr/bin/ld: warning: libnsl.so.1, needed by /path/<libname>.so, may conflict with libnsl.so.2

<libname>.so is an independent software vendor's library, and the program is during the build getting linked with that, and it with libnsl.so.2.

Environment

  • Red Hat Enterprise Linux (RHEL) 8
  • libnsl.so.2
  • libnsl.so.1
  • A shared library from an Independent software vendor (ISV), which uses libnsl.so.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content