stdio.h and sys_errlist on i386-gnu
Marcus Brinkmann
Marcus.Brinkmann@ruhr-uni-bochum.de
Tue Apr 2 13:37:00 GMT 2002
Hi,
(to Roland: you might get a dup because I got th list address wrong before)
This applies only to a Hurd build of glibc with --enable-libio.
gdb's libiberty checks for sys_errlist, but fails to find it on the Hurd,
rightly so. Then it goes on to define it for itself, and its declaration as
static clashes with our declaration of them in stdio.h:
/* These variables normally should not be used directly. The `strerror'
function provides all the needed functionality. */
#ifdef __USE_BSD
extern int sys_nerr;
extern __const char *__const sys_errlist[];
#endif
#ifdef __USE_GNU
extern int _sys_nerr;
extern __const char *__const _sys_errlist[];
#endif
Roland, this seems to be a problem in stdio.h having these declarations on
the Hurd.
Thanks,
Marcus
--
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann GNU http://www.gnu.org marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de
More information about the Libc-alpha
mailing list