Package: nmap
Severity: important
Version: 3.93-1
Tags: patch

Hi,

the current version fails to build on GNU/kFreeBSD.

It needs small changes to configure.in/configure 
in libdnet-stripped subdir and 
updated config.guess/config.sub.

Please find an attached patch to configure.in/configure. 

A version of config.guess and config.sub is needed 
from this year. It is available in the autotools-dev 
packages that are in current sarge, and sid.

You can simply copy them manually, but it can also be done 
automatically using the method described in
/usr/share/doc/autotools-dev/README.Debian.gz 

Please, update all occurences of config.sub/config.guess,
"find . -name config.sub -o -name config.guess" is your friend:

./libpcap/config.sub
./libpcap/config.guess
./libdnet-stripped/config/config.sub
./libdnet-stripped/config/config.guess
./config.sub
./config.guess
./libpcre/config.sub
./libpcre/config.guess
./nsock/src/config.sub
./nsock/src/config.guess

It would also be nice if you can ask upstream to 
integrate these changes in their next release.


Thanks in advance

                         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"   | \

Reply via email to