rethinkdb_rebirth icon indicating copy to clipboard operation
rethinkdb_rebirth copied to clipboard

Build fails on s2.so

Open factormaarten opened this issue 6 years ago • 1 comments

Hi there, I'm getting this error when I make the build:

default: [116/426] CC build/release/obj/rdb_protocol/geo/s2/s2.o default: In file included from src/rdb_protocol/geo/s2/s2.cc:197:0: default: ./src/rdb_protocol/geo/s2/util/math/exactfloat/exactfloat.h:502:10: error: field ‘bn_’ has incomplete type ‘BIGNUM {aka bignum_st}’ default: BIGNUM bn_; default: ^~~ default: In file included from /usr/include/openssl/bn.h:19:0, default: from ./src/rdb_protocol/geo/s2/util/math/exactfloat/exactfloat.h:103, default: from src/rdb_protocol/geo/s2/s2.cc:197: default: /usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of ‘BIGNUM {aka struct bignum_st}’ default: typedef struct bignum_st BIGNUM; default: ^~~~~~~~~ default: In file included from src/rdb_protocol/geo/s2/s2.cc:197:0: default: ./src/rdb_protocol/geo/s2/util/math/exactfloat/exactfloat.h: In constructor ‘geo::ExactFloat::ExactFloat()’: default: ./src/rdb_protocol/geo/s2/util/math/exactfloat/exactfloat.h:562:3: error: ‘BN_init’ was not declared in this scope default: BN_init(&bn_); default: ^~~~~~~ default: ./src/rdb_protocol/geo/s2/util/math/exactfloat/exactfloat.h:562:3: note: suggested alternative: ‘BN_print’ default: BN_init(&bn_); default: ^~~~~~~ default: BN_print default: src/build.mk:390: recipe for target 'build/release/obj/rdb_protocol/geo/s2/s2.o' failed

factormaarten avatar Nov 18 '18 19:11 factormaarten

It seems like BN_init was removed in openssl 1.1.0 > and needs to be replaced with BN_new

factormaarten avatar Nov 18 '18 19:11 factormaarten