Issues encountered in compiling and installing SHIBBOLETH-SP

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.