Article Title: error message in compiling boa-0.94-13 in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Compile a c System in linux, including the lexical and syntax analysis modules.
Yacc is a generator of grammar analyzer. bison is the GNU version of yacc. Lex and YACC are tools used to construct lexical analyzer and syntax interpreter. With Lex and YACC, you can easily construct a syntax interpreter.
Make
Error 1:
Debian:/home/a/boa-0.94.13/src # make
Yacc-d boa_grammar.y
Make: yacc: Command not found
Make: *** [y. tab. c] Error 127
Solution:
Debian:/home/a/boa-0.94.13/src # apt-get install bison
Error 2:
Debian:/home/a/boa-0.94.13/src # make
Lex boa_lexer.l
Make: lex: Command not found
Make: *** [lex. yy. c] Error 127
Solution:
Debian:/home/a/boa-0.94.13/src # apt-get install flex
Error 3:
Debian:/home/a/sss/boa-0.94.13/src # make
Gcc-g-O2-pipe-Wall-I.-c-o util. o util. c
Util. c: 100: 1: error: pasting "t" and "->" does not give a valid preprocessing token
Make: *** [util. o] Error 1
Solution:
Modify src/compat. h
Find
# Define TIMEZONE_OFFSET (foo) foo #-> tm_gmtoff
Modify
# Define TIMEZONE_OFFSET (foo)-> tm_gmtoff
Then
Debian:/home/a/sss/boa-0.94.13/src # make clean
Debian:/home/a/sss/boa-0.94.13/src # make
Appears:
Debian:/home/a/sss/boa-0.94.13/src # make
Make: Nothing to be done for 'all '.
It indicates that make does not check what needs to be compiled. The library or application has been compiled.
Make mainly checks the timestamp. It does not need to be compiled as long as the target is later than the dependent file time.