DemosthenesB
08-10-2003, 04:04 AM
I just finished installing LFS 4.1, and am trying to install xfree86. I got all the files from the xfree website and then go to build it with:WORLDOPTS="" make World 2>&1 | tee xfree-compile.log &&
make install &&
make install.man &&
ln -sf /usr/X11R6/bin /usr/bin/X11 &&
ln -sf /usr/X11R6/lib/X11 /usr/lib/X11 &&
ln -sf /usr/X11R6/include/X11 /usr/include/X11
which is what the BeyondLFS instructed me to do. However, after a while I get an error message that reads:<stdout>: In function `yylex':
<stdout>:1199: `yy_prev_more_offset' undeclared (first use in this function)
<stdout>:1199: (Each undeclared identifier is reported only once
<stdout>:1199: for each function it appears in.)
lexer.l:349: warning: long unsigned int format, long int arg (arg 3)
lexer.l:358: warning: long unsigned int format, long int arg (arg 3)
/usr/include/ctype.h: At top level:
<stdout>:2988: warning: `yy_flex_strlen' defined but not used
make[4]: *** [lexer.o] Error 1
make[4]: Leaving directory `/root/xfree/xc/config/pswrap'
make[3]: *** [../../config/pswrap/pswrap] Error 2
make[3]: Leaving directory `/root/xfree/xc/lib/dps'
make[2]: *** [includes] Error 2
make[2]: Leaving directory `/root/xfree/xc/lib'
make[1]: *** [includes] Error 2
make[1]: Leaving directory `/root/xfree/xc'
make: *** [World] Error 2
I have already tried many times to edit the file(cx/config/pswrap/lexer.c) but line 1199 has NOTHING in it, just a newline, and there is no mention of `yy_prev_more_offset' until around 1220. I can't even find where the function `yylex' starts, so I put a 'static int yy_prev_more_offset' at the rightmost "{" at the top of the file and then do a make Everything
but I've got nothing so far...
Does anyone know how to fix this, or maybe have a working lexer.c file lying around? I've also tried other mirrors(but the packages don't come with that file, it is configured by itself) and the "fixes" and patches from the site.
Any information would help, its so tragic how such a big program could succumb to such a small error, but I guess thats the way with all programs. Thank in advance.
make install &&
make install.man &&
ln -sf /usr/X11R6/bin /usr/bin/X11 &&
ln -sf /usr/X11R6/lib/X11 /usr/lib/X11 &&
ln -sf /usr/X11R6/include/X11 /usr/include/X11
which is what the BeyondLFS instructed me to do. However, after a while I get an error message that reads:<stdout>: In function `yylex':
<stdout>:1199: `yy_prev_more_offset' undeclared (first use in this function)
<stdout>:1199: (Each undeclared identifier is reported only once
<stdout>:1199: for each function it appears in.)
lexer.l:349: warning: long unsigned int format, long int arg (arg 3)
lexer.l:358: warning: long unsigned int format, long int arg (arg 3)
/usr/include/ctype.h: At top level:
<stdout>:2988: warning: `yy_flex_strlen' defined but not used
make[4]: *** [lexer.o] Error 1
make[4]: Leaving directory `/root/xfree/xc/config/pswrap'
make[3]: *** [../../config/pswrap/pswrap] Error 2
make[3]: Leaving directory `/root/xfree/xc/lib/dps'
make[2]: *** [includes] Error 2
make[2]: Leaving directory `/root/xfree/xc/lib'
make[1]: *** [includes] Error 2
make[1]: Leaving directory `/root/xfree/xc'
make: *** [World] Error 2
I have already tried many times to edit the file(cx/config/pswrap/lexer.c) but line 1199 has NOTHING in it, just a newline, and there is no mention of `yy_prev_more_offset' until around 1220. I can't even find where the function `yylex' starts, so I put a 'static int yy_prev_more_offset' at the rightmost "{" at the top of the file and then do a make Everything
but I've got nothing so far...
Does anyone know how to fix this, or maybe have a working lexer.c file lying around? I've also tried other mirrors(but the packages don't come with that file, it is configured by itself) and the "fixes" and patches from the site.
Any information would help, its so tragic how such a big program could succumb to such a small error, but I guess thats the way with all programs. Thank in advance.