Nmap Development mailing list archives

Re: Fwd: nmap compiler error


From: David Fifield <david () bamsoftware com>
Date: Wed, 19 Aug 2009 10:34:45 -0600

On Wed, Aug 19, 2009 at 10:39:10AM -0500, Ron wrote:
Sometime since yesterday morning, the Nmap SVN started failing to  
compile on one of our systems. It looks like a 'const' is being misused.  
We are going to fix it locally, for now, but it'll be a hackjob.

-------- Original Message --------
Subject:      nmap compiler error
Date:         Wed, 19 Aug 2009 10:17:36 -0500
From:         <Andrew>
To:   <ron () skullsecurity net>



 From r15104 checked out just now,

…

g++ -c -Iliblua -Ilibdnet-stripped/include -Ilibpcre -Ilibpcap -Inbase
-Insock/ include -g -O2 -Wall -fno-strict-aliasing -DHAVE_CONFIG_H
-DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://nmap.org\";
-DNMAP_PLATFORM=\"i686-pc-linux-gnu\" -DNMAPDATA
DIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 nse_ssl_cert.cc -o
nse_ssl_cer t.o

nse_ssl_cert.cc: In function `int l_get_ssl_certificate(lua_State*)':

nse_ssl_cert.cc:376: error: invalid conversion from `const SSL*' to `SSL*'

nse_ssl_cert.cc:376: error: initializing argument 1 of `X509*
SSL_get_peer_cer tificate(SSL*)'

make[1]: *** [nse_ssl_cert.o] Error 1

make[1]: Leaving directory `/home/aorr/nmap'

make: *** [all] Error 2

Thanks, this should be fixed in r15105. What version of OpenSSL is on
the machine? With 0.9.8k, in /usr/include/openssl.h I have

X509 *  SSL_get_peer_certificate(const SSL *s);

Probably in an earlier version there's no "const" there.

David Fifield

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

Current thread: