Bug#191942: tetex-bin: Fails to build with current flex
Package: tetex-bin
Version: 2.0.2-3
Severity: serious
>From my build log:
...
make[4]: Entering directory `/tmp/buildd/tetex-bin-2.0.2/texk/web2c/omegafonts'
bison -y -d -v ./pl.y
test -f y.tab.c && mv -f y.tab.c y_tab.c
test -f y.tab.h && mv -f y.tab.h y_tab.h
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I.. -I./.. -g -O2 -c omfonts.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I.. -I./.. -g -O2 -c y_tab.c
flex ./pl.l
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I.. -I./.. -g -O2 -c lex.yy.c
./pl.l: In function `scan_string':
./pl.l:462: `yytext_ptr' undeclared (first use in this function)
./pl.l:462: (Each undeclared identifier is reported only once
./pl.l:462: for each function it appears in.)
make[4]: *** [lex.yy.o] Error 1
make[4]: Leaving directory `/tmp/buildd/tetex-bin-2.0.2/texk/web2c/omegafonts'
make[3]: *** [omegafonts/omfonts] Error 2
make[3]: Leaving directory `/tmp/buildd/tetex-bin-2.0.2/texk/web2c'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/tmp/buildd/tetex-bin-2.0.2/texk'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/tmp/buildd/tetex-bin-2.0.2'
make: *** [build-stamp] Error 2
I fixed this by moving the definition of scan_string to the %{ ... %}
section at the top. All the other flex files compiled with no
problems.
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux frobnitz 2.4.21-pre5 #1 Sat Mar 1 09:01:10 PST 2003 i686
Locale: LANG=C, LC_CTYPE=C
--
Daniel Schepler "Please don't disillusion me. I
schepler@math.berkeley.edu haven't had breakfast yet."
-- Orson Scott Card
Reply to: