bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Configure/compile failure on Solaris 10 Sparc Ultra 25


From: Glasser, Nathan
Subject: Configure/compile failure on Solaris 10 Sparc Ultra 25
Date: Fri, 13 Apr 2007 17:00:14 -0400

Hello,

I tried to build Emacs-21.4a (emacs-version says 21.4.1) on Solaris 10
running
on a brand new Sparc Ultra 25 system, and encountered a difficulty. I
also
tried several older Emacs versions, and ran into the same difficulty.

The compiler is "Sun WorkShop 6 update 2 C 5.3 2001/05/15".
Admittedly, this is a very old version of their compiler, but because
that is the version I must use for other reasons, it's what I've
been using to attempt to compile Emacs. I've used this compiler version
to compile Emacs a number of times before in the past on other Sparc
Solaris
systems without a problem (possibly not Solaris 10, though).

When I run configure, configure runs cpp to test for various header
files
being present, and other things. However, these often got errors,
because the
symbol "__sparc", which would normally be defined if cc was run, was not
defined, and lots of system header files depended on it. Consequently,
configure got wrong ideas about the presence of features, and the
compile
failed.

My kludge to get around this was to change line 481 of configure as
shown
here:

echo '#define __sparc 1' > confdefs.h

A better fix might be to use "cc -E" rather than cpp; I tried this and
the
symbol is defined using the former, but not the latter.  I can't tell
you why
this used to work in the past, but in my current setup it does not.

Thanks,
Nathan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]