Mail Archives: cygwin-developers/2001/08/15/13:24:38
--0crhq69hqmXogQAX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
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
--0crhq69hqmXogQAX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="error.h.diff"
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)
--0crhq69hqmXogQAX--
- Raw text -