Coda File System

Build Error on linux-2.2.1

From: <donthomp_at_luna.cs.unm.edu>
Date: Tue, 16 Feb 1999 18:07:40 -0700 (MST)
I'm attempting to build coda-5.0.1 source on a linux 2.2.1 kernel system
using libc5 libraries. I get identical errors using gcc-2.7.2.3 and
egcs-1.1.1 . First it couldn't seem to find readline.h where its installed
in /usr/local/include/readline/readline.h . So I simply hardcoded to the
path in the #include for readline.h in parser.c . That fixed that...but
then I developed this error,

<---- Leaving base.
----> Entering mlwp
make[2]: Entering directory `/usr/local2/pkg/build/coda-obj/lib-src/mlwp'
cc -DLWPDEBUG  -g -MD   -I. -I../../../coda-5.0.1/lib-src/mlwp -I/usr/local2/pkg/build/coda-obj/include  -Wall  -DOLDLWP  -c ../../../coda-5.0.1/lib-src/mlwp/lwp.c
../../../coda-5.0.1/lib-src/mlwp/lwp.c: In function `LWP_CreateProcess':
../../../coda-5.0.1/lib-src/mlwp/lwp.c:553: `MAP_FAILED' undeclared (first use in this function)
../../../coda-5.0.1/lib-src/mlwp/lwp.c:553: (Each undeclared identifier is reported only once
../../../coda-5.0.1/lib-src/mlwp/lwp.c:553: for each function it appears in.)
../../../coda-5.0.1/lib-src/mlwp/lwp.c: At top level:
../../../coda-5.0.1/lib-src/mlwp/lwp.c:784: parse error before `register_t'
../../../coda-5.0.1/lib-src/mlwp/lwp.c:784: warning: no semicolon at end of struct or union
../../../coda-5.0.1/lib-src/mlwp/lwp.c:785: warning: type defaults to `int' in declaration of `esi'
../../../coda-5.0.1/lib-src/mlwp/lwp.c:785: warning: data definition has no type or storage class
../../../coda-5.0.1/lib-src/mlwp/lwp.c:786: parse error before `ebp'
../../../coda-5.0.1/lib-src/mlwp/lwp.c:786: warning: type defaults to `int' in declaration of `ebp'
../../../coda-5.0.1/lib-src/mlwp/lwp.c:786: warning: data definition has no type or storage class
../../../coda-5.0.1/lib-src/mlwp/lwp.c:787: parse error before `unused'
../../../coda-5.0.1/lib-src/mlwp/lwp.c:787: warning: type defaults to `int' in declaration of `unused'
../../../coda-5.0.1/lib-src/mlwp/lwp.c:787: warning: data definition has no type or storage class
../../../coda-5.0.1/lib-src/mlwp/lwp.c:788: parse error before `ebx'
../../../coda-5.0.1/lib-src/mlwp/lwp.c:788: warning: type defaults to `int' in declaration of `ebx'
../../../coda-5.0.1/lib-src/mlwp/lwp.c:788: warning: data definition has no type or storage class
../../../coda-5.0.1/lib-src/mlwp/lwp.c:789: parse error before `edx'
../../../coda-5.0.1/lib-src/mlwp/lwp.c:789: warning: type defaults to `int' in declaration of `edx'
../../../coda-5.0.1/lib-src/mlwp/lwp.c:789: warning: data definition has no type or storage class
../../../coda-5.0.1/lib-src/mlwp/lwp.c:790: parse error before `ecx'
../../../coda-5.0.1/lib-src/mlwp/lwp.c:790: warning: type defaults to `int' in declaration of `ecx'
../../../coda-5.0.1/lib-src/mlwp/lwp.c:790: warning: data definition has no type or storage class
../../../coda-5.0.1/lib-src/mlwp/lwp.c:791: parse error before `eax'
../../../coda-5.0.1/lib-src/mlwp/lwp.c:791: warning: type defaults to `int' in declaration of `eax'
../../../coda-5.0.1/lib-src/mlwp/lwp.c:791: warning: data definition has no type or storage class
../../../coda-5.0.1/lib-src/mlwp/lwp.c: In function `Trace_Swapped_Stack':
../../../coda-5.0.1/lib-src/mlwp/lwp.c:800: storage size of `reg' isn't known
../../../coda-5.0.1/lib-src/mlwp/lwp.c:801: `register_t' undeclared (first use in this function)
../../../coda-5.0.1/lib-src/mlwp/lwp.c:801: parse error before `ip'
../../../coda-5.0.1/lib-src/mlwp/lwp.c:805: `esp' undeclared (first use in this function)
../../../coda-5.0.1/lib-src/mlwp/lwp.c:805: parse error before `top'
../../../coda-5.0.1/lib-src/mlwp/lwp.c:809: sizeof applied to an incomplete type
../../../coda-5.0.1/lib-src/mlwp/lwp.c:812: `ip' undeclared (first use in this function)
../../../coda-5.0.1/lib-src/mlwp/lwp.c:812: parse error before `)'
../../../coda-5.0.1/lib-src/mlwp/lwp.c:830: parse error before `)'
../../../coda-5.0.1/lib-src/mlwp/lwp.c:833: parse error before `)'
../../../coda-5.0.1/lib-src/mlwp/lwp.c:800: warning: unused variable `reg'
make[2]: *** [lwp.o] Error 1
make[2]: Leaving directory `/usr/local2/pkg/build/coda-obj/lib-src/mlwp'
----> Error in mlwp
make[1]: *** [Coda] Error 1
make[1]: Leaving directory `/usr/local2/pkg/build/coda-obj/lib-src'
----> Error in lib-src
make: *** [Coda] Error 1

I can't seem to find MAP_FAILED on any of my system header files, so I'm
not exactly sure how to resolve the problem. Am I missing a header file
someplace or doing something else wrong. Any help is appreciated.

-Donald Thompson
Received on 1999-02-16 20:07:42