all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@is.elta.co.il>
Subject: Re: emacs 21.2 failed to compile
Date: Fri, 03 May 2002 19:13:03 +0300	[thread overview]
Message-ID: <3CD2B70F.4DFE6580@is.elta.co.il> (raw)
In-Reply-To: 3CD2978C.9080608@qub.ac.uk

Peter van Hoof wrote:
> 
> 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
> gmake[2]: *** [xlwmenu.o] Error 1
> gmake[2]: Leaving directory `/opt/temp/emacs-21.2/lwlib'
> gmake[1]: *** [really-lwlib] Error 2
> gmake[1]: Leaving directory `/opt/temp/emacs-21.2/src'
> gmake: *** [src] Error 2
> 
> The preprocessed file xlwmenu.i.bz2 is attached. It appears that bcopy is
> #define'd to memmove before the prototype of bcopy is read from
> /usr/include/strings.h. This leads to the conflicting types error.

Thank you for your report.  This is already fixed for the next release;
please try the patch below and see if the problem goes away.

--- 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-05-03 16:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-03 13:58 emacs 21.2 failed to compile Peter van Hoof
2002-05-03 16:13 ` Eli Zaretskii [this message]

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=3CD2B70F.4DFE6580@is.elta.co.il \
    --to=eliz@is.elta.co.il \
    /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.