源码安装gawk,编译时出错,请高手看看

编译打包和其他
回复
shushengdmj
帖子: 27
注册时间: 2007-09-12 16:19

源码安装gawk,编译时出错,请高手看看

#1

帖子 shushengdmj » 2010-05-04 20:56

kubuntu 10.04

以下是出错信息,请大家帮我分析下是什么问题,该如何解决,谢谢


gcc -DGAWK -g -O -c -o main.o main.c
In file included from awk.h:31,
from main.c:27:
/usr/lib/gcc/i486-linux-gnu/4.4.3/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/i486-linux-gnu/4.4.3/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
In file included from awk.h:97,
from main.c:27:
protos.h:64: error: conflicting types for ‘fprintf’
protos.h:64: note: a parameter list with an ellipsis can’t match an empty parameter name list declaration
protos.h:78: error: conflicting types for ‘sscanf’
protos.h:78: note: a parameter list with an ellipsis can’t match an empty parameter name list declaration
protos.h:100: warning: conflicting types for built-in function ‘execl’
protos.h:112: error: conflicting types for ‘sprintf’
protos.h:112: note: a parameter list with an ellipsis can’t match an empty parameter name list declaration
make: *** [main.o] 错误 1
回复