This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [libiberty patch] Disable sys_errlist in strerror.c
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 2 Oct 2003 00:15:25 -0400
- Subject: Re: [libiberty patch] Disable sys_errlist in strerror.c
- References: <200310020020.h920KJb1026884@hiauly1.hia.nrc.ca>
On Wed, Oct 01, 2003 at 08:16:21PM -0400, John David Anglin wrote:
> 2003-10-01 Daniel Jacobowitz <drow@mvista.com>
>
> * strerror.c: Don't provide or reference sys_errlist if
> strerror is available.
>
> Causes:
>
> gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc/libiberty/../include -W -Wall -Wt
> raditional -pedantic ../../gcc/libiberty/splay-tree.c -o splay-tree.o
> if [ x"-fPIC" != x ]; then \
> gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc/libiberty/../include -W -Wall -Wtraditional -pedantic -fPIC ../../gcc/libiberty/strerror.c -o pic/strerror.o; \
> else true; fi
> ../../gcc/libiberty/strerror.c: In function `errno_max':
> ../../gcc/libiberty/strerror.c:601: error: `sys_nerr' undeclared (first use in this function)
> ../../gcc/libiberty/strerror.c:601: error: (Each undeclared identifier is reported only once
> ../../gcc/libiberty/strerror.c:601: error: for each function it appears in.)
Argh! I'm sorry; I checked sys_errlist thoroughly and not sys_nerr.
Thanks for reporting this.
I'm not sure what to do, let me think about it. You have strerror but
not sys_errlist on this system, right?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer