Package: inn
Version: 1:1.7.2debian-31
Severity: important
Tags: patch
Hi,
currently your package FTBFS on GNU/kFreeBSD with the following error:
> cc -I../include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN
> -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.8/CORE -g -O2 -DOVERSCREAM
> -c -o loadave.o loadave.c
> loadave.c:30:19: error: nlist.h: No such file or directory
> loadave.c:31: error: array type has incomplete element type
> make[3]: *** [loadave.o] Error 1
Full build logs are available at
<http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=inn>.
Please find attached a patch to make GNU/k*BSD systems use the same
instructions as when Linux is found.
Cheers,
--
Cyril Brulebois
--- inn-1.7.2debian/build-tree/inn-1.7.2/nnrpd/loadave.c 2007-03-15 11:31:46.825600000 +0100
+++ inn-1.7.2debian/build-tree/inn-1.7.2/nnrpd/loadave.c 2007-03-15 11:32:49.000000000 +0100
@@ -7,7 +7,7 @@
#include "clibrary.h"
#include "nnrpd.h"
#if NNRP_LOADLIMIT > 0
-#ifdef linux
+#if defined(linux) || defined(__GLIBC__)
/*
** Get the current load average as an integer.
@@ -79,5 +79,5 @@
return (int)(avenrun[0] + 0.5);
#endif /* defined(FSCALE) */
}
-#endif /* linux */
+#endif /* linux || __GLIBC__ */
#endif /* NNRP_LOADLIMIT > 0 */