updated wrt lex/flex
This commit is contained in:
8
README
8
README
@@ -37,10 +37,10 @@ System requirements
|
|||||||
|
|
||||||
Sudo requires a machine running UN*X (most flavors of BSD, SYSV, or
|
Sudo requires a machine running UN*X (most flavors of BSD, SYSV, or
|
||||||
POSIX will do), a C compiler, and a yacc-compatible parser generator
|
POSIX will do), a C compiler, and a yacc-compatible parser generator
|
||||||
(yacc, byacc, bison). If you wish to modify the tokenizer then a
|
(yacc, byacc, bison). If you wish to modify the tokenizer then you
|
||||||
version of lex or flex is required (sudo comes with a pre-flex'd
|
will need flex version 2.5.2 or later. (sudo comes with a pre-flex'd
|
||||||
tokenizer). Note that there are a lot of broken lex's out there
|
tokenizer). You can get flex via anonymous ftp from
|
||||||
so I really recommend using flex (ftp://ftp.ee.lbl.gov/pub/flex*).
|
ftp://ftp.ee.lbl.gov/pub/flex* as well as any GNU mirror.
|
||||||
|
|
||||||
Building the release
|
Building the release
|
||||||
===================
|
===================
|
||||||
|
@@ -79,13 +79,6 @@ A) Yes, the s/key support requires that you use tgetpass() since
|
|||||||
to get tgetpass() to work, send mail to sudo-bugs@cs.colorado.edu
|
to get tgetpass() to work, send mail to sudo-bugs@cs.colorado.edu
|
||||||
if you need help.
|
if you need help.
|
||||||
|
|
||||||
Q) I overwrote the distributed lex.yy.c with a lex-generated one and
|
|
||||||
now sudo does not work.
|
|
||||||
A) The simplest thing to do is "rm -f lex.yy.c ; ln sudo-lex.yy.c lex.yy.c"
|
|
||||||
which will set you back up with a pre-flexed lex.yy.c.
|
|
||||||
If you want to hack on the lexer you should get a copy of flex
|
|
||||||
from ftp.ee.lbl.gov
|
|
||||||
|
|
||||||
Q) My C compiler complains about:
|
Q) My C compiler complains about:
|
||||||
"./options.h", line xx "/*" detected in comment
|
"./options.h", line xx "/*" detected in comment
|
||||||
Should I be worried?
|
Should I be worried?
|
||||||
@@ -93,3 +86,11 @@ A) No, this is due to the way options are commented out in options.h.
|
|||||||
Some ANSI compilers are just a bit too protective.
|
Some ANSI compilers are just a bit too protective.
|
||||||
If anyone have a better way to that is just as easy to uncomment
|
If anyone have a better way to that is just as easy to uncomment
|
||||||
and that doesn't produce a similar warning, please let me know.
|
and that doesn't produce a similar warning, please let me know.
|
||||||
|
|
||||||
|
Q) I modified parse.lex but the Makefile is not generating a new
|
||||||
|
lex.yy.c.
|
||||||
|
A) You need to uncomment the rule in Makefile (or Makefile.in)
|
||||||
|
that generates lex.yy.c from parse.lex. This is not enable
|
||||||
|
by default since sudo comes with a pre-flex'd parse.lex.
|
||||||
|
May sure you are using flex version 2.5.2 or higher--the
|
||||||
|
lex that came with your OS may not like parse.lex.
|
||||||
|
Reference in New Issue
Block a user