Package: bozohttpd
Severity: important
Tags: patch

Hi,

currently your package FTBFS on GNU/kFreeBSD with the following error:
> cc -DDEBUG -o bozohttpd bozohttpd.c auth-bozo.c cgi-bozo.c content-bozo.c 
> daemon-bozo.c dir-index-bozo.c ssl-bozo.c tilde-luzah-bozo.c  -lcrypto -lssl
> daemon-bozo.c:45:22: error: asm/poll.h: No such file or directory
> daemon-bozo.c: In function 'daemon_fork':
> daemon-bozo.c:140: error: dereferencing pointer to incomplete type
> daemon-bozo.c:142: error: invalid use of undefined type 'struct pollfd'
> daemon-bozo.c:142: error: dereferencing pointer to incomplete type
> daemon-bozo.c:142: error: 'POLLIN' undeclared (first use in this function)
> daemon-bozo.c:142: error: (Each undeclared identifier is reported only once
> daemon-bozo.c:142: error: for each function it appears in.)
> daemon-bozo.c:142: error: 'POLLPRI' undeclared (first use in this function)
> daemon-bozo.c:143: error: 'POLLERR' undeclared (first use in this function)
> daemon-bozo.c:144: error: invalid use of undefined type 'struct pollfd'
> daemon-bozo.c:144: error: dereferencing pointer to incomplete type
> daemon-bozo.c:162: error: invalid use of undefined type 'struct pollfd'
> daemon-bozo.c:162: error: dereferencing pointer to incomplete type
> daemon-bozo.c:162: error: 'POLLNVAL' undeclared (first use in this function)
> daemon-bozo.c:162: error: 'POLLHUP' undeclared (first use in this function)
> daemon-bozo.c:163: error: invalid use of undefined type 'struct pollfd'
> daemon-bozo.c:163: error: dereferencing pointer to incomplete type
> daemon-bozo.c:167: error: invalid use of undefined type 'struct pollfd'
> daemon-bozo.c:167: error: dereferencing pointer to incomplete type
> make[1]: *** [all] Error 1
> make[1]: Leaving directory `/build/buildd/bozohttpd-20060517'
> make: *** [build-stamp] Error 2

Full build logs are available at
<http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=bozohttpd>.

Please find attached a tiny patch to fix this, by including another
header on GNU/kFreeBSD.

Cheers,

-- 
Cyril Brulebois
--- bozohttpd-20060517/daemon-bozo.c	2007-03-10 19:01:14.936055000 +0100
+++ bozohttpd-20060517/daemon-bozo.c	2007-03-10 19:02:33.000000000 +0100
@@ -42,7 +42,11 @@
 
 #include <errno.h>
 #include <netdb.h>
+#if defined(__FreeBSD_kernel__)
+#include <sys/poll.h>
+#else
 #include <asm/poll.h>
+#endif
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>

Reply via email to