Replies: 5 comments
-
openssl version: Linux version 3.10.0-1160.53.1.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Fri Jan 14 13:59:45 UTC 2022 |
Beta Was this translation helpful? Give feedback.
-
Looks like the wrong OpenSSL headers are loaded. We dropped OpenSSL 1.0.x Support, I think this is the default on RedHat/Centos 7. |
Beta Was this translation helpful? Give feedback.
-
@sreimers I upgrade the Openssl to 3.0.2, make failed again, show me the same error. |
Beta Was this translation helpful? Give feedback.
-
You can give cmake a try:
Or you can try to build OpenSSL static and give cmake a hint:
In general we dropped Centos 7 support some months ago. With a newer cmake, compiler and a supported openssl version it can work, but nothing we test or support. v2.3.0 was the last supported release. |
Beta Was this translation helpful? Give feedback.
-
@jrtkcoder, is there anything which prevents you from just using the libre, librem and baresip RPM packages from EPEL 7? I've built the packages there, also using a more modern C compiler, against the openssl11 RPM package (which provides the same OpenSSL version like in CentOS/RHEL/Rocky Linux 8). |
Beta Was this translation helpful? Give feedback.
-
CC build-x86_64/main/openssl.o
src/main/openssl.c: In function ‘openssl_init’:
src/main/openssl.c:30:2: warning: implicit declaration of function ‘OPENSSL_init_ssl’ [-Wimplicit-function-declaration]
err = OPENSSL_init_ssl(OPENSSL_INIT_SSL_DEFAULT, NULL);
^
src/main/openssl.c:30:2: warning: nested extern declaration of ‘OPENSSL_init_ssl’ [-Wnested-externs]
src/main/openssl.c:30:25: error: ‘OPENSSL_INIT_SSL_DEFAULT’ undeclared (first use in this function)
err = OPENSSL_init_ssl(OPENSSL_INIT_SSL_DEFAULT, NULL);
^
src/main/openssl.c:30:25: note: each undeclared identifier is reported only once for each function it appears in
make: *** [build-x86_64/main/openssl.o] Error 1
Beta Was this translation helpful? Give feedback.
All reactions