undefined reference to `yp_get_default_domain` failure on RHEL 8

Solution In Progress - Updated -

Issue

  • Call with yp_get_default_domain() fails to compile on RHEL 8
  • libnsl-2.28-164.el8.i686 is installed
 gcc -m32 -c a.c -o a.o && gcc -m32 a.o -L /lib -lnsl
a.o: In function `main':
a.c:(.text+0x1f): undefined reference to `yp_get_default_domain'

Environment

  • Red Hat Enterprise Linux 8

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