GNU bug report logs -
#8642
24.0.50; cannot build on Solaris 10
Previous Next
Reported by: NAKAJI Hiroyuki <nakaji <at> jp.freebsd.org>
Date: Tue, 10 May 2011 02:33:02 UTC
Severity: important
Found in version 24.0.50
Fixed in version 24.1
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8642 in the body.
You can then email your comments to 8642 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8642
; Package
emacs
.
(Tue, 10 May 2011 02:33:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
NAKAJI Hiroyuki <nakaji <at> jp.freebsd.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 10 May 2011 02:33:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8642
; Package
emacs
.
(Thu, 12 May 2011 07:24:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 8642 <at> debbugs.gnu.org (full text, mbox):
NAKAJI Hiroyuki wrote:
> 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.
Thanks. I fixed 1 and 2. I wouldn't know what to do about 3.
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Wed, 18 May 2011 03:43:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
NAKAJI Hiroyuki <nakaji <at> jp.freebsd.org>
:
bug acknowledged by developer.
(Wed, 18 May 2011 03:43:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 8642-done <at> debbugs.gnu.org (full text, mbox):
Version: 24.1
>> 3. Solaris's cc does not allow the combination of C99 option and
>> _XOPEN_SOURCE=500, for example, fakemail.c fails.
After looking into this a little bit, I think your change to 600 may be
correct. But fakemail.c was removed, so it's no longer necessary.
If that file comes back, please send a reminder about this. Thanks.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 15 Jun 2011 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 8 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.