cabal install clock
gives this error on FreeBSD 9.0 and 9.1
Building clock-0.3...
Preprocessing library clock-0.3...
[1 of 1] Compiling System.Clock ( System/Clock.hs, dist/build/System/Clock.o )
csec/clock.c: In function 'clock_readtime_processtime':
csec/clock.c:149:9:
error: 'CLOCK_PROCESS_CPUTIME_ID' undeclared (first use in this function)
csec/clock.c:149:9:
note: each undeclared identifier is reported only once for each function it appears in
csec/clock.c: In function 'clock_readres_processtime':
csec/clock.c:184:8:
error: 'CLOCK_PROCESS_CPUTIME_ID' undeclared (first use in this function)
Failed to install clock-0.3
cabal-install: Error: some packages failed to install:
clock-0.3 failed during the building phase. The exception was:
ExitFailure 1
cabal install clock gives this error on FreeBSD 9.0 and 9.1
Building clock-0.3... Preprocessing library clock-0.3... [1 of 1] Compiling System.Clock ( System/Clock.hs, dist/build/System/Clock.o ) csec/clock.c: In function 'clock_readtime_processtime':
csec/clock.c:149:9: error: 'CLOCK_PROCESS_CPUTIME_ID' undeclared (first use in this function)
csec/clock.c:149:9: note: each undeclared identifier is reported only once for each function it appears in csec/clock.c: In function 'clock_readres_processtime':
csec/clock.c:184:8: error: 'CLOCK_PROCESS_CPUTIME_ID' undeclared (first use in this function) Failed to install clock-0.3 cabal-install: Error: some packages failed to install: clock-0.3 failed during the building phase. The exception was: ExitFailure 1