delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/08/15/13:24:38

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Wed, 15 Aug 2001 13:24:50 -0400
From: Jason Tishler <jason AT tishler DOT net>
To: Cygwin-Developers <cygwin-developers AT sources DOT redhat DOT com>
Subject: Does CVS build?
Message-ID: <20010815132450.A1468@dothill.com>
Mail-Followup-To: Cygwin-Developers <cygwin-developers AT sources DOT redhat DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.3.18i

--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 -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019