If you're using a SunOS4 system, you'll need to make the following change to `gcc/f/proj.h': edit the line reading
#define FFEPROJ_STRTOUL 1 ...
by replacing the `1' with `0'. Or, you can avoid editing the source by adding
CFLAGS='-DFFEPROJ_STRTOUL=0 -g -O'
to the command line for make
when you invoke it.
(`-g' is the default for `CFLAGS'.)
This causes a minimal version of strtoul()
provided
as part of the g77
distribution to be compiled and
linked into whatever g77
programs need it, since
some systems (like SunOS4 with only the bundled compiler and its
runtime) do not provide this function in their system libraries.
Similarly, a minimal version of bsearch()
is available
and can be enabled by editing a line similar to the one
for strtoul()
above in `gcc/f/proj.h', if
your system libraries lack bsearch()
.
The method of overriding `X_CFLAGS' may also be used.
These are not problems with g77
, which requires an
ANSI C environment.
You should upgrade your system to one that provides
a full ANSI C environment, or encourage the maintainers
of gcc
to provide one to all gcc
-based
compilers in future gcc
distributions.
See section Problems Installing, for more information on
why strtoul()
comes up missing and on approaches
to dealing with this problem that have already been tried.
Go to the first, previous, next, last section, table of contents.