Skip to main content

EnsureLowS

./configure --with-incompatible-bdb
...
$ MAKEOPTS="-j9" make                
Making all in src
make[1]: Entering directory '/home/airece/atbcoin/src'
make[2]: Entering directory '/home/airece/atbcoin/src'
make[3]: Entering directory '/home/airece/atbcoin/src/secp256k1'
make[3]: Leaving directory '/home/airece/atbcoin/src/secp256k1'
  CXX      libbitcoin_common_a-key.o
key.cpp: In function 'bool EnsureLowS(std::vector<unsigned char>&)':
key.cpp:156:19: error: invalid use of incomplete type 'ECDSA_SIG {aka struct ECDSA_SIG_st}'
     if (BN_cmp(sig->s, halforder) > 0) {
                   ^~
In file included from /usr/include/openssl/ecdsa.h:10:0,
                 from key.cpp:18:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of 'ECDSA_SIG {aka struct ECDSA_SIG_st}'
 typedef struct ECDSA_SIG_st ECDSA_SIG;
                ^~~~~~~~~~~~
key.cpp:158:19: error: invalid use of incomplete type 'ECDSA_SIG {aka struct ECDSA_SIG_st}'
         BN_sub(sig->s, order, sig->s);
                   ^~
In file included from /usr/include/openssl/ecdsa.h:10:0,
                 from key.cpp:18:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of 'ECDSA_SIG {aka struct ECDSA_SIG_st}'
 typedef struct ECDSA_SIG_st ECDSA_SIG;
                ^~~~~~~~~~~~
key.cpp:158:34: error: invalid use of incomplete type 'ECDSA_SIG {aka struct ECDSA_SIG_st}'
         BN_sub(sig->s, order, sig->s);
                                  ^~
In file included from /usr/include/openssl/ecdsa.h:10:0,
                 from key.cpp:18:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of 'ECDSA_SIG {aka struct ECDSA_SIG_st}'
 typedef struct ECDSA_SIG_st ECDSA_SIG;
                ^~~~~~~~~~~~
Makefile:4767: recipe for target 'libbitcoin_common_a-key.o' failed
make[2]: *** [libbitcoin_common_a-key.o] Error 1
make[2]: Leaving directory '/home/airece/atbcoin/src'
Makefile:8615: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/airece/atbcoin/src'
Makefile:679: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1