http://launchpadlibrarian.net/36790961/buildlog_ubuntu-lucid-i386.libtexttools_2.0.5-2_FAILEDTOBUILD.txt.gz
[...]
cc -c -g -O2 -g -O2 -D_Bool=char C_code/system.c -o shared-obj/system.o -fPIC
C_code/system.c: In function 'CGetUNIX':
C_code/system.c:141: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result
C_code/system.c: In function 'CNice':
C_code/system.c:167: warning: ignoring return value of 'nice', declared with attribute warn_unused_result
C_code/system.c: In function 'Crealtotalmem':
C_code/system.c:241: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result
C_code/system.c:242: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result
C_code/system.c: In function 'Crealfreemem':
C_code/system.c:252: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result
C_code/system.c:253: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result
C_code/system.c: In function 'Ctotalmem':
C_code/system.c:265: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result
C_code/system.c:267: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result
C_code/system.c:268: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result
C_code/system.c: In function 'Cfreemem':
C_code/system.c:281: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result
C_code/system.c:282: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result
C_code/system.c:283: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result
In file included from /usr/include/fcntl.h:205,
from C_code/system.c:4:
In function 'open',
inlined from 'CRunItForStdErr' at C_code/system.c:431:
/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments
In function 'open',
inlined from 'CRunIt' at C_code/system.c:389:
/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[1]: *** [shared-obj/system.o] Error 1
I have fixed this bug and submitted a merge proposal to Lucid (branch attached to this bug). The patch has been forwarded upstream to Debian.