Hi.

Please define _GNU_SOURCE everywhere, see bellow.
Later it would fail with:

  Use 'make install-boot' if you want samhain to start on system boot

./samhain-install.sh --destdir=/build/manual/samhain-2.5.4/debian/samhain --express --verbose install-boot
./samhain-install.sh: unsupported platform GNU/kFreeBSD/7.2-1-amd64
make[1]: *** [install-boot] Error 1

Use the same scripts as on Linux, see gain bellow.

Petr


--- src/dnmalloc.c
+++ src/dnmalloc.c
@@ -214,10 +214,10 @@
   kernel versions newer than 1.3.77.
 */

+#define _GNU_SOURCE 1
 #ifndef HAVE_MREMAP
 #ifdef linux
 #define HAVE_MREMAP 1
-#define _GNU_SOURCE
 #else
 #define HAVE_MREMAP 0
 #endif


--- samhain-install.sh.in~      2010-01-19 10:33:26.000000000 +0000
+++ samhain-install.sh.in       2010-01-19 11:08:02.000000000 +0000
@@ -885,7 +885,7 @@
        rc_uinst="rm -f ${DESTDIR}/etc/init.d/@install_name@;
        ;;

-    Linux/*)
+    Linux/*|GNU/kFreeBSD/*)
        rlv="2 3 4 5"
        linkopt="-f -s"
        # find rc directories




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to