From: Glenn Morris <rgm@gnu.org>
To: "Langella Raphael" <raphael.langella@steria.cnes.fr>
Cc: 507@emacsbugs.donarmstrong.com
Subject: bug#507: compilation problem under Solaris
Date: Thu, 03 Jul 2008 16:00:05 -0400 [thread overview]
Message-ID: <w0y74iivqy.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <092785B790DCD043BA45401EDA43D9B503276DB6@cst-xch-003.cnesnet.ad.cnes.fr> (Langella Raphael's message of "Thu, 3 Jul 2008 16:40:03 +0200")
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.
next prev parent reply other threads:[~2008-07-03 20:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-03 14:40 bug#507: compilation problem under Solaris Langella Raphael
2008-07-03 20:00 ` Glenn Morris [this message]
2008-07-03 20:10 ` Processed (with 1 errors): " Emacs bug Tracking System
2008-07-03 21:22 ` Stefan Monnier
-- strict thread matches above, loose matches on Subject: below --
2008-07-04 8:40 Langella Raphael
2008-07-04 19:48 ` Glenn Morris
2008-07-08 0:26 ` Dan Nicolaescu
2008-07-02 7:59 Langella Raphael
2008-07-02 19:52 ` Glenn Morris
[not found] <092785B790DCD043BA45401EDA43D9B503276D9D@cst-xch-003.cnesnet.ad.cnes.fr>
2008-07-01 20:08 ` Glenn Morris
2008-06-30 12:41 Langella Raphael
2008-06-30 20:30 ` 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=w0y74iivqy.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=507@emacsbugs.donarmstrong.com \
--cc=raphael.langella@steria.cnes.fr \
/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).