GNU configure and rpl_malloc (Re: adtool-1.2 broken on ia64)
Marcel Moolenaar
marcel at xcllnt.net
Thu Nov 27 20:55:56 PST 2003
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 at xcllnt.net
More information about the freebsd-ia64
mailing list