Making pdftex-trunk/qstex compile again
Hi, as you may have noticed, pdftex/trunk and pdftex/branches/qstex (which are still based on TL2007) don't compile anymore; on newer systems (newer then Ubuntu 8.04/SUSE 10.3) compilation breaks with -------------------------- srcdir=../../../src/texk/web2c /bin/sh ../../../src/texk/web2c/web2c/convert tangleboot gcc -DHAVE_CONFIG_H -I. -I../../../src/texk/web2c -I.. -I../../../src/texk/web2c/.. -I../../libs/obsdcompat -I../../libs/obsdcompat/.. -I../../../src/texk/web2c/../../libs/obsdcompat -I../../../src/texk/web2c/../../libs/obsdcompat/.. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g3 -O3 -Wall -Wno-write-strings -Wno-char-subscripts -c tangleboot.c -o tangleboot.o In file included from tangleboot.c:94: tangleboot.h:34: error: conflicting types for ‘getline’ /usr/include/stdio.h:651: note: previous declaration of ‘getline’ was here tangleboot.c: In function ‘zprefixlookup’: tangleboot.c:883: warning: suggest explicit braces to avoid ambiguous ‘else’ tangleboot.c: In function ‘getoutput’: tangleboot.c:1009: warning: suggest explicit braces to avoid ambiguous ‘else’ tangleboot.c: At top level: tangleboot.c:2175: error: conflicting types for ‘getline’ /usr/include/stdio.h:651: note: previous declaration of ‘getline’ was here tangleboot.c: In function ‘getnext’: tangleboot.c:2420: warning: suggest explicit braces to avoid ambiguous ‘else’ tangleboot.c: In function ‘zscanrepl’: tangleboot.c:2921: warning: suggest explicit braces to avoid ambiguous ‘else’ tangleboot.c:2935: warning: suggest explicit braces to avoid ambiguous ‘else’ tangleboot.c:2962: warning: suggest explicit braces to avoid ambiguous ‘else’ tangleboot.c:3156: warning: suggest explicit braces to avoid ambiguous ‘else’ tangleboot.c: In function ‘mainbody’: tangleboot.c:3483: warning: label ‘lab9999’ defined but not used make[1]: *** [tangleboot.o] Fehler 1 make[1]: Verlasse Verzeichnis '/home/mschroeder/pdftex/source/build/texk/web2c' make: *** [pdftexbin] Fehler 2 -------------------------- This is a well-known problem with recent glibc that's of course solved in stable, because that is based on TL2010. Fixing this is complicated by the fact that since the time trunk started rotting we got a new release of TeX, so a fix is much more complicated then copying pdftexdir into a TL2010 tree, as the old change files won't tangle anymore. :-( So my question is: Is there a minimal fix that fixes just the getline problem and makes trunk _as_is_ compile again? Thanks in advance Martin
Hi Martin,
So my question is: Is there a minimal fix that fixes just the getline problem and makes trunk _as_is_ compile again?
I'm compiling pdftex-trunk (not qstex) with WEB2C-2010 and with the latest synctex, but on windows, so I don't know 'build system'. I only attach a patch for pdftex.web and pdftex.ch. Thanks, Akira
participants (2)
-
Akira Kakuto
-
Martin Schröder