From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: Re: emacs 21.2 failed to compile Date: Fri, 03 May 2002 19:13:03 +0300 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <3CD2B70F.4DFE6580@is.elta.co.il> References: <3CD2978C.9080608@qub.ac.uk> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1020442533 16156 127.0.0.1 (3 May 2002 16:15:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 3 May 2002 16:15:33 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 173fiX-0004CT-00 for ; Fri, 03 May 2002 18:15:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 173fiV-0005jD-00; Fri, 03 May 2002 12:15:31 -0400 Original-Received: from chx400.switch.ch ([130.59.10.2]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 173fhH-0005ev-00 for ; Fri, 03 May 2002 12:14:16 -0400 Original-Received: from mail.fu-berlin.de ([160.45.11.165]) by chx400.switch.ch with esmtp (Exim 3.20 #1) id 173fhF-0001Cd-00 for gnu-emacs-bug@moderators.isc.org; Fri, 03 May 2002 18:14:13 +0200 Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Fri, 3 May 2002 18:14:11 +0200 (MEST) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Fri, 3 May 2002 18:14:10 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 80.230.2.40!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 42 X-Orig-NNTP-Posting-Host: 80.230.2.40 X-Orig-X-Trace: fu-berlin.de 1020442449 14011646 80.230.2.40 (16 [61365]) X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:1137 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:1137 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 +#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.