Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Reply-To: From: "Joe Graham" To: Subject: gcc-2.95.3-5 on cygwin compilation problem Date: Thu, 15 Nov 2001 12:15:36 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Importance: Normal X-OriginalArrivalTime: 15 Nov 2001 19:16:11.0287 (UTC) FILETIME=[FC7C9A70:01C16E09] Hello I ran into the following 2 problems when trying to build gcc-2.95.3-5 on cygwin and gcc-3.0. Both gave me the same problems in the same file. Below is how i got it to compile but I sure my implementation is probably wrong. Here goes. ******** error 1: ******** in file: /libiberty/strerror.c ../../gcc-2.95.3-5/libiberty/strerror.c:464: conflicting types for `sys_errlist /usr/include/sys/errno.h:23: previous declaration of `sys_errlist' make[1]: *** [strerror.o] Error 1 original: static const char **sys_errlist; fix: //static const char **sys_errlist; (commenting out the declaration fixes this) ******** error 2: ******** in file: /libiberty/strerror.c ../../gcc-2.95.3-5/libiberty/strerror.c ../../gcc-2.95.3-5/libiberty/strerror.c: In function `init_error_tables': ../../gcc-2.95.3-5/libiberty/strerror.c:546: `sys_errlist' has an incomplete typ e original: if ((sys_errlist = (const char **) malloc (nbytes)) != NULL) fix: if ((sys_errlist[eip->value] = (const char **) malloc (nbytes)) != NULL) (does this need to be eip->name ?) here's the diff 464c464 < //static const char **sys_errlist; --- > static const char **sys_errlist; 546c546 < if ((sys_errlist[eip->value] = (const char **) malloc (nbytes)) != NULL) --- > if ((sys_errlist = (const char **) malloc (nbytes)) != NULL) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/