Bug#542388: nmap: FTBFS on GNU/kFreeBSD
On Wed, Aug 19, 2009 at 01:16:54PM +0200, Petr Salinger wrote: Hi, the current version fails to build on GNU/kFreeBSD. It needs a small change to configure.in/configure in libdnet-stripped subdir, see attached patch. It would also be nice if you can ask upstream to integrate this change in their next release. Thanks for the report and patch. I have applied this for the next version of Nmap. Cheers, -F -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#542388: nmap: FTBFS on GNU/kFreeBSD
Package: nmap Version: 5.00-2 Severity: important Tags: patch User: debian-...@lists.debian.org Usertags: kfreebsd Hi, the current version fails to build on GNU/kFreeBSD. It needs a small change to configure.in/configure in libdnet-stripped subdir, see attached patch. It would also be nice if you can ask upstream to integrate this change in their next release. Thanks in advance Petronly in patch2: unchanged: --- nmap-5.00.orig/libdnet-stripped/configure.in +++ nmap-5.00/libdnet-stripped/configure.in @@ -278,7 +278,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-5.00.orig/libdnet-stripped/configure +++ nmap-5.00/libdnet-stripped/configure @@ -23153,12 +20673,22 @@ 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 * ) ;; + *) LIBOBJS=$LIBOBJS tun-bsd.$ac_objext + ;; +esac +;; + *) + case $LIBOBJS in * tun-solaris.$ac_objext * ) ;; *) LIBOBJS=$LIBOBJS tun-solaris.$ac_objext ;; esac - +;; + esac else case $LIBOBJS in * tun-bsd.$ac_objext * ) ;;