Package: brltty
Version: 3.7.2-3.1
Severity: serious
Tags: patch

When building 'brltty' on unstable, I get the following error:

make[3]: Leaving directory `/brltty-3.7.2/build-brltty/BrailleDrivers/Albatross'
make[3]: Entering directory `/brltty-3.7.2/build-brltty/BrailleDrivers/BrlAPI'
cd ../../Programs && /usr/bin/make api
make[4]: Entering directory `/brltty-3.7.2/build-brltty/Programs'
gcc -Wall -g -O2 -I. -I.. -I../../Programs -I../.. -D_POSIX_C_SOURCE=2 
-D_BSD_SOURCE -D_XOPEN_SOURCE=500 -DHAVE_CONFIG_H -fPIC -c 
../../Programs/api_client.c
../../Programs/api_client.c: In function 'brlapi_waitForPacket':
../../Programs/api_client.c:167: warning: dereferencing type-punned pointer 
will break strict-aliasing rules
../../Programs/api_client.c: In function 'getControllingTty':
../../Programs/api_client.c:669: error: 'MAX_NR_CONSOLES' undeclared (first use 
in this function)
../../Programs/api_client.c:669: error: (Each undeclared identifier is reported 
only once
../../Programs/api_client.c:669: error: for each function it appears in.)
make[4]: *** [api_client.o] Error 1
make[4]: Leaving directory `/brltty-3.7.2/build-brltty/Programs'

With the attached patch 'brltty' can be compiled on unstable.

Regards
Andreas Jochens

diff -urN ../tmp-orig/brltty-3.7.2/Programs/api_client.c ./Programs/api_client.c
--- ../tmp-orig/brltty-3.7.2/Programs/api_client.c      2006-10-10 
13:34:02.000000000 +0000
+++ ./Programs/api_client.c     2006-10-10 13:32:55.000000000 +0000
@@ -74,7 +74,7 @@
 
 #ifdef linux
 #include <linux/major.h>
-#include <linux/tty.h>
+#include <linux/vt.h>
 #define MAXIMUM_VIRTUAL_CONSOLE MAX_NR_CONSOLES
 #endif /* linux */
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to