From owner-freebsd-ia64@FreeBSD.ORG Thu Nov 27 20:55:56 2003 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2651C16A4CE for ; Thu, 27 Nov 2003 20:55:56 -0800 (PST) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04CB243FD7 for ; Thu, 27 Nov 2003 20:55:55 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by ns1.xcllnt.net (8.12.9/8.12.9) with ESMTP id hAS4tsEG053496; Thu, 27 Nov 2003 20:55:54 -0800 (PST) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) hAS4tsWx016727; Thu, 27 Nov 2003 20:55:54 -0800 (PST) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.10/8.12.10/Submit) id hAS4tsKs016726; Thu, 27 Nov 2003 20:55:54 -0800 (PST) (envelope-from marcel) Date: Thu, 27 Nov 2003 20:55:54 -0800 From: Marcel Moolenaar To: Kris Kennaway Message-ID: <20031128045554.GB16503@dhcp01.pn.xcllnt.net> References: <20031127132731.GK67207@xor.obsecurity.org> <20031127183129.V30085@randomservers> <20031128032723.GA77578@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031128032723.GA77578@xor.obsecurity.org> User-Agent: Mutt/1.5.4i cc: Joseph Scott cc: ia64@freebsd.org Subject: Re: GNU configure and rpl_malloc (Re: adtool-1.2 broken on ia64) X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Nov 2003 04:55:56 -0000 On Thu, Nov 27, 2003 at 07:27:23PM -0800, Kris Kennaway wrote: > On Thu, Nov 27, 2003 at 06:36:22PM -0800, Joseph Scott wrote: > > > > On Thu, 27 Nov 2003, Kris Kennaway wrote: > > > > -> http://bento.freebsd.org/errorlogs/ia64-5-latest/adtool-1.2.log > > -> > > -> Can you please investigate and/or report to the developers? > > > > I'll take a stab in the dark and try the brute force approach: > > > > --- configure.orig Thu Nov 27 18:30:23 2003 > > +++ configure Thu Nov 27 18:30:39 2003 > > @@ -8032,7 +8032,7 @@ > > LIBOBJS="$LIBOBJS malloc.$ac_objext" > > > > cat >>confdefs.h <<\_ACEOF > > -#define malloc rpl_malloc > > +#define malloc malloc > > _ACEOF > > > > fi > > You know, a lot of ports are failing with this rpl_malloc thing on > ia64 recently. I wonder if GNU configure is misidentifying > FreeBSD/ia64 as some other weird platform, perhaps because of a broken > feature test. It's a broken configure script. The problem is that malloc(0) returns NULL on ia64, which is incompatible with GNU malloc (apparently). This automaticly and bogusly results in the redefinition of malloc as rpl_malloc. On i386, malloc(0) returns 0x800. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net