From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#507: compilation problem under Solaris Date: Thu, 03 Jul 2008 16:00:05 -0400 Message-ID: References: <092785B790DCD043BA45401EDA43D9B503276DB6@cst-xch-003.cnesnet.ad.cnes.fr> Reply-To: Glenn Morris , 507@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1215116858 21723 80.91.229.12 (3 Jul 2008 20:27:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jul 2008 20:27:38 +0000 (UTC) Cc: 507@emacsbugs.donarmstrong.com To: "Langella Raphael" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 03 22:28:24 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 1KEVPd-0008VZ-Cm for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Jul 2008 22:28:17 +0200 Original-Received: from localhost ([127.0.0.1]:35286 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEVOm-0002v1-HI for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Jul 2008 16:27:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KEVOh-0002uW-7k for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2008 16:27:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KEVOf-0002uE-On for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2008 16:27:18 -0400 Original-Received: from [199.232.76.173] (port=58918 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEVOf-0002u4-Hl for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2008 16:27:17 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35419) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KEVOf-0000Um-8O for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2008 16:27:17 -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 m63KRD7Q028703; Thu, 3 Jul 2008 13:27:13 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m63KA4Ft024149; Thu, 3 Jul 2008 13:10:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Glenn Morris Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 03 Jul 2008 20:10:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 507 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: moreinfo Original-Received: via spool by 507-submit@emacsbugs.donarmstrong.com id=B507.121511523521775 (code B ref 507); Thu, 03 Jul 2008 20:10:04 +0000 Original-Received: (at 507) by emacsbugs.donarmstrong.com; 3 Jul 2008 20:00:35 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m63K0Pho021680; Thu, 3 Jul 2008 13:00:27 -0700 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KEUyL-0000jr-FY; Thu, 03 Jul 2008 16:00:05 -0400 X-Spook: IRA beanpole Dick Cheney AFSPC bemd CDMA Ft. Knox X-Ran: Y4{7sJ*tacWE7qEE1|k-:9N2.U)>cw4)vS:D8vku!_FI/3_gA;z/=x1$<:bk'5:>969HK^ X-Hue: red X-Attribution: GM In-Reply-To: <092785B790DCD043BA45401EDA43D9B503276DB6@cst-xch-003.cnesnet.ad.cnes.fr> (Langella Raphael's message of "Thu, 3 Jul 2008 16:40:03 +0200") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Thu, 03 Jul 2008 16:27:18 -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:18628 Archived-At: tags 507 = help stop "Langella Raphael" wrote: > Anyway, once corrected, cpp_undefs is correctly defined: cpp_undefs > = -UProduits -Utmp -Uemacs -Usparc -Usun -Usolaris2 -Usparc -Usun > -Usolaris2 > > But compilation still fails. Instead of being replaced by "1 ", the >"sparc" string is just deleted. See attached src/Makefile. OK, I think I see what's going on. src/m/sparc.h does: #ifndef sparc #define sparc #endif And src/Makefile.c includes config.h which includes this file. Thus there seems to be no way to fix this through use of -U etc on the cpp line. By far the easiest way for you to fix this is just to edit your src and lib-src Makefile by hand. In terms of fixing Emacs for the future: 1) #ifdef sparc is only used in two places in the C code, so we could replace it with __sparc__ or somesuch. Does this seem OK to people? 2) replace this crazy cpp stuff with autoconf.