(go) Boa Server make error

Source: Internet
Author: User

Compile a Linux c system, including lexical and parsing modules, with Bison and Flex on Linux.

YACC is the generator of a grammar analyzer, and Bison is the GNU version of YACC. Lex and YACC are tools used to construct lexical analysis machines and grammar interpreters.With Lex and YACC, you can easily construct a grammar interpreter.
First 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
Workaround:
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
Workaround:
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
Workaround:
Modify Src/compat.h
Found it
#define TIMEZONE_OFFSET (foo) foo##->tm_gmtoff
Modified into
#define TIMEZONE_OFFSET (foo) (foo)->tm_gmtoff
And then
debian:/home/a/sss/boa-0.94.13/src# Make Clean
Debian:/home/a/sss/boa-0.94.13/src# make
Appear:
Debian:/home/a/sss/boa-0.94.13/src# make
Make:nothing to is done for ' all '.
Note that make does not check for anything that needs to be compiled, the library or application has been compiled.
Make primarily checks the timestamp, as long as the target is longer than the dependent file, it does not think it needs to be compiled
In addition, there are two more good URLs, you can refer to:
http://blog.csdn.net/hongjiujing/archive/2007/09/22/1795941.aspx
http://blog.csdn.net/truelie/archive/2007/01/31/1499300.aspx

(go) Boa Server make error

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.