Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make check failure on Debian stretch #1814

Closed
possientis opened this issue Dec 25, 2017 · 6 comments
Closed

make check failure on Debian stretch #1814

possientis opened this issue Dec 25, 2017 · 6 comments

Comments

@possientis
Copy link

possientis commented Dec 25, 2017

I am getting test failures for v0.12.2.2 on Debian stretch:

$ uname -a
 Linux right 4.8.0-1-amd64 #1 SMP Debian 4.8.5-1 (2016-10-28) x86_64 GNU/Linux

$ git checkout v0.12.2.2
$ ./autogen.sh
 ...
 $ ./configure ...
 ....
 $ make
 ....    
 $ make check
 ...

make[4]: Entering directory '/home/john/Libs/dash/src/secp256k1'
  CC       src/tests-tests.o
src/tests.c: In function ‘test_ecdsa_der_parse’:
src/tests.c:3561:52: error: dereferencing pointer to incomplete type ‘ECDSA_SIG {aka struct  ECDSA_SIG_st}’
         valid_openssl = !BN_is_negative(sig_openssl->r) && !BN_is_negative(sig_openssl->s) && BN_num_bits(sig_openssl->r) > 0 && BN_num_bits(sig_openssl->r) <= 256 && BN_num_bits(sig_openssl->s) > 0 && BN_num_bits(sig_openssl->s) <= 256;
                                                ^~
Makefile:931: recipe for target 'src/tests-tests.o' failed

I am guessing this issue is relating to the OpenSSL 1.1API change. A similar issue was highlighted for bitcoin and a fix was provided here

@possientis possientis changed the title Cannot build with Debian stretch make check failure on Debian stretch Dec 25, 2017
@codablock
Copy link

Can't check this as I'm not at my laptop atm. Are you using the depends prefix and did you do a make inside the depends dir?

@possientis
Copy link
Author

possientis commented Dec 25, 2017

Hi, very sorry not sure I understand the question. I simply cloned the github repo, then cd dash then checkout v0.12.2.2 then autogen.sh and configure and make (being understood that configure had the correct LDFLAGS and CPPFLAGS pointing to my build of Berkeley DB). So build was successful but make check failed. All this was done inside dash directory.

@codablock
Copy link

The depends dir contains all dependencies you need to build Dash. You can build the dependencies by calling make inside the depends dir. After that you'll have to use './configure - -prefix=$(pwd)/depends/' to let the build system use these. Can't give you the exact command line atm as I'm on my mobile atm.
I'll later check why it doesn't work with the openssl version of stretch.

@possientis
Copy link
Author

The openssl version of stretch is 1.1 which is known to have non-backward compatible API changes

@codablock
Copy link

#1816 should fix this

@possientis
Copy link
Author

Thanks v much, will be happy to test it when new commit available

@UdjinM6 UdjinM6 closed this as completed Mar 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants