unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: NAKAJI Hiroyuki <nakaji@jp.freebsd.org>
To: 8642@debbugs.gnu.org
Subject: bug#8642: 24.0.50; cannot build on Solaris 10
Date: Tue, 10 May 2011 11:04:36 +0900	[thread overview]
Message-ID: <86liyfcnuz.fsf@jimmy.4407.kankyo-u.ac.jp> (raw)

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 <http://www.gnu.org/licenses/>.  */
 
 
-#define _XOPEN_SOURCE 500	/* for cuserid */
+#define _XOPEN_SOURCE 600	/* for cuserid */
 
 #ifdef HAVE_CONFIG_H
 #include <config.h>

I'm afraid the fix for fakemail.c is correct or not.
-- 
NAKAJI Hiroyuki





             reply	other threads:[~2011-05-10  2:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-10  2:04 NAKAJI Hiroyuki [this message]
2011-05-12  7:23 ` bug#8642: 24.0.50; cannot build on Solaris 10 Glenn Morris
2011-05-18  3:42   ` Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86liyfcnuz.fsf@jimmy.4407.kankyo-u.ac.jp \
    --to=nakaji@jp.freebsd.org \
    --cc=8642@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).