charm icon indicating copy to clipboard operation
charm copied to clipboard

charm-crypto compilation fails with OpenSSL 1.1.1

Open purchawek opened this issue 5 years ago • 3 comments

During compilation with make (directly from sources here on master) i get the following compilation error:

charm/core/math/integer/integermodule.c:130:6: error: dereferencing pointer to incomplete type ‘BIGNUM’ {aka ‘struct bignum_st’}
  if(p->neg != 0) {

Changing it to use BN_is_negative fixes the error but I've seen that this approach was also erroneous as presented in #194 .

I believe that what should be done is conditional compilation based on the version of OpenSSL installed and supporting both APIs simultaneously but I may be wrong. If you agree, I may try to do this.

purchawek avatar Mar 08 '19 16:03 purchawek

@purchawek Yeah, that is correct. And I was trying to figure out which versions of OpenSSL BN_is_negative is missing. Please go ahead. Thanks!

jakinyele avatar Mar 08 '19 16:03 jakinyele

Hey guys, @purchawek @jakinyele Even I am facing the same issue, did we find the solution lately? I was using openSSL 1.0.0 and even after upgrading to 1.1.1 there is no help Thanks!

VikasGowdaLV avatar Jul 13 '23 06:07 VikasGowdaLV