Problem
I am attempting to compile and link an application that makes
calls to the RPC and XDR libraries. The application compiled
and linked successfully under previous releases of the
operating system. Under SCO OpenServer Release 5.0, I am
now seeing link errors similar to the following:"...librpc.a not found..."In my makefile, or in my compiler directive, I am specifying
"-lrpc", but I am still seeing these errors. I have
searched for the rpc library by name but I have not located
the library. Why am I getting "librpc.a not found" errors
during link-time of my program build? Solution
The rpc(NS) and xdr(NS) libraries have been incorporated into the socket(SSC) library.
Your makefiles should already have libsocket.a declared as a
link module. Removing the compile directive:-lrpcshould allow your program to compile and link successfully.
Previous to the release of SCO OpenServer 5.0, the RPC libraries were bundled with the NFS Development System and you explicitly linked the RPC library during compile time by adding the link option: "-lrpc" to your compiler directive.
See also
man pages/SCOHelp for rpc(NS), xdr(NS) and socket(SSL).