From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.help Subject: Re: need help to install emacs Date: Thu, 22 Aug 2002 19:56:03 +0300 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <8011-Thu22Aug2002195603+0300-eliz@is.elta.co.il> References: <5.1.0.14.2.20020822093227.00a76198@casbah.it.northwestern.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1030035189 19667 127.0.0.1 (22 Aug 2002 16:53:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 22 Aug 2002 16:53:09 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17hvCm-000574-00 for ; Thu, 22 Aug 2002 18:53:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17hvDr-0005JU-00; Thu, 22 Aug 2002 12:54:15 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17hvDU-0005Gi-00 for help-gnu-emacs@gnu.org; Thu, 22 Aug 2002 12:53:52 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17hvDM-0005BC-00 for help-gnu-emacs@gnu.org; Thu, 22 Aug 2002 12:53:51 -0400 Original-Received: from balder.inter.net.il ([192.114.186.15]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17hvDM-0005B7-00 for help-gnu-emacs@gnu.org; Thu, 22 Aug 2002 12:53:44 -0400 Original-Received: from Zaretsky ([80.230.2.40]) by balder.inter.net.il (Mirapoint Messaging Server MOS 3.1.0.58-GA) with ESMTP id BRM88454; Thu, 22 Aug 2002 19:53:28 +0300 (IDT) Original-To: x-dong@northwestern.edu X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 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) Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:855 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:855 > From: Xiaoxia Dong > 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 +#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.