----- Forwarded message from Samuli Suominen <[email protected]> -----
Date: Wed, 06 Oct 2010 01:17:49 +0300 From: Samuli Suominen <[email protected]> To: [email protected], [email protected] Subject: [patch] brltty-4.2 fails to compile with glibc-2.12 Due to headers cleanup in GLIBC 2.12 (and up), apps need to #include stat.h on their own (and with stat.h, you should also bring in types.h for certain other libc's, such as Darwin's version or it will fail on other errors... but if you only care of glibc, only stat.h is fine) Original bug: http://bugs.gentoo.org/339846 Error: make[2]: Entering directory `/var/tmp/portage/app-accessibility/brltty-4.2/work/brltty-4.2/Drivers/Screen/Screen' i686-pc-linux-gnu-gcc -Wall -O2 -pipe -I. -I. -I./../../../Programs -I../../../Programs -I./../../.. -I../../.. -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE -DHAVE_CONFIG_H -fPIC '-DDRIVER_NAME=Screen' '-DDRIVER_CODE=sc' '-DDRIVER_COMMENT=""' '-DDRIVER_VERSION=""' '-DDRIVER_DEVELOPERS=""' -c ./screen.c host_sys_linux.o: In function `openCharacterDevice': sys_linux.c:(.text+0x2348): undefined reference to `S_ISCHR' collect2: ld returned 1 exit status make[1]: *** [tbl2hex] Error 1 Patch: --- Programs/sys_linux.c +++ Programs/sys_linux.c @@ -22,6 +22,8 @@ #include <string.h> #include <errno.h> #include <fcntl.h> +#include <sys/types.h> /* sys/stat.h */ +#include <sys/stat.h> /* S_ISCHR */ #include <sys/ioctl.h> #include <linux/kd.h> ----- End forwarded message -----
pgpeVhrzv3Sym.pgp
Description: PGP signature
_______________________________________________ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: [email protected] For general information, go to: http://mielke.cc/mailman/listinfo/brltty
