From: Kevin W. Hammond (hammond@kwhpc.caseng.com)
Date: 08/13/92


From: hammond@kwhpc.caseng.com (Kevin W. Hammond)
Subject: Errors building tools/build.c
Date: Fri, 14 Aug 1992 03:47:00 GMT

I installed the inc.tar.Z and 0.97pl1inc.tar.Z files you sent me under
/usr, as per your instructions. Once again, I am performing the
build with 0.97 source (no patches) and GCC 2.2.2. I also installed
type symlink from /usr/include/linux to /usr/src/include/linux/include.
I have not replaced the linux include files with the GCC 2.2.2 include
files as is indicated in the README. I also have the -nostdinc in my
Makefile.

When the make reaches tools/build.c, the following errors occur:

In file included from tools/build.c:25:
/usr/include/stdlib.h:55: conflicting types for `div_t'
/usr/include/linux/types.h:68: previous declaration of `div_t'
/usr/include/stdlib.h:62: conflicting types for `ldiv_t'
/usr/include/linux/types.h:69: previous declaration of `ldiv_t'
In file included from /usr/include/unistd.h:188, from tools/build.c:29:
/usr/include/sys/utsname.h:16: `MAXHOSTNAMELEN' undeclared, outside of functions
/usr/include/sys/utsname.h:16: size of array `nodename' has non-integer type
In file included from /usr/include/unistd.h:191, from tools/build.c:29:
/usr/include/signal.h:14: parse error before `SignalHandler'
/usr/include/signal.h:14: warning: data definition has no type or storage class
/usr/include/signal.h:35: parse error before `signal'
/usr/include/signal.h:35: parse error before `__sighandler_t'
/usr/include/signal.h:35: warning: data definition has no type or storage class
tools/build.c: In function `main':
tools/build.c:90: `O_RDONLY' undeclared (first use this function)
tools/build.c:90: (Each undeclared identifier is reported only once
tools/build.c:90: for each function it appears in.)

What would be causing this problem? I'm almost there.... unfortunatly I go on
vacation tomorrow and won't have a chance to test any corrections, but I'll
still be checking my mail to keep updated.

Thanks.

-kwh-

-- 
Kevin W. Hammond
hammond@kwhpc.caseng.com

Looking for a real operating system? Try Linux.

CASE Engineering * 575 W. Madison #1601 * Chicago, IL 60661 * (312)902-2161