您的位置:首页 > 其它

boa编译、移植

2017-01-21 14:51 369 查看
fly@Flyme:src$ make -j2

gcc  -g -O2 -pipe -Wall -I.   -c -o y.tab.o y.tab.c

gcc  -g -O2 -pipe -Wall -I.   -c -o lex.yy.o lex.yy.c

y.tab.c: In function ‘yyparse’:

y.tab.c:1189:7: warning: implicit declaration of function ‘yylex’ [-Wimplicit-function-declaration]

       yychar = yylex ();

       ^

boa_lexer.l: In function ‘yylex’:

boa_lexer.l:82:2: warning: implicit declaration of function ‘yyerror’ [-Wimplicit-function-declaration]

  yyerror("unterminated string constant");

  ^

boa_lexer.l: At top level:

lex.yy.c:1292:17: warning: ‘yyunput’ defined but not used [-Wunused-function]

     static void yyunput (int c, register char * yy_bp )

                 ^

lex.yy.c:1333:16: warning: ‘input’ defined but not used [-Wunused-function]

     static int input  (void)

                ^

gcc  -g -O2 -pipe -Wall -I.   -c -o util.o util.c

In file included from boa.h:50:0,

                 from util.c:26:

util.c: In function ‘get_commonlog_time’:

util.c:100:39: error: pasting "t" and "->" does not give a valid preprocessing token

         time_offset = TIMEZONE_OFFSET(t);

                                       ^

compat.h:120:30: note: in definition of macro ‘TIMEZONE_OFFSET’

 #define TIMEZONE_OFFSET(foo) foo##->tm_gmtoff

                              ^

make: *** [util.o] Error 1

make: *** Waiting for unfinished jobs....

修改为
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: