stdio.h and sys_errlist on i386-gnu
Ulrich Drepper
drepper@redhat.com
Sat Apr 6 11:03:00 GMT 2002
On Fri, 2002-04-05 at 16:32, Marcus Brinkmann wrote:
> > However, it also seems to me that libiberty is ill-advised to use the name
> > sys_errlist for its own static variable.
>
> Jeff is in contact with binutils people. But we have found another package
> that fails to build. Openldap thinks sys_errlist is defined and tries to
> use it in favor of strerror (I don't know why it thinks that is better, but
> there you are). I won't notice such things myself anymore, because I
> removed that stuff from my local copy, so I don't know if there are even
> more.
>
> In other words, this is kind of important for us, and it would be good to
> have a fix in the 2.2 branch.
You want to add the horrible sys_errlist hack just because you'd have to
patch one more package?
Ideally libc would not export a single variable. Copy relocations are
simply evil and the code generated for accessing exported variables is
in any case bad.
Try to root out the use of sys_errlist. Convert the bit of code which
depends unconditionally on it to use strerror or strerror_r.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20020406/341fb5bd/attachment.sig>
More information about the Libc-alpha
mailing list