GNU bug report logs - #507
compilation problem under Solaris

Previous Next

Package: emacs;

Reported by: "Langella Raphael" <raphael.langella <at> steria.cnes.fr>

Date: Mon, 30 Jun 2008 12:50:03 UTC

Severity: normal

Fixed in version 23.0.60

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #38 received at control <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: "Langella Raphael" <raphael.langella <at> steria.cnes.fr>
Cc: <507 <at> debbugs.gnu.org>
Subject: Re: bug#507: compilation problem under Solaris
Date: Thu, 03 Jul 2008 16:00:05 -0400
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.



This bug report was last modified 16 years and 192 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.