[PATCH] deprecate libnsl/libnss_*
Thorsten Kukuk
kukuk@suse.de
Mon Apr 4 15:07:00 GMT 2016
On Mon, Apr 04, Andreas Schwab wrote:
> Thorsten Kukuk <kukuk@suse.de> writes:
>
> > I haven't used the libc_hidden_nolink_sunrpc macros, since they,
> > like for sunrpc, don't work. The problem is, you have to specify the
> > correct version number for this symbol, but the version number is
> > different on the different architectures.
>
> The version is a macro that expands to the correct version depending on
> the architecture. Use the last version as specified in nis/Versions,
> with '.' replaced by '_'.
This does not work. Example:
xdecrypt()
xdecrypt has in xcrypt.c:
libc_hidden_nolink_sunrpc (xdecrypt, GLIBC_2_1)
In sunrpc/Version it is GLIBC_2.1
On i586 you have xdecrypt@GLIBC_2.1 and you cannot link against
it. But on x86_64, you have xdecrypt@@GLIBC_2.2.5, so you can
still link against it.
Thorsten
--
Thorsten Kukuk, Senior Architect SLES & Common Code Base
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
More information about the Libc-alpha
mailing list