couchbase / forestdb

A Fast Key-Value Storage Engine Based on Hierarchical B+-Tree Trie
Apache License 2.0
1.29k stars 173 forks source link

Error building on Master branch #21

Closed waleedhammam closed 5 years ago

waleedhammam commented 5 years ago

I did the following steps on ubuntu 18.04

mkdir build
cd build
cmake ../
make all

it produces an error:

/forestdb/utils/debug.cc:88:5: error: ‘ucontext’ was not declared in this scope
     ucontext *u = (ucontext *)context;
     ^~~~~~~~

Screenshot from 2019-05-23 13-31-43

hisundar commented 5 years ago

Looks like you are missing kernel source headers for your OS Could you perhaps try sudo apt-get install linux-headers-$(uname -r) and update if the build issue goes away?

waleedhammam commented 5 years ago

No it didn't work. but it tried with tag v1.2 and worked well