Hi, the nmap uses internally libdnet-1.10, so please find also patch for version 1.10.
Also config/config.sub and config/config.guess in libdnet-1.10.tar.gz have to be updated. Thanks Petr
only in patch2: unchanged: --- nmap-3.93.orig/libdnet-stripped/configure.in +++ nmap-3.93/libdnet-stripped/configure.in @@ -248,7 +248,7 @@ elif test "$ac_cv_header_netinet_ip_fw_h" = yes ; then dnl XXX - ipfw2 support later... case "$host_os" in - *freebsd5*) + *freebsd5* | *kfreebsd*) AC_LIBOBJ([fw-none]) ;; *) AC_LIBOBJ([fw-ipfw]) ;; @@ -299,7 +299,12 @@ AC_LIBOBJ([tun-linux]) elif test "$ac_cv_header_net_if_tun_h" = yes ; then if test "$ac_cv_header_stropts_h" = yes ; then - AC_LIBOBJ([tun-solaris]) + case "$host_os" in + *kfreebsd*) + AC_LIBOBJ([tun-bsd]);; + *) + AC_LIBOBJ([tun-solaris]);; + esac else AC_LIBOBJ([tun-bsd]) fi only in patch2: unchanged: --- nmap-3.93.orig/libdnet-stripped/configure +++ nmap-3.93/libdnet-stripped/configure @@ -22610,7 +22537,7 @@ elif test "$ac_cv_header_netinet_ip_fw_h" = yes ; then case "$host_os" in - *freebsd5*) + *freebsd5* | *kfreebsd*) case $LIBOBJS in "fw-none.$ac_objext" | \ *" fw-none.$ac_objext" | \ @@ -22783,14 +22710,26 @@ elif test "$ac_cv_header_net_if_tun_h" = yes ; then if test "$ac_cv_header_stropts_h" = yes ; then - case $LIBOBJS in + case "$host_os" in + *kfreebsd*) + case $LIBOBJS in + "tun-bsd.$ac_objext" | \ + *" tun-bsd.$ac_objext" | \ + "tun-bsd.$ac_objext "* | \ + *" tun-bsd.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS tun-bsd.$ac_objext" ;; +esac +;; + *) + case $LIBOBJS in "tun-solaris.$ac_objext" | \ *" tun-solaris.$ac_objext" | \ "tun-solaris.$ac_objext "* | \ *" tun-solaris.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS tun-solaris.$ac_objext" ;; esac - +;; + esac else case $LIBOBJS in "tun-bsd.$ac_objext" | \