当前位置: 技术问答>linux和unix
编译Boa时遇到的问题,大家看看如何解决?
来源: 互联网 发布时间:2015-12-07
本文导语: [root@localhost src]# ./configure;make creating cache ./config.cache checking for gunzip... /bin/gunzip checking for flex... flex checking for yywrap in -lfl... yes checking for bison... bison -y checking for gcc... gcc checking whether the C compiler (gcc ) works.....
[root@localhost src]# ./configure;make
creating cache ./config.cache
checking for gunzip... /bin/gunzip
checking for flex... flex
checking for yywrap in -lfl... yes
checking for bison... bison -y
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking whether make sets ${MAKE}... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for fcntl.h... yes
checking for sys/fcntl.h... yes
checking for limits.h... yes
checking for sys/time.h... yes
checking for sys/select.h... yes
checking for getopt.h... yes
checking for working const... yes
checking for uid_t in sys/types.h... yes
checking for pid_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether setvbuf arguments are reversed... no
checking for unistd.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for getcwd... yes
checking for strdup... yes
checking for strstr... yes
checking for gethostname... yes
checking for gethostbyname... yes
checking for select... yes
checking for socket... yes
checking for inet_aton... yes
checking for scandir... yes
checking for alphasort... yes
checking for tm.tm_gmtoff... yes
checking for tm.tm_zone... yes
checking for sockaddr_in.sin_len... no
checking compile and link profiling code... no
checking whether to compile and link debugging code... yes
checking whether to link with the Dmalloc memory debugger/profiler... no
checking whether to link with the Electric Fence memory debugger... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
bison -y -d boa_grammar.y
gcc -g -O2 -pipe -Wall -I. -c -o y.tab.o y.tab.c
y.tab.c: 在函数 ‘yyparse’ 中:
y.tab.c:986: 警告:隐式声明函数 ‘yylex’
flex boa_lexer.l
gcc -g -O2 -pipe -Wall -I. -c -o lex.yy.o lex.yy.c
boa_lexer.l: 在函数 ‘yylex’ 中:
boa_lexer.l:82: 警告:隐式声明函数 ‘yyerror’
boa_lexer.l: 在顶层:
lex.yy.c:1174: 警告:‘yyunput’ defined but not used
gcc -g -O2 -pipe -Wall -I. -c -o alias.o alias.c
gcc -g -O2 -pipe -Wall -I. -c -o boa.o boa.c
gcc -g -O2 -pipe -Wall -I. -c -o buffer.o buffer.c
gcc -g -O2 -pipe -Wall -I. -c -o cgi.o cgi.c
gcc -g -O2 -pipe -Wall -I. -c -o cgi_header.o cgi_header.c
gcc -g -O2 -pipe -Wall -I. -c -o config.o config.c
gcc -g -O2 -pipe -Wall -I. -c -o escape.o escape.c
gcc -g -O2 -pipe -Wall -I. -c -o get.o get.c
gcc -g -O2 -pipe -Wall -I. -c -o hash.o hash.c
gcc -g -O2 -pipe -Wall -I. -c -o ip.o ip.c
gcc -g -O2 -pipe -Wall -I. -c -o log.o log.c
gcc -g -O2 -pipe -Wall -I. -c -o mmap_cache.o mmap_cache.c
gcc -g -O2 -pipe -Wall -I. -c -o pipe.o pipe.c
gcc -g -O2 -pipe -Wall -I. -c -o queue.o queue.c
gcc -g -O2 -pipe -Wall -I. -c -o read.o read.c
gcc -g -O2 -pipe -Wall -I. -c -o request.o request.c
request.c: 在函数 ‘get_request’ 中:
request.c:84: 警告:传递参数 3 (属于 ‘accept’) 给指针时目标与指针有/无符号不一致gcc -g -O2 -pipe -Wall -I. -c -o response.o response.c
gcc -g -O2 -pipe -Wall -I. -c -o select.o select.c
gcc -g -O2 -pipe -Wall -I. -c -o signals.o signals.c
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] 错误 1
[root@localhost src]#
|
看util.c第100行或附近有什么问题