From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: autoconf bcopy and bzero Date: Sat, 26 Jan 2008 11:53:13 -0800 Message-ID: <200801261953.m0QJrD8O022596@sallyv1.ics.uci.edu> References: <200801261833.m0QIXZ2R024158@sallyv1.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201377284 22428 80.91.229.12 (26 Jan 2008 19:54:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Jan 2008 19:54:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 26 20:55:03 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JIr7G-0003X5-8B for ged-emacs-devel@m.gmane.org; Sat, 26 Jan 2008 20:55:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIr6p-00081g-SI for ged-emacs-devel@m.gmane.org; Sat, 26 Jan 2008 14:54:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JIr6m-00080u-EC for emacs-devel@gnu.org; Sat, 26 Jan 2008 14:54:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JIr6h-0007zZ-JD for emacs-devel@gnu.org; Sat, 26 Jan 2008 14:54:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIr6h-0007zW-Cj for emacs-devel@gnu.org; Sat, 26 Jan 2008 14:54:27 -0500 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1JIr6g-00036F-Ut for emacs-devel@gnu.org; Sat, 26 Jan 2008 14:54:27 -0500 X-ICS-MailScanner-Watermark: 1201981993.62055@AcoyYSucbCK+nNflzhpvBg Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m0QJrD8O022596; Sat, 26 Jan 2008 11:53:13 -0800 (PST) Original-Lines: 32 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.363, required 5, autolearn=disabled, ALL_TRUSTED -1.44, TW_CP 0.08) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:87600 Archived-At: Tom Tromey writes: > >>>>> "Dan" == Dan Nicolaescu writes: > > Dan> uclibc uses #define to define bcopy and bzero in > Dan> emacs' configure script decides that bcopy and bzero are not available > Dan> and then #defines them in config.h. > > Can you look in your config.log to see why the existing bcopy test > failed? I think it should work ok. The autoconf test does not include , so it can't see definitions for bzero/bcopy. config.h does include > Dan> In file included from frame.c:22: > Dan> ./config.h:1159:1: warning: "bcopy" redefined > Dan> In file included from ./config.h:1096, > Dan> from frame.c:22: > Dan> /usr/include/string.h:329:1: warning: this is the location of the > Dan> previous definition > > One way to get rid of the warning is to '#undef bcopy' before defining > it. Alternatively, the code could read: > > #if !defined HAVE_BCOPY && !defined bcopy > #define bcopy(a,b,s) memcpy (b,a,s) > #endif That's the obvious think to do, but is it correct?