This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [libiberty patch] Disable sys_errlist in strerror.c


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


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