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: building 21.2 on sparc-sun-solaris2.7, conflicting types for memmove Date: Wed, 31 Jul 2002 13:46:41 +0300 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <2950-Wed31Jul2002134640+0300-eliz@is.elta.co.il> References: <200207302022.g6UKMEm27030@stoker.cs.ubc.ca> Reply-To: Eli Zaretskii NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1028115210 27402 127.0.0.1 (31 Jul 2002 11:33:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 31 Jul 2002 11:33:30 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17ZrjN-00077r-00 for ; Wed, 31 Jul 2002 13:33:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17Zrjp-0003EB-00; Wed, 31 Jul 2002 07:33:57 -0400 Original-Received: from freya.inter.net.il ([192.114.186.14]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17Zr1t-0006ta-00 for ; Wed, 31 Jul 2002 06:48:33 -0400 Original-Received: from Zaretsky ([80.230.2.40]) by freya.inter.net.il (Mirapoint Messaging Server MOS 3.1.0.58-GA) with ESMTP id BPW23786; Wed, 31 Jul 2002 13:48:09 +0300 (IDT) Original-To: mcw@cs.ubc.ca X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-Reply-To: <200207302022.g6UKMEm27030@stoker.cs.ubc.ca> (message from Matthew Wilkins on Tue, 30 Jul 2002 13:22:14 -0700) Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 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:3025 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3025 > From: Matthew Wilkins > Date: Tue, 30 Jul 2002 13:22:14 -0700 > > the error is: > gmake[2]: Entering directory `/cs/local/src/gnu/emacs/emacs-21.2/obj-SunOS-5.7-sparc/lwlib' > gcc -c -I/usr/openwin/include -I/usr/dt/include -g -O2 > -DEMACS_BITMAP_FILES -DHAVE_CONFIG_H -Demacs -I. -I../src > -I/cs/local/src/gnu/emacs/emacs-21.2/lwlib > -I/cs/local/src/gnu/emacs/emacs-21.2/lwlib/../src > /cs/local/src/gnu/emacs/emacs-21.2/lwlib/xlwmenu.c > In file included from /usr/openwin/include/X11/Xos.h:81, > from /cs/local/src/gnu/emacs/emacs-21.2/lwlib/xlwmenu.c:32: > /usr/include/strings.h:25: conflicting types for `memmove' > /usr/include/string.h:44: 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' > gmake[2]: *** [xlwmenu.o] Error 1 This is a known problem, it is fixed for the next release. Please try this patch: Index: src/s/sol2-5.h =================================================================== RCS file: /cvs/emacs/src/s/sol2-5.h,v retrieving revision 1.13 diff -c -r1.13 sol2-5.h *** src/s/sol2-5.h 22 Nov 2000 10:37:31 -0000 1.13 --- src/s/sol2-5.h 17 Apr 2002 18:00:03 -0000 *************** *** 24,29 **** --- 24,38 ---- #undef USE_MMAP_FOR_BUFFERS + #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.