Package: brickos
Severity: important
Tags: patch
Hi,
currently your package FTBFS on GNU/kFreeBSD, with the following error:
> cc -O2 -Wall -O2 -Wall -c -o rcx_comm.o rcx_comm.c
> rcx_comm.c: In function 'nbread':
> rcx_comm.c:178: error: 'fds' undeclared (first use in this function)
> rcx_comm.c:178: error: (Each undeclared identifier is reported only once
> rcx_comm.c:178: error: for each function it appears in.)
> rcx_comm.c:181: error: 'tv' undeclared (first use in this function)
> rcx_comm.c:192: error: 'count' undeclared (first use in this function)
> rcx_comm.c:179: error: invalid lvalue in asm output 0
> rcx_comm.c:188: error: memory input 2 is not directly addressable
> make[3]: *** [rcx_comm.o] Error 1
> make[3]: Leaving directory
> `/build/buildd/brickos-0.9.0.dfsg/util/firmdl'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/build/buildd/brickos-0.9.0.dfsg/util'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/build/buildd/brickos-0.9.0.dfsg'
> make: *** [build-arch-stamp] Error 2
Full build logs are available at
<http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=brickos>.
Please find attached a tiny patch (one-liner) to fix this.
Cheers,
--
Cyril Brulebois
--- brickos-0.9.0.dfsg/util/firmdl/rcx_comm.c 2007-03-07 18:49:42.190409000 +0100
+++ brickos-0.9.0.dfsg/util/firmdl/rcx_comm.c 2007-03-07 18:55:33.000000000 +0100
@@ -102,7 +102,7 @@
{
char *bufp = (char *)buf;
int len = 0;
-#if defined(LINUX) | defined(linux)
+#if defined(LINUX) | defined(linux) | defined (__FreeBSD_kernel__)
int count;
fd_set fds;
struct timeval tv;