Subject: Re: Cross compiling on FreeBSD 5.0, malloc.h is deprecated
To: None <current-users@netbsd.org>
From: Aron Stansvik <elvstone@home.se>
List: current-users
Date: 10/28/2003 20:35:17
Ok, thanks for the fast answer.

The steps leading up to this:

# export CVSROOT="anoncvs@anoncvs.fi.NetBSD.org:/cvsroot/netbsd"
# export CVS_RSH="ssh"
# cvs -z3 -P co src
# cd src
# ./build.sh -m i386 -D /usr/home/elvis/misc/netbsd/dest -R /usr/home/elvis/misc/netbsd/release release

And the only file that, from what I can tell (there might be more, but
my compilation bails out), that's affected is:

src/usr.bin/lex/flexdef.h

which on line 40 defines the __STDC__ macro and on line 61 includes the
deprecated header malloc.h. This gives a preprocessor error on my
system:

FreeBSD glorfindel.dose.se 5.0-RELEASE FreeBSD 5.0-RELEASE #7: Sun Sep 28 16:58:55 CEST 2003 root@glorfindel.dose.se:/usr/src/sys/i386/compile/GLORFINDEL  i386

Sincerely,
Aron Stansvik

--
unemployed

On Tue, Oct 28, 2003 at 06:53:11PM +0000, Christos Zoulas wrote:
> In article <20031028184032.GB79864@home.se>,
> Aron Stansvik <elvstone@home.se> wrote:
> 
> Report the files that cause this and we will fix them.
> 
> christos
> 
> >Hey guys.
> >
> >I'm trying to cross compile netbsd-current on FreeBSD 5.0 with gcc
> >3.2.1, but since the code uses the deprecated header malloc.h while
> >still defining the __STDC__ macro, I get an error (#error in
> >/usr/include/malloc.h). Is this a known problem, and if so, what
> >is the preferred way of fixing it?
> >
> >Sincerely,
> >Aron Stansvik
> >
> >--
> >unemployed
> 
> 
>