This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Does CVS build?
- To: Cygwin-Developers <cygwin-developers at sources dot redhat dot com>
- Subject: Does CVS build?
- From: Jason Tishler <jason at tishler dot net>
- Date: Wed, 15 Aug 2001 13:24:50 -0400
After doing a fresh checkout a few hours ago, I got the following build
error:
gcc ... ../../../src/libiberty/strerror.c
../../../src/libiberty/strerror.c:465: warning: static declaration for `sys_nerr' follows non-static
../../../src/libiberty/strerror.c:466: conflicting types for `sys_errlist'
/home/jt/src/cygwin/src/newlib/libc/include/sys/errno.h:21: previous declaration of `sys_errlist'
make[1]: *** [strerror.o] Error 1
make[1]: Leaving directory `/home/jt/src/cygwin/build/i686-pc-cygwin/libiberty'
make: *** [all-target-libiberty] Error 2
I was able to workaround the above by applying the attached patch.
Is this cockpit error? Or, does CVS currently not build?
Thanks,
Jason
Index: newlib/libc/include/sys/errno.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/errno.h,v
retrieving revision 1.7
diff -u -p -r1.7 errno.h
--- errno.h 2001/08/14 14:36:58 1.7
+++ errno.h 2001/08/15 17:21:42
@@ -17,10 +17,6 @@ extern int *__errno _PARAMS ((void));
extern __IMPORT _CONST char * _CONST _sys_errlist[];
extern __IMPORT int _sys_nerr;
-#ifdef __CYGWIN__
-extern __IMPORT const char * const sys_errlist[];
-extern __IMPORT int sys_nerr;
-#endif
#define __errno_r(ptr) ((ptr)->_errno)