Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

make failed #505

Closed
jrtkcoder opened this issue Sep 4, 2022 · 4 comments
Closed

make failed #505

jrtkcoder opened this issue Sep 4, 2022 · 4 comments

Comments

@jrtkcoder
Copy link

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

@jrtkcoder
Copy link
Author

openssl version:
OpenSSL 1.1.1c 28 May 2019

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

@sreimers
Copy link
Member

sreimers commented Sep 5, 2022

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.

@jrtkcoder
Copy link
Author

@sreimers I upgrade the Openssl to 3.0.2, make failed again, show me the same error.
image

@sreimers
Copy link
Member

openssl is only the binary, you need also the openssl dev/header files at the right place.

You can give cmake a try:

cmake -B build

Or you can try to build OpenSSL static and give cmake a hint:

OPENSSL_ROOT_DIR=/path/to/openssl cmake -B build
cmake --build build -j

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.

@baresip baresip locked and limited conversation to collaborators Sep 14, 2022
@sreimers sreimers converted this issue into discussion #517 Sep 14, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants