关于MAC下libpomelo2静态库的编译问题,急!

本人遇到如下问题,求大神指点。
使用如下命令编译打包可以正常完成。
:gyp --depth=. pomelo.gyp -Duse_sys_openssl=false -Dno_tls_support=true -Dpomelo_library=static_library
:xcodebuild -project pomelo.xcodeproj -target libpomelo2 -sdk iphoneos10.2

当改为 -Dno_tls_support=false后,就会报错编译不通过。
:gyp --depth=. pomelo.gyp -Duse_sys_openssl=false -Dno_tls_support=false -Dpomelo_library=static_library
:xcodebuild -project pomelo.xcodeproj -target libpomelo2 -sdk iphoneos10.2

报错如下;

deps/openssl/openssl/include/openssl/../../crypto/bn/bn.h:320:2: error: unknown type name 'BN_ULONG'
BN_ULONG d; / Pointer to an array of 'BN_BITS2' bit chunks. /
^
deps/openssl/openssl/include/openssl/../../crypto/bn/bn.h:336:2: error: unknown type name 'BN_ULONG'
BN_ULONG n0[2];/
least significant word(s) of Ni;
^
deps/openssl/openssl/include/openssl/../../crypto/bn/bn.h:440:22: error: a parameter list without types is only allowed in a function
definition
int BN_num_bits_word(BN_ULONG);
^
deps/openssl/openssl/include/openssl/../../crypto/bn/bn.h:483:1: error: unknown type name 'BN_ULONG'
BN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w);
^
deps/openssl/openssl/include/openssl/../../crypto/bn/bn.h:483:39: error: unknown type name 'BN_ULONG'
BN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w);
^
deps/openssl/openssl/include/openssl/../../crypto/bn/bn.h:484:1: error: unknown type name 'BN_ULONG'
BN_ULONG BN_div_word(BIGNUM *a, BN_ULONG w);
^
deps/openssl/openssl/include/openssl/../../crypto/bn/bn.h:484:33: error: unknown type name 'BN_ULONG'
BN_ULONG BN_div_word(BIGNUM *a, BN_ULONG w);
^
deps/openssl/openssl/include/openssl/../../crypto/bn/bn.h:485:28: error: unknown type name 'BN_ULONG'
int BN_mul_word(BIGNUM *a, BN_ULONG w);
^
deps/openssl/openssl/include/openssl/../../crypto/bn/bn.h:486:28: error: unknown type name 'BN_ULONG'
int BN_add_word(BIGNUM *a, BN_ULONG w);
^
deps/openssl/openssl/include/openssl/../../crypto/bn/bn.h:487:28: error: unknown type name 'BN_ULONG'
int BN_sub_word(BIGNUM *a, BN_ULONG w);
^
deps/openssl/openssl/include/openssl/../../crypto/bn/bn.h:488:28: error: unknown type name 'BN_ULONG'
int BN_set_word(BIGNUM *a, BN_ULONG w);
^
deps/openssl/openssl/include/openssl/../../crypto/bn/bn.h:489:1: error: unknown type name 'BN_ULONG'
BN_ULONG BN_get_word(const BIGNUM *a);
^
deps/openssl/openssl/include/openssl/../../crypto/bn/bn.h:504:37: error: unknown type name 'BN_ULONG'
int BN_mod_exp_mont_word(BIGNUM *r, BN_ULONG a, const BIGNUM *p,
^
deps/openssl/openssl/include/openssl/../../crypto/bn/bn.h:541:24: error: unknown type name 'BN_ULONG'
void BN_consttime_swap(BN_ULONG swap, BIGNUM *a, BIGNUM *b, int nwords);
^
deps/openssl/openssl/include/openssl/../../crypto/bn/bn.h:809:1: error: unknown type name 'BN_ULONG'
BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w);
^
deps/openssl/openssl/include/openssl/../../crypto/bn/bn.h:809:27: error: unknown type name 'BN_ULONG'
BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w);
^
deps/openssl/openssl/include/openssl/../../crypto/bn/bn.h:809:47: error: unknown type name 'BN_ULONG'
BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w);
^
deps/openssl/openssl/include/openssl/../../crypto/bn/bn.h:809:70: error: unknown type name 'BN_ULONG'
BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w);
^
deps/openssl/openssl/include/openssl/../../crypto/bn/bn.h:810:1: error: unknown type name 'BN_ULONG'
BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]

* BUILD FAILED *

The following build commands failed:
CompileC build/pomelo.build/Default-iphoneos/libpomelo2.build/Objects-normal/arm64/tr_uv_tls.o src/tr/uv/tr_uv_tls.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/pomelo.build/Default-iphoneos/libpomelo2.build/Objects-normal/arm64/tr_uv_tls_i.o src/tr/uv/tr_uv_tls_i.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler

标签: pomelo 开发求助 libpomelo2
genova 在 3-20 18:54发布 分享到 weibo
回到顶部