gpt4 book ai didi

linux - 错误 : field 'ctx' has incomplete type EVP_CIPHER_CTX

转载 作者:IT王子 更新时间:2023-10-29 00:41:16 45 4
gpt4 key购买 nike

问题:我需要将 Cepstral(tts 引擎)安装到运行 Debian 8 的 Freeswitch 中。Freeswitch 已经启动并运行,但我需要从源代码构建它,以便它创建 mod_cepstral 模块。

当我运行 make 时,这是我得到的错误:

In file included from ./crypto/include/prng.h:17:0,
from ./crypto/include/crypto_kernel.h:50,
from ./include/srtp.h:53,
from srtp/srtp.c:46:
./crypto/include/aes_icm_ossl.h:66:20: error: field ‘ctx’ has incomplete type
EVP_CIPHER_CTX ctx;
^~~
In file included from srtp/srtp.c:50:0:
./crypto/include/aes_gcm_ossl.h:58:18: error: field ‘ctx’ has incomplete type
EVP_CIPHER_CTX ctx;
^~~
Makefile:646: recipe for target 'srtp.lo' failed
make[1]: *** [srtp.lo] Error 1
make[1]: Leaving directory '/usr/src/freeswitch/libs/srtp'
Makefile:3931: recipe for target 'libs/srtp/libsrtp.la' failed
make: *** [libs/srtp/libsrtp.la] Error 2

我一直在互联网上搜索解决方案,但我不是开发人员,这让我难以理解。任何帮助,将不胜感激。

最佳答案

因为较新的 OpenSSL 不公开 struct EVP_CIPHER_CTX ,

试试这个

EVP_CIPHER_CTX *ctx = EVP_CIPHER_CTX_new();
EVP_CIPHER_CTX_init(ctx);
//do sth here
//...
EVP_CIPHER_CTX_free(ctx);

关于linux - 错误 : field 'ctx' has incomplete type EVP_CIPHER_CTX,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47518843/

45 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com