This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-2.95.2, Next 4.2, "gen" programs won't compile
- To: gcc-bugs at gcc dot gnu dot org, mckelvey at fafnir dot com
- Subject: Re: gcc-2.95.2, Next 4.2, "gen" programs won't compile
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Fri, 12 Nov 1999 13:35:22 -0500 (EST)
> From: James McKelvey <mckelvey@fafnir.com>
>
> NeXT Cube running Openstep 4.2.
> gmake CFLAGS='-O2' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2
> -fno-implicit-templates' bootstrap
>
> The "gen" group won't compile because "free" is not defined. I was
> able to
> fix it by adding:
>
> #include <stdlib.h>
>
> You guys will probably fix it though by adding the include to config.h
> and
> hconfig.h.
>
> The "gen" files affected:
>
> genattr.c
> genattrtab.c
> gencodes.c
> genconfig.c
> genemit.c
> genextract.c
> genflags.c
> genopinit.c
> genoutput.c
> genpeep.c
> genrecog.c
>
> There are a few more problems with the gen*'s that are not common to
> all. I will report those separately.
Amost all files, including the gen*.c ones, include system.h. This
file in turn includes system headers when the appropriate HAVE_*_H
macro is defined by the autoconf configure script.
Rather than manually add these headers to each individual file, your
time IMHO would be better spent figuring out why configure/system.h
didn't get stdlib.h, etc, for you.
--Kaveh
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions