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

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


Copy link

Unbound when compiled against openssl beta2, it is failing to compile.

To reproduce
Steps to reproduce the behavior:

  1. Use openssl 3.0.0 beta2 from
  2. Compile unbound

Expected behavior
The build should succeed


  • Unbound version: 1.12.0
  • OS: photon

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 ||
| ^~~~~~~~~~~~

/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

Copy link

As per:

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
- Move acx_nlnetlabs.m4 to version 41, with lib64 openssl dir check.
Copy link

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!

Copy link

Thanks, it works now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

2 participants