我正在尝试使用FastCGI编译apache 2.4.17,我搜索了各种教程,大多数教程都包含一个命令,可以从以下链接https://github.com/ByteInternet/libapache-mod-fastcgi中包含和修补。
因此,我没有包含他们的补丁,而是下载了他们的FASTCGI分支,并尝试对其进行编译,我收到以下错误
mod_fastcgi.c:2848: warning: passing argument 5 of 'ap_log_rerror_' makes integer from pointer without a
mod_fastcgi.c:2848: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
mod_fastcgi.c:2863: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2863: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2863: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2863: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2863: error: request for member 'server' in something not a structure or union
mod_fastcgi.c:2863: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2863: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2863: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2863: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2863: error: request for member 'server' in something not a structure or union
mod_fastcgi.c:2863: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2863: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2863: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2863: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2863: error: request for member 'server' in something not a structure or union
mod_fastcgi.c:2863: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2863: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2863: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2863: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2863: error: request for member 'server' in something not a structure or union
mod_fastcgi.c:2863: warning: passing argument 5 of 'ap_log_rerror_' makes integer from pointer without a
mod_fastcgi.c:2863: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
mod_fastcgi.c: In function 'check_access':
mod_fastcgi.c:2909: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2909: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2909: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2909: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2909: error: request for member 'server' in something not a structure or union
mod_fastcgi.c:2909: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2909: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2909: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2909: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2909: error: request for member 'server' in something not a structure or union
mod_fastcgi.c:2909: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2909: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2909: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2909: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2909: error: request for member 'server' in something not a structure or union
mod_fastcgi.c:2909: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2909: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2909: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2909: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2909: error: request for member 'server' in something not a structure or union
mod_fastcgi.c:2909: warning: passing argument 5 of 'ap_log_rerror_' makes integer from pointer without a
mod_fastcgi.c:2909: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
mod_fastcgi.c:2923: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2923: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2923: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2923: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2923: error: request for member 'server' in something not a structure or union
mod_fastcgi.c:2923: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2923: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2923: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2923: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2923: error: request for member 'server' in something not a structure or union
mod_fastcgi.c:2923: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2923: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2923: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2923: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2923: error: request for member 'server' in something not a structure or union
mod_fastcgi.c:2923: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2923: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2923: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2923: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2923: error: request for member 'server' in something not a structure or union
mod_fastcgi.c:2923: warning: passing argument 5 of 'ap_log_rerror_' makes integer from pointer without a
mod_fastcgi.c:2923: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
我已经google了这个错误,它是指向struct的转换错误 但我无法弄清楚mod_fastcgi.c文件中要更改的内容
我正在运行Centos 5.8
这是我用来编译的批处理脚本代码
tar -zxf mod_fastcgi.tar.gz
cd mod_fastcgi
cp Makefile.AP2 Makefile
echo $MAIN_SRC/$APACHE2
make top_dir=$MAIN_SRC/$APACHE2
make install top_dir=$MAIN_SRC/$APACHE2
任何人都可以帮我调试这个,因为我正在尝试从很多个小时仍然没有成功。我也尝试用fastcgi.com的默认tar编译仍然有同样的错误
答案 0 :(得分:1)
我没有使用http://fastcgi.com提供的mod_fastcgi,而是使用apache提供的mod_fcgid编译。
以下是链接https://httpd.apache.org/download.cgi。
以下是我使用的命令:
tar -zxf mod_fcgid.tar.gz
cd mod_fcgid
APXS = path/to/apxs ./configure.apxs