This is the mail archive of the libc-alpha@sources.redhat.com 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: stdio.h and sys_errlist on i386-gnu


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   `------------------------

Attachment: signature.asc
Description: This is a digitally signed message part


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