rethinkdb / rethinkdb_rebirth

The open-source database for the realtime web.
https://rethinkdb.com
Other
1k stars 42 forks source link

Build fails on s2.so #61

Open factormaarten opened 5 years ago

factormaarten commented 5 years ago

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/rdbprotocol/geo/s2/util/math/exactfloat/exactfloat.h:502:10: error: field ‘bn’ has incomplete type ‘BIGNUM {aka bignumst}’ 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: BNinit(&bn); default: ^~~ default: ./src/rdb_protocol/geo/s2/util/math/exactfloat/exactfloat.h:562:3: note: suggested alternative: ‘BN_print’ default: BNinit(&bn); default: ^~~ default: BN_print default: src/build.mk:390: recipe for target 'build/release/obj/rdb_protocol/geo/s2/s2.o' failed

factormaarten commented 5 years ago

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