Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启用 openssl 编译错误 #237

Closed
star-hengxing opened this issue Sep 24, 2023 · 8 comments
Closed

启用 openssl 编译错误 #237

star-hengxing opened this issue Sep 24, 2023 · 8 comments

Comments

@star-hengxing
Copy link

add_requires("tbox", {debug = true, configs = {openssl = true}})
src\tbox\network\impl\ssl\openssl.c(110): error C2664: 'int BIO_meth_set_ctrl(BIO_METHOD *,long (__cdecl *)(BIO *,int,long,void *))': cannot convert argument 2 from 'tb_long_t (__cdecl *)(BIO *,tb_int_t,tb_long_t,tb_pointer_t)' to 'long (__cdecl *)(BIO *,int,long,void *)'
src\tbox\network\impl\ssl\openssl.c(110): note: None of the functions with this name in scope match the target type
C:\Users\star\AppData\Local\.xmake\packages\o\openssl\1.1.1-t\9458079689e342b58f2f2e8d4b2fb860\include\openssl/bio.h(786): note: see declaration of 'BIO_meth_set_ctrl'
src\tbox\network\impl\ssl\openssl.c(110): note: while trying to match the argument list '(BIO_METHOD *, overloaded-function)'
src\tbox\network\impl\ssl\openssl.c(341): warning C4244: 'argument': conversion from 'tb_size_t' to 'tb_int_t', possible loss of data
src\tbox\network\impl\ssl\openssl.c(520): warning C4244: 'argument': conversion from 'tb_long_t' to 'int', possible loss of data
src\tbox\network\impl\ssl\openssl.c(618): warning C4244: 'argument': conversion from 'tb_long_t' to 'int', possible loss of data
src\tbox\network\impl\ssl\openssl.c(668): warning C4244: 'argument': conversion from 'tb_size_t' to 'int', possible loss of data
src\tbox\network\impl\ssl\openssl.c(677): warning C4244: 'argument': conversion from 'tb_long_t' to 'int', possible loss of data
src\tbox\network\impl\ssl\openssl.c(729): warning C4244: 'argument': conversion from 'tb_size_t' to 'int', possible loss of data
src\tbox\network\impl\ssl\openssl.c(738): warning C4244: 'argument': conversion from 'tb_long_t' to 'int', possible loss of data
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: Enable openssl compilation error

waruqi added a commit that referenced this issue Sep 24, 2023
@waruqi
Copy link
Member

waruqi commented Sep 24, 2023

再试试 dev

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Try dev again

@star-hengxing
Copy link
Author

可能还要改改= =

src\tbox\network\impl\ssl\openssl.c(313): error C2220: the following warning is treated as an error
src\tbox\network\impl\ssl\openssl.c(313): warning C4244: 'argument': conversion from 'tb_size_t' to 'int', possible loss of data
src\tbox\network\impl\ssl\openssl.c(480): warning C4244: 'argument': conversion from 'tb_long_t' to 'int', possible loss of data
src\tbox\network\impl\ssl\openssl.c(566): warning C4244: 'argument': conversion from 'tb_long_t' to 'int', possible loss of data
src\tbox\network\impl\ssl\openssl.c(614): warning C4244: 'argument': conversion from 'tb_size_t' to 'int', possible loss of data
src\tbox\network\impl\ssl\openssl.c(622): warning C4244: 'argument': conversion from 'tb_long_t' to 'int', possible loss of data
src\tbox\network\impl\ssl\openssl.c(674): warning C4244: 'argument': conversion from 'tb_size_t' to 'int', possible loss of data
src\tbox\network\impl\ssl\openssl.c(683): warning C4244: 'argument': conversion from 'tb_long_t' to 'int', possible loss of data

@waruqi
Copy link
Member

waruqi commented Sep 26, 2023

再试试

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


try again

@star-hengxing
Copy link
Author

可以了

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


That's it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants