-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
7.9.3 fails to build with OpenSSL 1.1. #2516
Comments
I had the same issue & commenting out lines 136-139 of ncat/http_digest.c solved it. The condition |
Frustratingly, openssl/macros.h only exists in OpenSSL 3+. |
Thanks for reporting this. We did not find any issues building with OpenSSL 1.1 prior to release, but I will look into improving these preprocessor directives to support other configurations. |
I have pushed a change to fix this issue. Our testing was done with OpenSSL 3.0 and OpenSSL 1.0.2, but not 1.1.1. The change switches to using |
I have the same problem on debian 10 Operating System: Debian GNU/Linux 10 (buster) |
Did you try the fix from d6bea8d? This is probably not a distinct issue. |
Apply all the changes and it works correctly. I compile correctly, thank you very much |
- 7.80 no longer builds with current toolchain. - Introduce an upstream patch to fix build with OpenSSL 1.1. Ref: nmap/nmap#2516
- 7.80 no longer builds with current toolchain. - Introduce an upstream patch to fix build with OpenSSL 1.1. Ref: nmap/nmap#2516
- 7.80 no longer builds with current toolchain. - Introduce an upstream patch to fix build with OpenSSL 1.1. Ref: nmap/nmap#2516
- 7.80 no longer builds with current toolchain. - Introduce an upstream patch to fix build with OpenSSL 1.1. Ref: nmap/nmap#2516
The latest nmap version 7.9.3 currently fails to compile with OpenSSL 1.1 [1], it required to backport upstream patch to fix the compilation. [2] [1] nmap/nmap#2516 [2] nmap/nmap@d6bea8d Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
The latest nmap version 7.9.3 currently fails to compile with OpenSSL 1.1 [1], it required to backport upstream patch to fix the compilation. [2] [1] nmap/nmap#2516 [2] nmap/nmap@d6bea8d Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
The latest nmap version 7.9.3 currently fails to compile with OpenSSL 1.1 [1], it required to backport upstream patch to fix the compilation. [2] [1] nmap/nmap#2516 [2] nmap/nmap@d6bea8d Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
The latest nmap version 7.9.3 currently fails to compile with OpenSSL 1.1 [1], it required to backport upstream patch to fix the compilation. [2] [1] nmap/nmap#2516 [2] nmap/nmap@d6bea8d Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com> (cherry picked from commit 2c87004)
The latest nmap version 7.9.3 currently fails to compile with OpenSSL 1.1 [1], it required to backport upstream patch to fix the compilation. [2] [1] nmap/nmap#2516 [2] nmap/nmap@d6bea8d Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com> (cherry picked from commit 2c87004)
Describe the current behavior
Building Nmap 7.9.3 fails to build when using OpenSSL 1.1. The error is encountered while building
ncat
, but other parts of the Nmap source distribution are probably susceptible to the same problem.Expected behavior
The build should succeed, as it did with 7.9.2.
The build fails on macOS versions 10.15, 11, and 12 (both on x64 and arm64 for 11 and 12) and on Ubuntu Linux 16.04 with the following error:
The form of the error is slightly different on macOS, but the content is the same:
Build logs are available at https://github.com/Homebrew/homebrew-core/actions/runs/2976571844.
The problem is that
EVP_MD_CTX_create
is an API that was replaced withEVP_MD_CTX_new
in OpenSSL 1.1.EVP_MD_CTX_create
is used here:nmap/ncat/http_digest.c
Lines 136 to 139 in 140dd72
which suggests that
OPENSSL_API_LEVEL
is not defined correctly. Settingworks around the issue, but this should not be needed.
The errant commit is likely 140dd72, but this does not cleanly revert so I haven't been able to attempt a build after reverting it.
I encountered this problem while building Nmap 7.9.3 for Homebrew at Homebrew/homebrew-core#109458.
The text was updated successfully, but these errors were encountered: