错误:字段'ctx'的类型不完整EVP_CIPHER_CTX

问题描述 投票:4回答:3

问题:我需要将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

我一直在寻找解决方案的互联网,但我不是开发人员,这是我的头脑。任何帮助,将不胜感激。

linux openssl debian freeswitch
3个回答
6
投票
wget https://github.com/cisco/libsrtp/archive/v2.1.0.tar.gz
tar xfv v2.1.0.tar.gz
cd libsrtp-2.1.0
./configure --prefix=/usr --enable-openssl
make shared_library && sudo make install

获取最新版本的libsrtp


2
投票

似乎存在对OpenSSL的依赖,但您使用的OpenSSL版本是不兼容的。您正在使用OpenSSL 1.1.0,但您需要使用OpenSSL 1.0.2


1
投票

在Cepstral的支持下,我们确定Jessie(Debian 8)尚未完全兼容。我用Debian 7重建了服务器,现在工作正常。

© www.soinside.com 2019 - 2024. All rights reserved.