nmap -> error during compile

Jerry freebsd.user at seibercom.net
Tue Jun 1 12:28:02 UTC 2010


On Tue, 1 Jun 2010 13:41:08 +0200
Ewald Jenisch <a at jenisch.at> articulated:

> 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?

I have had several ports fail because I had openssl installed via the
ports system. These were on FreeBSD-8/amd64 systems. I filed two PRs and
they were fixed. I might suggest that you do the same here.

It does seem rather strange that considering the number of ports that
require openssl, there was not more testing done to confirm that the
ports version was compatible with ports requiring openssl.


-- 
Jerry
FreeBSD.user at seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__________________________________________________________________

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100601/b18edd86/signature.pgp


More information about the freebsd-questions mailing list