From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#7178: 24.0.50; Emacs 24 doesn't build on Solaris 10 Date: Sun, 10 Oct 2010 10:07:48 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1286719933 16520 80.91.229.12 (10 Oct 2010 14:12:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 10 Oct 2010 14:12:13 +0000 (UTC) Cc: 7178@debbugs.gnu.org To: Rainer Orth Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 10 16:12:11 2010 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.69) (envelope-from ) id 1P4wdF-0000O7-Pc for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Oct 2010 16:12:10 +0200 Original-Received: from localhost ([127.0.0.1]:34579 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P4wdF-0006at-1x for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Oct 2010 10:12:09 -0400 Original-Received: from [140.186.70.92] (port=50488 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P4wd9-0006aM-NR for bug-gnu-emacs@gnu.org; Sun, 10 Oct 2010 10:12:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P4wd8-0005kW-9O for bug-gnu-emacs@gnu.org; Sun, 10 Oct 2010 10:12:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P4wd8-0005kS-56 for bug-gnu-emacs@gnu.org; Sun, 10 Oct 2010 10:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P4wWM-0007RU-6c; Sun, 10 Oct 2010 10:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dan Nicolaescu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Oct 2010 14:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7178 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7178-submit@debbugs.gnu.org id=B7178.128671946928597 (code B ref 7178); Sun, 10 Oct 2010 14:05:02 +0000 Original-Received: (at 7178) by debbugs.gnu.org; 10 Oct 2010 14:04:29 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P4wVo-0007RC-QQ for submit@debbugs.gnu.org; Sun, 10 Oct 2010 10:04:29 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P4wVm-0007R7-U7 for 7178@debbugs.gnu.org; Sun, 10 Oct 2010 10:04:27 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1P4wZ2-00057G-93; Sun, 10 Oct 2010 10:07:48 -0400 In-Reply-To: (Rainer Orth's message of "Fri\, 08 Oct 2010 22\:04\:28 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 10 Oct 2010 10:05:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , 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:40793 Archived-At: Rainer Orth writes: > When I tried to build Emacs bazaar trunk on Solaris 10 to check if > bug#7163 still occurs on trunk, I ran into two issues: > > * lisp/Makefile.in (compile-clean) uses $() which the Solaris 10 /bin/sh > doesn't understand. This can easily be avoided by using `` instead. > > * src/sysdep.c doesn't compile: > > "/usr/include/term.h", line 1034: syntax error before or at: bool > > uses bool without providing bool. cannot be > included since it only works in C99 mode. The documented solution > (e.g. on the curs_terminfo(3CURSES) manpage) is to include > before term.h. The patch below hardcodes this, but this is most > likely not the appropriate solution. Some kind of autoconf magic is > probably needed to check if can be compiled on its own. > === modified file 'src/sysdep.c' > --- src/sysdep.c 2010-08-22 15:14:37 +0000 > +++ src/sysdep.c 2010-09-08 20:34:07 +0000 > @@ -97,6 +97,7 @@ > /* Include this last. If it is ncurses header file, it adds a lot of > defines that interfere with stuff in other headers. Someone responsible > for ncurses messed up bigtime. See bug#6812. */ > +#include > #include > #endif The only reason to include in sysdep.c is to get a prototype for `tputs' (used in `reset_sys_modes') . cm.c also uses tputs, but it adds an extern declaration for it. Given that including seems to cause problems, maybe a good workaround would be to move `reset_sys_modes' to cm.c.