我正在尝试安装fcgi开发工具包。 但是当我做到这一点时,显示出以下错误。 谁能帮帮我? 非常感谢。
**[chivo@localhost fcgi-devel-kit]$ make
(cd libfcgi; make all)
make[1]: Entering directory `/home/chivo/fcgi-devel-kit/libfcgi'
gcc -ansi -pedantic -Wall -Wmissing-prototypes -g -I../include -c -o fcgi_stdio.o fcgi_stdio.c
In file included from fcgi_stdio.c:42:0:
../include/fcgios.h:94:21: warning: ‘struct timeval’ declared inside parameter list
../include/fcgios.h:94:21: warning: its scope is only this definition or declaration, which is probably not what you want
fcgi_stdio.c:54:1: error: initializer element is not constant
fcgi_stdio.c:54:1: error: (near initialization for ‘_fcgi_sF[0].stdio_stream’)
fcgi_stdio.c:54:1: error: initializer element is not constant
fcgi_stdio.c:54:1: error: (near initialization for ‘_fcgi_sF[1].stdio_stream’)
fcgi_stdio.c:54:1: error: initializer element is not constant
fcgi_stdio.c:54:1: error: (near initialization for ‘_fcgi_sF[2].stdio_stream’)
make[1]: *** [fcgi_stdio.o] Error 1
make[1]: Leaving directory `/home/chivo/fcgi-devel-kit/libfcgi'
make: *** [all] Error 2**
我正在使用fedora 14,gcc(GCC)4.5.1 20100924(Red Hat 4.5.1-4)。我已经在这个位置下载了最新版本的fcgi_dev_kit:http://www.fastcgi.com/om_archive/applibs/
答案 0 :(得分:0)
您尝试构建的版本非常陈旧,并且与当前系统存在一些不兼容性。我在配置阶段遇到错误。
我在主页上尝试了较新的版本,并且在编译阶段发生了错误(微不足道)的事件。
您最好获取最新版本并继续使用...