Nmap Development mailing list archives

Re: Bug in latest SVN


From: Daniel Miller <bonsaiviking () gmail com>
Date: Sat, 18 Jun 2016 13:14:05 -0500

Forrest,

Thanks for the report. We changed the guard for this section from #ifdef
EC_KEY to #ifdef EVP_PKEY_EC to match an earlier section, but I guess this
is still not an appropriate feature test. I have one last check to see if
it can work without a configure-time check: can you add the following line
near the top of nse_ssl_cert.cc?

#include <openssl/evp.h>

This might contain the necessary declarations. It would also be helpful to
know what version of OpenSSL you're trying to build against.

Dan

On Thu, Jun 9, 2016 at 3:21 PM, Forrest Aldrich <forrie () gmail com> wrote:

Latest pull of SVN has an error in the build:

make[1]: Leaving directory `/usr/local/src/nmap/liblua'
g++ -c -I./liblinear -I./liblua -I./libdnet-stripped/include -I./nbase
-I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"
https://nmap.org\"; -DNMAP_PLATFORM=\"i686-pc-linux-gnu\"
-DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall
-fno-strict-aliasing   nse_ssl_cert.cc -o nse_ssl_cert.o
nse_ssl_cert.cc: In function 'int lua_push_ecdhparams(lua_State*,
EVP_PKEY*)':
nse_ssl_cert.cc:438: error: 'EC_KEY' was not declared in this scope
nse_ssl_cert.cc:438: error: 'ec_key' was not declared in this scope
nse_ssl_cert.cc:438: error: 'EVP_PKEY_get1_EC_KEY' was not declared in
this scope
nse_ssl_cert.cc:439: error: expected initializer before '*' token
nse_ssl_cert.cc:444: error: 'group' was not declared in this scope
nse_ssl_cert.cc:444: error: 'EC_GROUP_get_curve_name' was not declared in
this scope
nse_ssl_cert.cc:454: error: 'EC_GROUP_method_of' was not declared in this
scope
nse_ssl_cert.cc:454: error: 'EC_METHOD_get_field_type' was not declared in
this scope
nse_ssl_cert.cc:469: error: 'EC_KEY_free' was not declared in this scope
make: *** [nse_ssl_cert.o] Error 1

The distribution was cleaned prior to configure && build.

My platform:

Linux hostname 2.6.18-409.el5 #1 SMP Tue Mar 15 18:22:22 EDT 2016 i686
i686 i386 GNU/Linux

(CentOS 5)



Thanks,

Forrest



_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Current thread: