make -f makefile.unix
bin/sh ../share/genbuild.sh obj/build.h
g++ -c -O2  -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -DUSE_SECP256K1 -I/home/schernikau/crave/src -I/home/schernikau/crave/src/obj -DUSE_UPNP=0 -DENABLE_WALLET -I/home/schernikau/crave/src/leveldb/include -I/home/schernikau/crave/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/key.d -o obj/key.o key.cpp
key.cpp: In member function bool CKey::SignCompact(const uint256&, std::vector<unsigned char>&) const:
key.cpp:552:17: warning: unused variable ret [-Wunused-variable]
         if (int ret = secp256k1_ecdsa_sign_compact(instance_of_csecp256k1.ctx, hash.begin(), &vchSig[1], begin(), secp256k1_nonce_function_rfc6979, NULL, &rec))
                 ^
key.cpp: In member function bool CPubKey::VerifyCompact(const uint256&, const std::vector<unsigned char>&) const:
key.cpp:632:10: warning: unused variable fComp [-Wunused-variable]
     bool fComp = IsCompressed();
          ^
key.cpp: In member function bool CPubKey::Decompress():
key.cpp:669:104: error: cannot convert int* to unsigned char* for argument 3 to int secp256k1_ec_pubkey_decompress(const secp256k1_context_t*, const unsigned char*, unsigned char*, int*)
     int ret = secp256k1_ec_pubkey_decompress(instance_of_csecp256k1.ctx, (unsigned char*)begin(), &clen);
                                                                                                        ^
make: *** [obj/key.o] Error 1
Any idea?
Newest secp256k1 is installed.
latest version won't work, you have to use commit 729badf (
https://github.com/bitcoin/secp256k1/commit/729badff148a00aebedce663e4ebb5a039170d9b)