In file included from mod_shib_20.cpp:68:
mod_shib.cpp:118:warning:deprecated conversion from string constant to ' char* '
Mod_shib.cpp:In member function ' Virtual const char* shibtargetapache::getscheme () const ':
Mod_shib.cpp:385:error: ' Ap_http_method ' is not declared in this scope
Mod_shib.cpp:In member function ' virtual std::string shibtargetapache::getremoteaddr () const ':
Mod_shib.cpp:417:error: ' struct Conn_rec ' has no member named ' Remote_ip '
In file included from mod_shib_20.cpp:68:
mod_shib.cpp:In function ' int shib_post_read (request_rec*) ':
mod_shib.cpp:681:warning:unused variable ' RC '
Mod_shib.cpp:In member function ' virtual shibsp::accesscontrol::aclresult_t htaccesscontrol::authorized (const SHIBSP :: Sprequest&, const shibsp::session*) const ':
Mod_shib.cpp:1221:error: ' Ap_requires ' is not declared in this scope
This error has been reported during the installation of SHIBBOLETH-SP. For a few days, check Google. Baidu has not found a way to solve
Helpless under, from the source code, to find the reason,
From Google to know that this problem is Apache in the Include directory of Httpd.h no Ap_http_method this method
So I searched Apache for the source code. From the change file found the reason, the original http2.2.14 Ap_http_method has been ap_http_scheme replaced
Written in this way:
ap_http_scheme () replaced with ap_http_method ()-This function
Returns the scheme (HTTP v.s. HTTPS)
Finally found the problem, it appears that the shibboleth-sp-2.5.3 source code package is a bug, and then open the source code package in the Mod_shib.cpp file
return M_sc->szscheme?
M_sc->szscheme: ap_http_scheme (m_req);
Switch
return M_sc->szscheme? M_sc->szscheme: ap_http_scheme (m_req);
Compile again, solve the problem!!!
Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.
Issues encountered in compiling and installing SHIBBOLETH-SP