From owner-freebsd-ia64@FreeBSD.ORG Thu Nov 27 22:54:10 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 0AC1016A4CE for ; Thu, 27 Nov 2003 22:54:10 -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 D5BBD43FA3 for ; Thu, 27 Nov 2003 22:54:08 -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 hAS6s8EG053925; Thu, 27 Nov 2003 22:54:08 -0800 (PST) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) hAS6s8Wx017012; Thu, 27 Nov 2003 22:54:08 -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 hAS6s8ev017011; Thu, 27 Nov 2003 22:54:08 -0800 (PST) (envelope-from marcel) Date: Thu, 27 Nov 2003 22:54:08 -0800 From: Marcel Moolenaar To: Kris Kennaway Message-ID: <20031128065408.GA16995@dhcp01.pn.xcllnt.net> References: <20031127132731.GK67207@xor.obsecurity.org> <20031127183129.V30085@randomservers> <20031128032723.GA77578@xor.obsecurity.org> <20031128045554.GB16503@dhcp01.pn.xcllnt.net> <20031128060214.GA79146@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031128060214.GA79146@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 06:54:10 -0000 On Thu, Nov 27, 2003 at 10:02:14PM -0800, Kris Kennaway wrote: > On Thu, Nov 27, 2003 at 08:55:54PM -0800, Marcel Moolenaar wrote: > > > 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. > > Ick..that's a lot of bogusness. Is this a design choice? It may be > worthwhile to revert it for now so that all those ports don't fail. I think it's an unfortunate side-effect of adapting to the pagesize. We never get to call malloc_init(), because malloc(0) takes a shortcut out (i.e it doesn't call imalloc()). Anyway: I removed the particular ia64 behaviour on the ia64 branch in perforce. I probably want to get this into 5.2. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net