Skip to Main Content

Programming Languages & Frameworks

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Pro*C compiler error on RHEL8 (nsl)

bkmcdanielApr 9 2024 — edited Apr 9 2024

​You​

We recently moved a 19c DB from RHEL7 to RHEL8. While the DB is fine and users can connect without issue our app team is having trouble recompiling their application which makes use of the Pro*C precompiler. When they run the make script, it reports the following error:

/usr/bin/ld: cannot find -lnsl
collect2: error: ld returned 1 exit status
make: *** [/path/cleaned/src/program_proc_mk/program_proc.mk:5: build] Error 1

I have verified that the libnsl exists on the server (/usr/lib64).

-rwxr-xr-x  1 root root  99160 Jan 31 02:46 /usr/lib64/libnsl-2.28.so
lrwxrwxrwx  1 root root     14 Jan 31 02:34 /usr/lib64/libnsl.so.1 -> libnsl-2.28.so
lrwxrwxrwx. 1 root root     15 Aug 12  2018 /usr/lib64/libnsl.so.2 -> libnsl.so.2.0.0
-rwxr-xr-x. 1 root root 116408 Aug 12  2018 /usr/lib64/libnsl.so.2.0.0

This is way outside of my area, but I'm trying to help the app team. Has anyone encountered this issue or does anyone have any suggestions?

This post has been answered by bkmcdaniel on Apr 9 2024
Jump to Answer
Comments
Post Details
Added on Apr 9 2024
2 comments
571 views