gcc-2.95.2, Next 4.2, "gen" programs won't compile
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Tue Nov 30 23:39:00 GMT 1999
> 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
More information about the Gcc-bugs
mailing list