[Top][All Lists]

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

Re: need help to install emacs

From: Eli Zaretskii
Subject: Re: need help to install emacs
Date: Thu, 22 Aug 2002 19:56:03 +0300

> From: Xiaoxia Dong <address@hidden>
> Date: Thu, 22 Aug 2002 09:35:18 -0500
> I was trying to install emacs-21.2 on Sun Sparc machine. I got the 
> following errors when I tried to compile the src/lwlib code.
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> gcc -c       -g -O2  -DEMACS_BITMAP_FILES -DHAVE_CONFIG_H -Demacs -I. 
> -I../src -I/usr/local/src/emacs-21.2/lwlib 
> -I/usr/local/src/emacs-21.2/lwlib/../src xlwmenu.c
> In file included from /usr/include/X11/Xos.h:81,
>                   from xlwmenu.c:32:
> /usr/include/strings.h:25: conflicting types for `memmove'
> /usr/include/iso/string_iso.h:62: previous declaration of `memmove'
> /usr/include/strings.h:26: parse error before `0'
> /usr/include/strings.h:26: warning: conflicting types for built-in function 
> `memset'
> make: *** [xlwmenu.o] Error 1

This should be fixed in the next release.  The patch below should fix
it for you:

Index: src/s/sol2-5.h
RCS file: /cvs/emacs/src/s/sol2-5.h,v
retrieving revision
retrieving revision
diff -u -r1.13.14.1 -r1.13.14.2
--- src/s/sol2-5.h      5 Dec 2001 18:32:15 -0000
+++ src/s/sol2-5.h      19 Apr 2002 11:36:16 -0000
@@ -29,6 +29,18 @@
 #define HAVE_VFORK 1
+/* Newer versions of Solaris have bcopy etc. as functions, with
+   prototypes in strings.h.  They lose if the defines from usg5-4.h
+   are visible, which happens when X headers are included.  */
+#ifdef HAVE_BCOPY
+#undef bcopy
+#undef bzero
+#undef bcmp
+#ifndef NOT_C_CODE
+#include <strings.h>
 #if 0 /* A recent patch in unexelf.c should eliminate the need for this.  */
 /* Don't use the shared libraries for -lXt and -lXaw,
    to work around a linker bug in Solaris 2.5.

reply via email to

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