From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kazuhiro Ito Newsgroups: gmane.emacs.bugs Subject: bug#12464: 24.2.50; nt/configure.bat fails to detect giflib-5.0.0 Date: Tue, 18 Sep 2012 18:13:45 +0900 Message-ID: <87y5k7ae2e.wl%%xmue@d1.dion.ne.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1347959699 16512 80.91.229.3 (18 Sep 2012 09:14:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Sep 2012 09:14:59 +0000 (UTC) To: 12464@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 18 11:15:03 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TDttV-0002Gh-Vq for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Sep 2012 11:15:02 +0200 Original-Received: from localhost ([::1]:46361 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDttR-0000Lm-6o for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Sep 2012 05:14:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46166) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDttJ-0000LD-NH for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2012 05:14:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TDttD-0001QF-QM for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2012 05:14:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59556) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDttD-0001QB-Ng for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2012 05:14:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TDtuU-0006dA-HA for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2012 05:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kazuhiro Ito Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Sep 2012 09:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12464 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.134795972925448 (code B ref -1); Tue, 18 Sep 2012 09:16:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Sep 2012 09:15:29 +0000 Original-Received: from localhost ([127.0.0.1]:40869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TDttw-0006cO-S7 for submit@debbugs.gnu.org; Tue, 18 Sep 2012 05:15:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45043) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TDttt-0006cE-DU for submit@debbugs.gnu.org; Tue, 18 Sep 2012 05:15:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TDtsb-0001Kd-32 for submit@debbugs.gnu.org; Tue, 18 Sep 2012 05:14:06 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:55881) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDtsb-0001KZ-0k for submit@debbugs.gnu.org; Tue, 18 Sep 2012 05:14:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDtsV-0000Fy-7V for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2012 05:14:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TDtsU-0001Id-2x for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2012 05:13:59 -0400 Original-Received: from msa102.auone-net.jp ([61.117.18.162]:40412) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDtsT-0001Hb-PP for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2012 05:13:58 -0400 Original-Received: from GUNGNIR.med.osaka-cu.ac.jp (unknown [114.179.36.76]) by msa102.auone-net.jp (au one net msa) with ESMTP id E230F360038; Tue, 18 Sep 2012 18:13:49 +0900 (JST) User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL/10.8 EasyPG/1.0.0 Emacs/24.2.50 (i386-mingw-nt6.1.7601) MULE/6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64544 Archived-At: Because gif_lib.h of giflib-5.0.0 assumes size_t is defined (I don't know whether that is intended), nt/configure.bat fails to check its availability. In nt/config.log > In file included from junk.c:1:0: > f:/build/emacs-w32/include/gif_lib.h:262:37: error: expected ';', ',' or ')' before 'GifExtensionLength' > f:/build/emacs-w32/include/gif_lib.h:265:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'EGifGCBToExtension' > The failed program was: > #include "gif_lib.h" > main (){} > gcc -If:/build/emacs-w32/include -If:/build/emacs-w32/include/libxml2 -g -c junk.c -o junk.obj > gcc -If:/build/emacs-w32/include -If:/build/emacs-w32/include/libxml2 -g -c junk.c -o junk.obj Though I don't know whether Emacs supports giflib-5.0.0, the below patch can fix the problem. Gif support on my binaries (built by gcc 4.5.2, MinGW) has no problem with giflib-5.0.0 as far as I tested. === modified file 'nt/configure.bat' --- nt/configure.bat 2012-09-08 11:20:32 +0000 +++ nt/configure.bat 2012-09-18 03:14:43 +0000 @@ -627,7 +627,8 @@ if (%gifsupport%) == (N) goto gifDone echo Checking for libgif... -echo #include "gif_lib.h" >junk.c +echo #include "stdio.h" >junk.c +echo #include "gif_lib.h" >>junk.c echo main (){} >>junk.c rem -o option is ignored with cl, but allows result to be consistent. echo %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >>config.log -- Kazuhiro Ito