This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] deprecate libnsl/libnss_*
- From: Thorsten Kukuk <kukuk at suse dot de>
- To: libc-alpha at sourceware dot org
- Date: Mon, 4 Apr 2016 17:07:15 +0200
- Subject: Re: [PATCH] deprecate libnsl/libnss_*
- Authentication-results: sourceware.org; auth=none
- References: <20160404134356 dot GA20216 at suse dot de> <mvminzx30fz dot fsf at hawking dot suse dot de>
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)