nmap -> error during compile

Ewald Jenisch a at jenisch.at
Tue Jun 1 11:52:10 UTC 2010


Hi,

Upon compiling nmap (5.21_1) from scratch I got the following error:

------------------------------ < Cut here > ------------------------------

# make
===>  Building for nmap-5.21_1
Makefile:341: makefile.dep: No such file or directory
c++ -MM -I/usr/include/lua -I/usr/local/include/lua51 -Ilibdnet-stripped/include
 -I/usr/local/include  -I/usr/local/include -Inbase -Insock/include main.cc nmap
.cc targets.cc tcpip.cc nmap_error.cc utils.cc idle_scan.cc osscan.cc osscan2.cc
 output.cc payload.cc scan_engine.cc timing.cc charpool.cc services.cc protocols
.cc nmap_rpc.cc portlist.cc NmapOps.cc TargetGroup.cc Target.cc FingerPrintResul
ts.cc service_scan.cc NmapOutputTable.cc MACLookup.cc nmap_tty.cc nmap_dns.cc tr
aceroute.cc portreasons.cc nse_main.cc nse_nsock.cc nse_fs.cc nse_nmaplib.cc nse
_debug.cc nse_pcrelib.cc nse_binlib.cc nse_bit.cc nse_openssl.cc nse_ssl_cert.cc
  > makefile.dep
In file included from nse_openssl.cc:11:
/usr/include/openssl/md2.h:64:2: error: #error MD2 is disabled.
gmake: *** [makefile.dep] Error 1
*** Error code 1

Stop in /usr/ports/security/nmap.

------------------------------ < Cut here > ------------------------------

When I start the build-process agin (make) it again stops with an
error related to "md2":


------------------------------ < Cut here > ------------------------------


.
.
.
c++ -c -I/usr/include/lua -I/usr/local/include/lua51 -Ilibdnet-stripped/include -I/usr/local/include  -I/usr/local/include -Inbase -Insock/include -O -pipe -Wall -fno-strict-aliasing   -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://nmap.org\" -DNMAP_PLATFORM=\"amd64-portbld-freebsd7.3\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 nse_bit.cc -o nse_bit.o
c++ -c -I/usr/include/lua -I/usr/local/include/lua51 -Ilibdnet-stripped/include -I/usr/local/include  -I/usr/local/include -Inbase -Insock/include -O -pipe -Wall -fno-strict-aliasing   -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://nmap.org\" -DNMAP_PLATFORM=\"amd64-portbld-freebsd7.3\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 nse_openssl.cc -o nse_openssl.o
In file included from nse_openssl.cc:11:
/usr/include/openssl/md2.h:64:2: error: #error MD2 is disabled.
gmake[1]: *** [nse_openssl.o] Error 1
gmake[1]: Leaving directory `/usr/ports/security/nmap/work/nmap-5.21'
gmake: *** [all] Error 2
*** Error code 1

Stop in /usr/ports/security/nmap.

------------------------------ < Cut here > ------------------------------

My machine is running FreeBSD 7.3, portstree cvsup-ed as per today,
platform AMD64.

I've got openssl installed from the ports:

# pkg_info -rx openssl-1.0.0
Information for openssl-1.0.0_1:

Depends on:

#



Any idea what's going on here and why I can't compile nmap?

Thanks much in advance for your help.

-ewald


More information about the freebsd-questions mailing list