Package: slrnface
Severity: important
Tags: patch

Hi,

currently your package FTBFS on GNU/kFreeBSD with the following error:
> make[1]: Entering directory `/build/buildd/slrnface-2.1.1'
> cc -g -O  -o slrnface slrnface.c -L/usr/X11R6/lib -lcompface  -lXt -lX11 
> slrnface.c: In function 'get_face_position':
> slrnface.c:281: error: invalid use of undefined type 'struct winsize'
> slrnface.c:281: error: invalid use of undefined type 'struct winsize'
> slrnface.c:294: error: invalid use of undefined type 'struct winsize'
> slrnface.c:303: error: invalid use of undefined type 'struct winsize'
> slrnface.c:305: error: invalid use of undefined type 'struct winsize'
> slrnface.c:309: error: invalid use of undefined type 'struct winsize'
> slrnface.c:309: error: invalid use of undefined type 'struct winsize'
> slrnface.c:309: error: invalid use of undefined type 'struct winsize'
> slrnface.c:311: error: invalid use of undefined type 'struct winsize'
> slrnface.c:311: error: invalid use of undefined type 'struct winsize'
> slrnface.c: In function 'setup':
> slrnface.c:410: error: 'TIOCGWINSZ' undeclared (first use in this function)
> slrnface.c:410: error: (Each undeclared identifier is reported only once
> slrnface.c:410: error: for each function it appears in.)
> slrnface.c:413: error: invalid use of undefined type 'struct winsize'
> slrnface.c:413: error: invalid use of undefined type 'struct winsize'
> slrnface.c: In function 'read_fifo':
> slrnface.c:921: error: 'TIOCGWINSZ' undeclared (first use in this function)
> make[1]: *** [slrnface] Error 1

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

It turned out that the following patch allows the package to build fine,
but please also note that I couldn't test it due to some breakage in the
dependencies of slrn at the time of this writing.

Cheers,

-- 
Cyril Brulebois
--- slrnface-2.1.1/slrnface.c	2007-03-09 19:25:23.137429000 +0100
+++ slrnface-2.1.1/slrnface.c	2007-03-09 19:28:08.000000000 +0100
@@ -37,6 +37,9 @@
 #include <sys/time.h>
 #include <sys/ioctl.h>
 #include <termio.h>
+#elif defined(__FreeBSD_kernel__)
+#include <bits/ioctls.h>
+#include <termios.h>
 #else
 #include <termios.h>
 #endif

Reply via email to