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

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

buidling emacs 21.2 on solaris 7 or later


From: John Bartelt
Subject: buidling emacs 21.2 on solaris 7 or later
Date: Thu, 02 Jan 2003 15:31:12 -0800 (PST)

Hello.  I have recently run into a new problem building emacs 21.2
on solaris 7, 8, 9.  The problem may be Sun's fault, but I thought
I would run it past you first.

I had successfully built emacs 21.2 on solaris 7 twice in 2002.
In December, I tried to build it again (same computer, same version
of gcc).  But the build failed in the lwlib directory (see below).
I traced this new problem to a change in an openwin include file,
X11/Xos.h.  It was changed by Sun's patch 108376-36.  If I edit
xlwmenu.c to use the older version of this file, the build succeeds
completely.  If I use the newer patched version, the build fails
100% of the time, independent of the compiler version (cc or gcc).

These details are specific to solaris 7; but the build fails in the
same way on solaris 8 and 9.  The patch numbers may be different.

I am not sure if its possible to workaround this in the ./configure
script.  I did not find any set of switches that would make it work.
Maybe it is purely a Sun/Openwin problem.

John Bartelt

PS:  Here is the output from the failing compilation:

cc -c   -I/usr/openwin/include    -g -O  -DEMACS_BITMAP_FILES -DHAVE_CONFIG_H 
-Demacs -I. -I../src 
-I/afs/slac.stanford.edu/package/emacs/build/emacs-21.2/lwlib 
-I/afs/slac.stanford.edu/package/emacs/build/emacs-21.2/lwlib/../src xlwmenu.c
"/usr/include/strings.h", line 25: identifier redeclared: memmove
        current : function(pointer to void, pointer to const void, uint) 
returning void
        previous: function(pointer to void, pointer to const void, uint) 
returning pointer to void : "/usr/include/string.h", line 44
"/usr/include/strings.h", line 26: syntax error before or at: 0
"/usr/include/strings.h", line 26: warning: undefined or missing type for: 
size_t
"/usr/include/strings.h", line 26: identifier redeclared: memset
        current : function() returning void
        previous: function(pointer to void, int, uint) returning pointer to 
void 
: "/usr/include/string.h", line 69
"xlwmenu.c", line 252: cannot recover from previous errors
cc: acomp failed for xlwmenu.c
make: *** [xlwmenu.o] Error 2



+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
John Bartelt                             bartelt@SLAC.Stanford.edu
Stanford Linear Accelerator Center       650-926-4591
MS 97, P.O. Box 4349                     
Stanford, CA 94309                       office:  SCS room 380




reply via email to

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