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

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

Re: compiling on Sun Blade 100 running Solaris 2.8


From: Eli Zaretskii
Subject: Re: compiling on Sun Blade 100 running Solaris 2.8
Date: Wed, 10 Jul 2002 08:03:34 +0300

> From: "\"Root at morse\"" <fqgouvea@colby.edu>
> Date: Tue, 9 Jul 2002 13:26:54 -0400 (EDT)
> 
> gcc -c   -I/usr/openwin/include  -I/usr/dt/include   -g -O2  
> -DEMACS_BITMAP_FILES -DHAVE_CONFIG_H -Demacs  -I. -I../src 
> -I/usr/local/src/gnu/emacs-21.2/lwlib -I 
> /usr/local/src/gnu/emacs-21.2/lwlib/../src xlwmenu.c
> In file included from /usr/openwin/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 numeric constant

Thank you for your report.  I think this is already fixed for the
next release; please try the patch below and see if it solves the
problem:

--- src/s/sol2-5.h      5 Dec 2001 18:32:15 -0000       1.13.14.1
+++ src/s/sol2-5.h      19 Apr 2002 11:36:16 -0000      1.13.14.2
@@ -29,6 +29,18 @@
 #define HAVE_VFORK 1
 #endif
 
+/* 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>
+#endif
+#endif
+
 #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]