This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Statically linking against RPC functions
- From: Florian Weimer <fweimer at redhat dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 28 Oct 2016 14:39:40 +0200
- Subject: Statically linking against RPC functions
- Authentication-results: sourceware.org; auth=none
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