From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: emacs-unicode-2 branch does not compile on 64 bit here Date: Mon, 26 Jun 2006 13:30:47 +0900 Message-ID: References: <200606250113.44329.martin.ellis@kdemail.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1151296299 21693 80.91.229.2 (26 Jun 2006 04:31:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Jun 2006 04:31:39 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 26 06:31:37 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fuil0-0003NW-Fs for ged-emacs-devel@m.gmane.org; Mon, 26 Jun 2006 06:31:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fuikx-0006Fi-L3 for ged-emacs-devel@m.gmane.org; Mon, 26 Jun 2006 00:31:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fuikn-0006FN-FX for emacs-devel@gnu.org; Mon, 26 Jun 2006 00:31:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fuikj-0006Ex-AY for emacs-devel@gnu.org; Mon, 26 Jun 2006 00:31:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fuikj-0006Eu-6B for emacs-devel@gnu.org; Mon, 26 Jun 2006 00:31:13 -0400 Original-Received: from [150.29.246.133] (helo=mx1.aist.go.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FuiwW-0007k8-9L for emacs-devel@gnu.org; Mon, 26 Jun 2006 00:43:24 -0400 Original-Received: from smtp3.aist.go.jp ([150.29.246.12]) by mx1.aist.go.jp with ESMTP id k5Q4V8Bb015073; Mon, 26 Jun 2006 13:31:08 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id k5Q4V8rN017034; Mon, 26 Jun 2006 13:31:08 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1FuikJ-0000RP-00; Mon, 26 Jun 2006 13:30:47 +0900 Original-To: Martin Ellis In-reply-to: <200606250113.44329.martin.ellis@kdemail.net> (message from Martin Ellis on Sun, 25 Jun 2006 01:13:44 +0100) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:56185 Archived-At: In article <200606250113.44329.martin.ellis@kdemail.net>, Martin Ellis writes: > After configuring with: > ./configure --prefix=3D/home/martin/emacs --with-freetype --with-xft --e= nable-font-backend --with-gtk > I was getting the following error building emacs-unicode-2 on AMD64, alth= ough the same code > compiled fine on a 32 bit machine: > martin@earthworm:~/emacs/emacs/src$ gcc -c -D_BSD_SOURCE -Demacs -DHAVE= _CONFIG_H -DUSE_GTK=20 > -I. -I/home/martin/emacs/emacs/src -D_BSD_SOURCE -I/usr/include/gtk-= 2.0 -I/usr/lib/gtk-2.0/include > -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0= -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/= alsa -g -O2 -Wno-pointer-sign font.c > font.c:2671: error: conflicting types for =E2=80=98Flist_fonts=E2=80=99 > font.c:2523: error: previous implicit declaration of =E2=80=98Flist_fonts= =E2=80=99 was here > font.c: In function =E2=80=98Ffont_fill_gstring=E2=80=99: > font.c:2947: warning: comparison is always false due to limited range of = data type > font.c:2973: warning: comparison is always false due to limited range of = data type > font.c: In function =E2=80=98Fget_font_glyphs=E2=80=99: > font.c:3076: warning: comparison is always true due to limited range of d= ata type > After adding a function prototype it builds and appears to run fine: Thank you for the report. I've just installed this change to fix the error at line 2671. Index: font.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/emacs/emacs/src/Attic/font.h,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -u -r1.1.2.6 -r1.1.2.7 --- font.h 19 Jun 2006 12:44:41 -0000 1.1.2.6 +++ font.h 26 Jun 2006 04:27:21 -0000 1.1.2.7 @@ -424,6 +424,7 @@ extern int enable_font_backend; =20 EXFUN (Ffont_spec, MANY); +EXFUN (Flist_fonts, 4); =20 extern Lisp_Object font_symbolic_weight P_ ((Lisp_Object font)); extern Lisp_Object font_symbolic_slant P_ ((Lisp_Object font)); Could you please try again? And, I'll install fixes for the other warnings soon. --- Kenichi Handa handa@m17n.org