This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] deprecate libnsl/libnss_*


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]