all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Eli Zaretskii" <eliz@is.elta.co.il>
Cc: help-gnu-emacs@gnu.org
Subject: Re: need help to install emacs
Date: Thu, 22 Aug 2002 19:56:03 +0300	[thread overview]
Message-ID: <8011-Thu22Aug2002195603+0300-eliz@is.elta.co.il> (raw)
In-Reply-To: <5.1.0.14.2.20020822093227.00a76198@casbah.it.northwestern.edu> (message from Xiaoxia Dong on Thu, 22 Aug 2002 09:35:18 -0500)

> From: Xiaoxia Dong <x-dong@northwestern.edu>
> 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 1.13.14.1
retrieving revision 1.13.14.2
diff -u -r1.13.14.1 -r1.13.14.2
--- 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	other threads:[~2002-08-22 16:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-22 14:35 need help to install emacs Xiaoxia Dong
2002-08-22 16:56 ` Eli Zaretskii [this message]
2002-08-22 19:41   ` images Randy Zelick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8011-Thu22Aug2002195603+0300-eliz@is.elta.co.il \
    --to=eliz@is.elta.co.il \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.