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

/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 this issue Oct 13, 2023 · 7 comments

Comments

@1078979110
Copy link

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
Copy link

me too

@hailiangchen
Copy link

upgrade openssl 1.1.1w

@lexxer3d
Copy link

lexxer3d commented Nov 6, 2023

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 #61
@coppice-git FYI

@coppice-git
Copy link
Collaborator

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
Copy link

lexxer3d commented Nov 6, 2023

Still not working for me with commit 94a5474.
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
Copy link
Collaborator

What error do you get?

@lexxer3d
Copy link

lexxer3d commented Nov 6, 2023

sorry, that was stale file issue

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

4 participants