编译安装shibboleth-sp遇到的问题
来源:互联网 发布:网络的利与弊400字 编辑:程序博客网 时间:2024/05/18 02:13
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' was 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' was not declared in this scope
安装shibboleth-sp时一直报这个错,搞了好几天,查谷歌,百度都没找到解决办法
无奈之下,从源码下手,去找原因,
从谷歌得知这个问题是apache中include文件夹下的httpd.h没有ap_http_method这个方法
于是我搜索apache的源码,从change文件里找到了原因,原来http2.2.14中ap_http_method已经被ap_http_scheme替代
这样写的:
ap_http_scheme() replaced with ap_http_method() - this function
returns the scheme (http v.s. https)
终于找到问题所在,看来shibboleth-sp-2.5.3源码包是有bug的,然后打开源码包中的mod_shib.cpp文件把
return m_sc->szScheme ? m_sc->szScheme : ap_http_scheme(m_req);
改为return m_sc->szScheme ? m_sc->szScheme : ap_http_scheme(m_req);
重新编译,问题解决!!!
- 编译安装shibboleth-sp遇到的问题
- 基于shibboleth的分布式认证之SP配置
- mosquitto1.4 编译安装遇到的问题
- MatConvNet编译安装遇到的问题
- CentOS7 编译安装qbittorrent遇到的问题
- php编译安装以及遇到的问题
- Shibboleth IDP 的安装和部署配置步骤(Tomcat部署)
- 编译遇到的问题
- Shibboleth有关的资料
- 编译安装php+apache中遇到的问题
- cloudstack 编译后yum安装遇到的问题
- 编译安装 LNMP架构及遇到的问题
- windows 64位 vs2010 编译安装Openssl 遇到的问题
- json-c 编译安装 和 遇到的问题
- #PYTHON# 编译并安装第三方模块遇到的问题
- 编译安装 MQTT mosquitto 遇到的问题和解法
- Ubuntu 自己编译安装wireshark遇到的问题和解决方法
- 手动编译安装lamp 遇到的问题与解决方法
- netty3.2.3源码分析--ServerBootstrap启动分析
- 21天战拖记——Day1:不算好的开始(2014-05-04)
- Android:自定义控件
- UNIX时间及相关概念
- 2014年中国互联网行业发展趋势分析
- 编译安装shibboleth-sp遇到的问题
- 阿里巴巴的野心:大数据搬家记
- 第一范式、第二范式及第三范式的定义与举例 and SQL常用函数集锦
- struts2---校验器
- LINUX下编译安装PROTOBUF
- 移动互联网
- 好玩的图形函数
- leetcode-Climbing Stairs
- C++单例singleton模式_legend