[英]FastCGI script can't find libfcgi.so.0 in Apache 2.4.6 and mod_fastcgi
[英]Not able to compile apache2.4.17 with mod_fastcgi
我正在尝试使用FastCGI编译apache 2.4.17,我在各种教程中进行了搜索,并且大多数教程都包含一个命令,该命令可以从以下链接https://github.com/ByteInternet/libapache-mod-fastcgi进行包含和修补。
因此,我没有下载他们的补丁,而是下载了他们的FASTCGI的fork并尝试针对它进行编译,但出现了以下错误
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
我已经用谷歌搜索了此错误及其指向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进行编译,但仍然遇到相同的错误
我没有使用可从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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.