From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: NAKAJI Hiroyuki Newsgroups: gmane.emacs.bugs Subject: bug#8642: 24.0.50; cannot build on Solaris 10 Date: Tue, 10 May 2011 11:04:36 +0900 Message-ID: <86liyfcnuz.fsf@jimmy.4407.kankyo-u.ac.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1304994793 26698 80.91.229.12 (10 May 2011 02:33:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 May 2011 02:33:13 +0000 (UTC) To: 8642@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 10 04:33:09 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QJcl2-00031X-Jg for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 May 2011 04:33:08 +0200 Original-Received: from localhost ([::1]:59312 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJcl1-0005D9-Kb for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 May 2011 22:33:07 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJcky-0005D2-Nb for bug-gnu-emacs@gnu.org; Mon, 09 May 2011 22:33:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJckx-0006sZ-Qh for bug-gnu-emacs@gnu.org; Mon, 09 May 2011 22:33:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJckx-0006sJ-Ed for bug-gnu-emacs@gnu.org; Mon, 09 May 2011 22:33:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QJckw-0000lV-TC; Mon, 09 May 2011 22:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: NAKAJI Hiroyuki Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 May 2011 02:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8642 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.13049947532902 (code B ref -1); Tue, 10 May 2011 02:33:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 May 2011 02:32:33 +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 1QJckS-0000kl-MQ for submit@debbugs.gnu.org; Mon, 09 May 2011 22:32:33 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QJced-0000bh-OF for submit@debbugs.gnu.org; Mon, 09 May 2011 22:26:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJceX-0005n8-Dn for submit@debbugs.gnu.org; Mon, 09 May 2011 22:26:26 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:38377) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJceX-0005n4-CX for submit@debbugs.gnu.org; Mon, 09 May 2011 22:26:25 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJceW-00053L-BJ for bug-gnu-emacs@gnu.org; Mon, 09 May 2011 22:26:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJceU-0005mk-AM for bug-gnu-emacs@gnu.org; Mon, 09 May 2011 22:26:24 -0400 Original-Received: from d4407.kankyo-u.ac.jp ([202.216.78.81]:25982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJceT-0005kf-Ow for bug-gnu-emacs@gnu.org; Mon, 09 May 2011 22:26:22 -0400 X-Virus-Scanned: amavisd-new at d4407.kankyo-u.ac.jp Original-Received: from jimmy.4407.kankyo-u.ac.jp.kankyo-u.ac.jp (localhost [IPv6:::1]) by d4407.kankyo-u.ac.jp (8.14.4/8.14.4) with ESMTP id p4A24aSm099748 for ; Tue, 10 May 2011 11:04:36 +0900 (JST) (envelope-from nakaji@kankyo-u.ac.jp) User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (berkeley-unix) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Mon, 09 May 2011 22:32:32 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 09 May 2011 22:33:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:46366 Archived-At: There are three problems in building on Solaris 10. 1. In Solaris 10's /bin/sh, builtin test command does not have "-e" 2. /bin/sh does not have $(command) syntax, neither 3. Solaris's cc does not allow the combination of C99 option and _XOPEN_SOURCE=500, for example, fakemail.c fails. cc -xc99=all -DHAVE_CONFIG_H -I. -I../src -I../lib -I/export/home/nakaji/emacs/lib-src -I/export/home/nakaji/emacs/lib-src/../src -I/export/home/nakaji/emacs/lib-src/../lib -m64 -L/usr/pkg/lib -R/usr/pkg/lib -L/usr/openwin/lib -I/usr/pkg/include -m64 -I/usr/pkg/include /export/home/nakaji/emacs/lib-src/fakemail.c ../lib/libgnu.a -lsocket -lnsl -o fakemail "/usr/include/sys/feature_tests.h", line 332: #error: "Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications" cc: acomp failed for /export/home/nakaji/emacs/lib-src/fakemail.c Here is a patch. Thanks. === modified file 'Makefile.in' --- Makefile.in 2011-05-06 06:30:56 +0000 +++ Makefile.in 2011-05-09 11:21:39 +0000 @@ -373,7 +373,7 @@ LDFLAGS='${LDFLAGS}' MAKE='${MAKE}' BOOTSTRAPEMACS="$$boot"; \ fi; if [ -r .bzr/checkout/dirstate ]; then \ - vcswitness="$$(pwd)/.bzr/checkout/dirstate"; \ + vcswitness="`pwd`/.bzr/checkout/dirstate"; \ fi; \ cd $@; $(MAKE) all $(MFLAGS) \ CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \ @@ -829,7 +829,7 @@ -(cd doc/lispintro && $(MAKE) $(MFLAGS) maintainer-clean) (cd leim; $(MAKE) $(MFLAGS) maintainer-clean) (cd lisp; $(MAKE) $(MFLAGS) bootstrap-clean) - [ ! -e config.log ] || mv -f config.log config.log~ + [ ! -f config.log ] || mv -f config.log config.log~ ${top_bootclean} ## configure; make bootstrap replaces the real config.log from configure ## with the truncated one from config.status. The former is more useful. === modified file 'lib-src/fakemail.c' --- lib-src/fakemail.c 2011-04-16 21:13:07 +0000 +++ lib-src/fakemail.c 2011-05-09 04:26:15 +0000 @@ -20,7 +20,7 @@ along with GNU Emacs. If not, see . */ -#define _XOPEN_SOURCE 500 /* for cuserid */ +#define _XOPEN_SOURCE 600 /* for cuserid */ #ifdef HAVE_CONFIG_H #include I'm afraid the fix for fakemail.c is correct or not. -- NAKAJI Hiroyuki