Hi, when I try to install bplib on Ubuntu 22.04, I get this error:
bplib/src/bp_fp2.c: In function ‘FP2_zero’:
bplib/src/bp_fp2.c:111:9: error: invalid use of void expression
111 | if (!BN_zero(a->f[0]) || !BN_zero(a->f[1]))
| ^
bplib/src/bp_fp2.c:111:30: error: invalid use of void expression
111 | if (!BN_zero(a->f[0]) || !BN_zero(a->f[1]))
| ^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
[end of output]
I searched for this problem online and it seems that OpenSSL changed the behavior of BN_zero which no longer returns a success integer. They essentially changed BN_zero to do what BN_zero_ex used to do.
For an ultra quick fix I changed the following and it seems to work:
Hi, when I try to install bplib on Ubuntu 22.04, I get this error:
I searched for this problem online and it seems that OpenSSL changed the behavior of
BN_zero
which no longer returns a success integer. They essentially changedBN_zero
to do whatBN_zero_ex
used to do.For an ultra quick fix I changed the following and it seems to work: