undefined reference to `yp_get_default_domain` failure on RHEL 8
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.