freeswitch / spandsp

SpanDSP is a low-level signal processing library that modulates and demodulates signals commonly used in telephony, such as the "noise" generated by a fax modem or DTMF touchpad.
Other
152 stars 120 forks source link

/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); #63

Open 1078979110 opened 11 months ago

1078979110 commented 11 months ago

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]#

hailiangchen commented 11 months ago

me too

hailiangchen commented 11 months ago

upgrade openssl 1.1.1w

lexxer3d commented 11 months ago

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

coppice-git commented 11 months ago

Oops, I forgot to clean up the "no SSL" case before committing the SSL-FAX stuff. I just committed changes which should fix this.

lexxer3d commented 11 months ago

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) ?

coppice-git commented 11 months ago

What error do you get?

lexxer3d commented 11 months ago

sorry, that was stale file issue