Technical article 104714

Why am I getting "librpc.a not found" errors during link-time?

OpenServer 5.0.0

Written · Last revised

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:
-lrpc

should 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).

From the Xinuos technical article database, record 104714. Reproduced with permission. The original is at www.sco.com/ta/104714, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.