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

Compilation against openssl 3.0.0 beta2 is failing to build unbound #515

Closed
satya-rajesh opened this issue Jul 30, 2021 · 3 comments
Closed

Comments

@satya-rajesh
Copy link

Unbound when compiled against openssl beta2, it is failing to compile.
https://github.com/openssl/openssl/releases/tag/openssl-3.0.0-beta2

To reproduce
Steps to reproduce the behavior:

  1. Use openssl 3.0.0 beta2 from https://github.com/openssl/openssl/releases/tag/openssl-3.0.0-beta2
  2. Compile unbound

Expected behavior
The build should succeed

System:

  • Unbound version: 1.12.0
  • OS: photon

Error:
smallapp/unbound-control.c: In function 'ssl_path_err':
smallapp/unbound-control.c:490:4: warning: implicit declaration of function 'ERR_GET_FUNC'; did you mean 'ERR_GET_LIB'? [-Wimplicit-function-declaration]
490 | (ERR_GET_FUNC(err) == SYS_F_FOPEN ||
| ^~~~~~~~~~~~
| ERR_GET_LIB

/bin/ld: .libs/unbound-control.o: in function ssl_path_err': /usr/src/photon/BUILD/unbound-1.12.0/smallapp/unbound-control.c:490: undefined reference to ERR_GET_FUNC'
/bin/ld: /usr/src/photon/BUILD/unbound-1.12.0/smallapp/unbound-control.c:491: undefined reference to `ERR_GET_FUNC'
collect2: error: ld returned 1 exit status
make: *** [Makefile:355: unbound-control] Error 1

@satya-rajesh
Copy link
Author

As per: https://www.openssl.org/news/changelog.html

The ERR_GET_FUNC() function was removed. With the loss of meaningful function codes, this function can only cause problems for calling applications.

wcawijngaards added a commit that referenced this issue Jul 30, 2021
  SSL_get_peer_certificate.
- Move acx_nlnetlabs.m4 to version 41, with lib64 openssl dir check.
@wcawijngaards
Copy link
Member

In the latest version of the code repo, this compilation problem is fixed. Also the use of deprecated functions has been replaced with the new OpenSSL 3.0.0 provider API. Thanks for the links!

@satya-rajesh
Copy link
Author

Thanks, it works now

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

2 participants