system.c doesn't compile

2000-03-30 Thread Josef Svenningsson

Hi!

Building from source, checked out this Monday. I get the following:

==fptools== gmake all --no-print-directory -r;
 in /users/cs/josefs/fpbuild/ghc/lib/std/cbits

../../../driver/ghc-inplace -O -I../../../includes -I../../../rts  -Wall
-static-c system.c -o system.o
system.c:71: warning: implicit declaration of function `vfork'
system.c:83: variable `tv_null' has initializer but incomplete type
system.c:83: warning: excess elements in struct initializer
system.c:83: warning: (near initialization for `tv_null')
system.c:83: warning: excess elements in struct initializer
system.c:83: warning: (near initialization for `tv_null')
system.c:83: storage size of `tv_null' isn't known
system.c:84: storage size of `itv' isn't known
system.c:87: warning: implicit declaration of function `setitimer'
system.c:87: `ITIMER_REAL' undeclared (first use in this function)
system.c:87: (Each undeclared identifier is reported only once
system.c:87: for each function it appears in.)
system.c:88: `ITIMER_VIRTUAL' undeclared (first use in this function)
system.c:89: `ITIMER_PROF' undeclared (first use in this function)
gmake[4]: *** [system.o] Error 1
gmake[3]: *** [all] Error 1
gmake[2]: *** [all] Error 1
gmake[1]: *** [all] Error 1
gmake: *** [all] Error 1

I'm compiling on a sparc, running solaris2.6.
 gcc -v
gcc version 2.95.2 19991024 (release)

/Josef





Re: system.c doesn't compile

2000-03-30 Thread George Russell

I had this bug on Monday, but it's been fixed.  Download the binary release
(4.06) and try again with the latest sources.




ghc/lib/cbits/system.c doesn't compile

2000-03-27 Thread George Russell

==fptools== gmake all --no-print-directory -r;
 in /usr/local/pub-bkb/ghc/fptools/ghc/lib/std/cbits

../../../driver/ghc-inplace -O -I../../../includes -I../../../rts  -Wall -static-c 
system.c -o system.o
system.c:71: warning: implicit declaration of function `vfork'
system.c:83: variable `tv_null' has initializer but incomplete type
system.c:83: warning: excess elements in struct initializer
system.c:83: warning: (near initialization for `tv_null')
system.c:83: warning: excess elements in struct initializer
system.c:83: warning: (near initialization for `tv_null')
system.c:83: storage size of `tv_null' isn't known
system.c:84: storage size of `itv' isn't known
system.c:87: warning: implicit declaration of function `setitimer'
system.c:87: `ITIMER_REAL' undeclared (first use in this function)
system.c:87: (Each undeclared identifier is reported only once
system.c:87: for each function it appears in.)
system.c:88: `ITIMER_VIRTUAL' undeclared (first use in this function)
system.c:89: `ITIMER_PROF' undeclared (first use in this function)
gmake[4]: *** [system.o] Error 1
gmake[3]: *** [all] Error 1
gmake[2]: *** [all] Error 1
gmake[1]: *** [all] Error 1
gmake: *** [all] Error 1