From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yavor Doganov Newsgroups: gmane.emacs.bugs Subject: bug#647: 23.0.60; NSInteger changes in nsterm.h break the GNUstep build Date: Mon, 04 Aug 2008 20:40:12 +0300 Organization: The GNU Emacs Church (Bulgarian eparchy) Message-ID: <873alkbrwj.GNU's_Not_Unix!%yavor@gnu.org> References: <87ljzclq8t.fsf@stupidchicken.com> Reply-To: Yavor Doganov , 647@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1217874473 3705 80.91.229.12 (4 Aug 2008 18:27:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Aug 2008 18:27:53 +0000 (UTC) Cc: Yavor Doganov , 647@emacsbugs.donarmstrong.com To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 04 20:28:44 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KQ4nP-0000Tv-JQ for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Aug 2008 20:28:40 +0200 Original-Received: from localhost ([127.0.0.1]:44752 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQ4mU-0002FU-Ct for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Aug 2008 14:27:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KQ4mI-0002Cs-3d for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2008 14:27:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KQ4mF-0002Br-DL for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2008 14:27:29 -0400 Original-Received: from [199.232.76.173] (port=55710 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQ4mF-0002Bm-5k for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2008 14:27:27 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:48784) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KQ4mE-0007RR-90 for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2008 14:27:26 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m74IRMNX025776; Mon, 4 Aug 2008 11:27:22 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m74IF3Q7021656; Mon, 4 Aug 2008 11:15:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Yavor Doganov Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 04 Aug 2008 18:15:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 647 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 647-submit@emacsbugs.donarmstrong.com id=B647.121787325620004 (code B ref 647); Mon, 04 Aug 2008 18:15:03 +0000 Original-Received: (at 647) by emacsbugs.donarmstrong.com; 4 Aug 2008 18:07:36 +0000 Original-Received: from yavor.doganov.org (92_245.btc-net.bg [213.91.245.92] (may be forged)) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m74I7Vxn019998 for <647@emacsbugs.donarmstrong.com>; Mon, 4 Aug 2008 11:07:33 -0700 Original-Received: from tzotzolana.yavor.doganov.org ([192.168.0.3]) by yavor.doganov.org with esmtp (Exim 4.69) (envelope-from ) id 1KQ42X-0006on-30; Mon, 04 Aug 2008 20:40:20 +0300 Original-Received: from localhost ([127.0.0.1] helo=tzotzolana.yavor.doganov.org) by tzotzolana.yavor.doganov.org with esmtp (Exim 4.69) (envelope-from ) id 1KQ42W-0004OG-SE; Mon, 04 Aug 2008 20:40:12 +0300 In-Reply-To: <87ljzclq8t.fsf@stupidchicken.com> Mail-Followup-To: Chong Yidong , 647@emacsbugs.donarmstrong.com, Yavor Doganov User-Agent: Wanderlust/2.15.5 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 =?UTF-8?Q?(Goj=C5=8D)?= APEL/10.7 Emacs/22.2 (i486-pc-linux-gnu) MULE/5.0 (SAKAKI) X-Jabber-ID: doganov@jabber.minus273.org X-SA-Exim-Connect-IP: 192.168.0.3 X-SA-Exim-Mail-From: yavor@gnu.org X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000) X-SA-Exim-Scanned: Yes (on yavor.doganov.org) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Mon, 04 Aug 2008 14:27:29 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19014 Archived-At: Chong Yidong wrote: >=20 > Could you apply the following patch and see if it does the right > thing? No, it doesn't work; relevant part from config.log: configure:14873: gcc -c -O2 -D_BSD_SOURCE conftest.c >&5 conftest.c:86:38: error: Foundation/NSObjCRuntime.h: No such file or direct= ory conftest.c: In function 'main': conftest.c:90: error: 'NSInteger' undeclared (first use in this function) conftest.c:90: error: (Each undeclared identifier is reported only once conftest.c:90: error: for each function it appears in.) conftest.c:90: error: expected ';' before 'i' configure:14879: $? =3D 1 configure: failed program was: (Please tell me if you need that relevantly long program) Apparently it is not possible to check at this place in configure.in where CPPFLAGS is already reset and do not include -I/usr/include/GNUstep (and the current language is C). Furthermore, is there a compelling reason to use the obsolete and known to be broken macro AC_TRY_COMPILE? Emacs' configure.in already requires Autoconf 2.61 (which is a fairly modern release), and there should be zero impact on users since only developers regenerate the build system (and `configure' is kept in CVS anyway for those that build Emacs from CVS and do not have a recent Autoconf release). The following (roughly equivalent to your change) works for me: --- configure.in 04 =D0=B0=D0=B2=D0=B3 2008 20:21:35 +0300 1.552 +++ configure.in 04 =D0=B0=D0=B2=D0=B3 2008 20:21:53 +0300=09 @@ -1236,6 +1236,11 @@ LDFLAGS=3D"$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}" fi AC_CHECK_HEADER(AppKit/AppKit.h, HAVE_NS=3Dyes) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], + [NSInteger i;])], + [AC_DEFINE([NS_HAVE_INTEGER], [1], + [Define to 1 if `NSInteger' is defined.])], + []) fi if test "${HAVE_NS}" =3D yes; then window_system=3Dnextstep