basho/bitcask

Bitcask cannot compile, stdbool.h not available on Solaris10

Closed this issue · 1 comments

The following error happens on compile on Solaris 10u9.

Compiling /export/home/buildbot/masters/riak/riak-build-solaris-10u9-64/build/distdir/riak-2.0.0pre2/deps/bitcask/c_src/bitcask_nifs.c
In file included from /export/home/buildbot/masters/riak/riak-build-solaris-10u9-64/build/distdir/riak-2.0.0pre2/deps/bitcask/c_src/bitcask_nifs.c:39:
/usr/include/stdbool.h:42:2: #error "Use of <stdbool.h> is valid only in a c99 compilation environment."

It should be available, the compiler flags are probably just incorrect.

Set...

CFLAGS=-std=c99

or

CFLAGS=-std=gnu99