Open 1078979110 opened 11 months ago
me too
upgrade openssl 1.1.1w
Modify the following files to embrace ssl_fax.h inclusion by ifdef SPANDSP_SUPPORT_SSLFAX:
#if defined(SPANDSP_SUPPORT_SSLFAX)
#include "spandsp/ssl_fax.h"
#endif
...
#if defined(SPANDSP_SUPPORT_SSLFAX)
#include "spandsp/private/ssl_fax.h"
#endif
fax.c t30.c t30_api.c t30_logging.c t38_gateway.c t38_terminal.c
Same issue in https://github.com/freeswitch/spandsp/issues/61 @coppice-git FYI
Oops, I forgot to clean up the "no SSL" case before committing the SSL-FAX stuff. I just committed changes which should fix this.
Still not working for me with commit 94a54740. Is there a reason not to embrace spandsp/ssl_fax.h and spandsp/private/ssl_fax.h with #if defined(SPANDSP_SUPPORT_SSLFAX) ?
What error do you get?
sorry, that was stale file issue
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libxml2 -DNDEBUG -msse2 -Wunused-but-set-variable -std=gnu99 -ffast-math -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden -DHAVE_VISIBILITY=1 -MT fax.lo -MD -MP -MF .deps/fax.Tpo -c fax.c -fPIC -DPIC -o .libs/fax.o In file included from /usr/include/tgmath.h:28, from fax.c:38: /usr/include/openssl/rsa.h:96:51: error: expected ')' before 'extension' int (rsa_mod_exp) (BIGNUM r0, const BIGNUM I, RSA rsa, BN_CTX ctx); ^ In file included from /usr/include/openssl/x509.h:96, from /usr/include/openssl/ssl.h:156, from spandsp/ssl_fax.h:35, from fax.c:67: /usr/include/openssl/rsa.h:96:54: error: expected ';', ',' or ')' before 'RSA' int (rsa_mod_exp) (BIGNUM r0, const BIGNUM I, RSA rsa, BN_CTX ctx); ^~~ make[2]: [fax.lo] Error 1 make[2]: Leaving directory `/root/spandsp/src' make[1]: [all] Error 2 make[1]: Leaving directory `/root/spandsp/src' make: *** [all-recursive] Error 1
my system : [root@localhost spandsp]# uname -a Linux localhost.localdomain 3.10.0-1160.99.1.el7.x86_64 #1 SMP Wed Sep 13 14:19:20 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux [root@localhost spandsp]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) [root@localhost spandsp]#