This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Problems building gcc-2.95.1
- To: bug-gcc at gnu dot org
- Subject: Problems building gcc-2.95.1
- From: Peter Breitenlohner <peb at mppmu dot mpg dot de>
- Date: Thu, 30 Sep 1999 18:33:04 +0200 (CEST)
The file gcc-2.95.1.tar.gz (of Aug 16) contains among many other
things the source for the CHILL compiler and this compiler is also
built by default ("make bootstap").
For ix86-linux-gnulibc1 (and may be ix86-linux-gnu as well) this
fails because the compilation of gcc-2.95.1/libchill/basicio.c
yields an error (PATH_MAX undeclared, two times). This was done for
linux-2.2.10.
I have fixed this by adding '#include <sys/param.h>' (see the enclosed
patch). I am, however, not quite sure whether or not this patch can be
safely applied for all targets.
I don't care much for the CHILL compiler, but since it is built by
default, the compilation should certainly not fail!
regards
Peter Breitenlohner <peb@mppmu.mpg.de>
diff -ur gcc-2.95.1.orig/libchill/basicio.c gcc-2.95.1/libchill/basicio.c
--- gcc-2.95.1.orig/libchill/basicio.c Mon Jan 11 14:09:11 1999
+++ gcc-2.95.1/libchill/basicio.c Thu Sep 30 14:10:53 1999
@@ -27,6 +27,7 @@
the executable file might be covered by the GNU General Public License. */
#include <sys/types.h>
+#include <sys/param.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>