Statically linking against RPC functions

Florian Weimer fweimer@redhat.com
Fri Oct 28 12:39:00 GMT 2016


In a default build, librpcsvc.a cannot be linked successfully because it 
references functions which are not part of any static library.

sunrpc/librpcsvc.a(xyppasswd.o): In function `xdr_passwd':
sunrpc/xyppasswd.c:13: undefined reference to `xdr_string'
sunrpc/xyppasswd.c:15: undefined reference to `xdr_string'
sunrpc/xyppasswd.c:17: undefined reference to `xdr_int'
sunrpc/xyppasswd.c:19: undefined reference to `xdr_int'
sunrpc/xyppasswd.c:21: undefined reference to `xdr_string'
sunrpc/xyppasswd.c:23: undefined reference to `xdr_string'
sunrpc/xyppasswd.c:25: undefined reference to `xdr_string'
sunrpc/librpcsvc.a(xyppasswd.o): In function `xdr_yppasswd':
sunrpc/xyppasswd.c:35: undefined reference to `xdr_string'

Most functions in libnsl.a seem to suffer the same fate.

Is this an incompletely implemented removal of the Sun RPC interfaces, 
or is there an expectation that these functions come from somewhere else?

Thanks,
Florian



More information about the Libc-alpha mailing list