difficulty building shibboleth SP from source on RHEL6 for Apache 2.4

Paul Beckett (ITCS) P.Beckett at uea.ac.uk
Wed Sep 12 12:01:08 EDT 2012


I'm running RHEL6, and Apache 2.4.3 (built from source), OpenSSL 1.0.1c (built from source). I would like to use the Shibboleth SP 2.5 for authentication, but haven't been able to build it successfully. If anyone can help point me in the right direction / tell me what I'm doing wrong etc. I would be extremely grateful.

I think the pre-requisites (log4shib-1.0.5, xerces-c-3.1.1, xml-security-c-1.7.0, xmltooling-1.5.0, opensaml-2.5.0 ) are building ok (happy to email output offlist - but too big to be accepted by list), but the shibboleth SP make fails with:

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
make[2]: *** [mod_shib_20_la-mod_shib_20.lo] Error 1
make[2]: Leaving directory `/usr/local/shib/shibboleth-sp-2.5.0/apache'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/shib/shibboleth-sp-2.5.0'
make: *** [all] Error 2



The commands I'm running to build it are:
#log4shib
./configure --disable-static --disable-doxygen --prefix=/usr/local/shibboleth-sp
make
make install

#xerces
./configure --prefix=/usr/local/shibboleth-sp --disable-netaccessor-libcurl
make
make install

#xmlsec
./configure --without-xalan --disable-static --prefix=/usr/local/shibboleth-sp --with-xerces=/usr/local/shibboleth-sp
make
make install

#xmltooling
./configure --with-log4shib=/usr/local/shibboleth-sp --prefix=/usr/local/shibboleth-sp -C
make
make install

#openSAML
./configure --with-log4shib=/usr/local/shibboleth-sp --prefix=/usr/local/shibboleth-sp -C
make
make install

#shib SP
./configure --with-log4shib=/usr/local/shibboleth-sp --prefix=/usr/local/shibboleth-sp --enable-apache-20 --with-apxs=/usr/local/apache/bin/apxs --with-apr=/usr/local/apache/bin/apr-1-config --with-apu=/usr/local/apache/bin/apu-1-config
make


Thanks,
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/users/attachments/20120912/259507e2/attachment.html 


More information about the users mailing list