From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.os.cygwin,gmane.emacs.devel Subject: A warning building Emacs-cvs with recent Cygwin DLL Date: Fri, 25 Jan 2008 10:12:04 +0100 Message-ID: <4799A7E4.9020203@alice.it> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1201252389 12984 80.91.229.12 (25 Jan 2008 09:13:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Jan 2008 09:13:09 +0000 (UTC) Cc: cygwin@cygwin.com To: emacs-devel@gnu.org Original-X-From: cygwin-return-138913-goc-cygwin=m.gmane.org@cygwin.com Fri Jan 25 10:13:29 2008 Return-path: Envelope-to: goc-cygwin@gmane.org Original-Received: from sourceware.org ([209.132.176.174]) by lo.gmane.org with smtp (Exim 4.50) id 1JIKco-0004kz-5v for goc-cygwin@gmane.org; Fri, 25 Jan 2008 10:13:26 +0100 Original-Received: (qmail 6459 invoked by alias); 25 Jan 2008 09:12:53 -0000 Original-Received: (qmail 6451 invoked by uid 22791); 25 Jan 2008 09:12:52 -0000 X-Spam-Check-By: sourceware.org Original-Received: from smtp-out26.alice.it (HELO smtp-out26.alice.it) (85.33.2.26) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 25 Jan 2008 09:12:32 +0000 Original-Received: from FBCMMO03.fbc.local ([192.168.68.197]) by smtp-out26.alice.it with Microsoft SMTPSVC(6.0.3790.1830); Fri, 25 Jan 2008 10:12:29 +0100 Original-Received: from FBCMCL01B01.fbc.local ([192.168.69.82]) by FBCMMO03.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Fri, 25 Jan 2008 10:12:29 +0100 Original-Received: from [87.6.239.174] ([87.6.239.174]) by FBCMCL01B01.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Fri, 25 Jan 2008 10:12:29 +0100 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Original-Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Xref: news.gmane.org gmane.os.cygwin:95075 gmane.emacs.devel:87481 Archived-At: With Cygwin DLL 1.5.25 (and the changes to 'tz...', I suppose), building Emacs from CVS gives this warning: ... gcc -c -Demacs -DHAVE_CONFIG_H -DUSE_LUCID -I. -I/tmp/emacs/src -I/usr/X11R6/include -g -O2 -Wno-pointer-sign /tmp/emacs/src/strftime.c /tmp/emacs/src/strftime.c:58: warning: '_tzname' redeclared without dllimport attribute: previous dllimport ignored ... It seems that the following simple patch avoid it: ================================================= --- strftime.c.orig 2007-01-14 04:24:37.000000000 +0100 +++ strftime.c 2008-01-24 12:04:40.031250000 +0100 @@ -55,9 +55,13 @@ #endif #if HAVE_TZNAME #ifndef USE_CRT_DLL +#ifdef __CYGWIN__ +extern __IMPORT char *tzname[]; +#else extern char *tzname[]; #endif #endif +#endif /* Do multibyte processing if multibytes are supported, unless multibyte sequences are safe in formats. Multibyte sequences are ================================================= Could someone verify it and, eventually, apply ? Thanks, Angelo.