简体   繁体   English

Mod_Mono 2.10编译错误

[英]Mod_Mono 2.10 compilation error

I'm currently trying to install Mono 3.0.3 on OpenSUSE. 我目前正在尝试在OpenSUSE上安装Mono 3.0.3。 I've compiled and installed each part (mono 3.0.3, XSP 2.10.1 and Apache HTTPD 2.4.3) from their respective tar balls, but mod_mono 2.10 (and 2.8) both throw compilation errors. 我已经从它们各自的tar球编译和安装了每个部分(mono 3.0.3,XSP 2.10.1和Apache HTTPD 2.4.3),但是mod_mono 2.10(和2.8)都抛出了编译错误。

I've made sure all prefixes are the same when compiling and installing each part: 在编译和安装每个部分时,我确保所有前缀都相同:

./configure --prefix=/usr/local
make
make install

however make causes mod_mono to output the following: 但是make会导致mod_mono输出以下内容:

...SNIP...
mod_mono.c: In function ‘send_initial_data’:
mod_mono.c:1981:44: error: ‘conn_rec’ has no member named ‘remote_ip’
mod_mono.c:2029:54: error: ‘conn_rec’ has no member named ‘remote_ip’
mod_mono.c: In function ‘apache_get_groupid’:
mod_mono.c:403:1: warning: control reaches end of non-void function [-Wreturn-type]
mod_mono.c: In function ‘apache_get_userid’:
mod_mono.c:393:1: warning: control reaches end of non-void function [-Wreturn-type]
mod_mono.c: In function ‘apache_get_username’:
mod_mono.c:413:1: warning: control reaches end of non-void function [-Wreturn-type]
make[1]: *** [mod_mono_la-mod_mono.lo] Error 1

Has anybody seen this before? 有没有人见过这个? Is there a solution? 有解决方案吗? Or does mod_mono simply not work with mono 3.0.3 or Apache 2.4.3? 或者mod_mono根本不适用于mono 3.0.3或Apache 2.4.3?

Looks like the remote_ip member in the apache conn_rec struct has been renamed recently. 看起来apache conn_rec结构中的remote_ip成员最近已被重命名。 The mod_mono you are trying to compile is incompatible with the particular apache version you have. 您尝试编译的mod_mono与您拥有的特定apache版本不兼容。 If this is the only error, it should be easy to fix by simply changing the problematic remote_ip references to client_ip in mod_mono.c . 如果这是唯一的错误,只需将mod_mono.c有问题的remote_ip引用更改为client_ip即可轻松修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM