difficulty building shibboleth SP from source on RHEL6 for Apache 2.4

Paul Beckett (ITCS) P.Beckett at uea.ac.uk
Thu Sep 13 07:12:30 EDT 2012


I've also given the RPM and SRPM route (rather than building everything from source) Scott suggested a go too, but the rebuild is failing for me... this is not something I've done before, so sorry if I'm doing something obvious wrong. I've read the wiki page, but have had difficulty finding much about it in the list-archive.

To do this I:
- Added RHEL6 repo details.
- Ran (multiple yum installs as I kept realising I still needed more bits):
	yum install log4shib.x86_64 opensaml.x86_64 xerces.x86_64 xml-security.x86_64 xmltooling.x86_64
	yum install rpm-build
	yum install libxerces-c-devel.x86_64 libxml-security-c-devel.x86_64 libxmltooling-devel.x86_64 libsaml-devel.x86_64
	yum install xmltooling-schemas.x86_64
	yum install opensaml-schemas.x86_64

rpmbuild --rebuild --without builtinapache -D 'shib_options --with-apxs=/usr/local/apache/bin/apxs --enable-apache-24 --with-openssl=/usr/local/openssl' shibboleth-2.5.0-2.1.el6.src.rpm

This failed, concluding with:

checking if default apache needed... yes
checking default apache version... configure: error: unusable apache versions: . Try setting --with-apxs
error: Bad exit status from /var/tmp/rpm-tmp.O1w8DW (%build)


RPM build errors:
    line 14: prereq is deprecated: PreReq:              xmltooling-schemas(x86-64) >= 1.5.0, opensaml-schemas(x86-64) >= 2.5.0
    Bad exit status from /var/tmp/rpm-tmp.O1w8DW (%build)

Any help will be greatly appreciated. Thanks,
Paul




>-----Original Message-----
>From: users-bounces at shibboleth.net [mailto:users-bounces at shibboleth.net]
>On Behalf Of Cantor, Scott
>Sent: Wednesday, September 12, 2012 5:07 PM
>To: Shib Users
>Subject: Re: difficulty building shibboleth SP from source on RHEL6 for
>Apache 2.4
>
>On 9/12/12 12:01 PM, "Paul Beckett (ITCS)" <P.Beckett at uea.ac.uk> wrote:
>>./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
>
>As a starting point, you're telling it to build for Apache 2.0, not 2.4.
>Fix that and see what happens. I'd also scour the config log and make
>sure
>it's using the Apache dev files you want it to. Probably making sure the
>built-in httpd-dev module isn't there would be good.
>
>As a rule, don't build from source. Install RPMs for everything but the
>SP
>part and then use rpmbuild to rebuild the RPM against your Apache. The
>wiki has some material on that I think, as does the list archive.
>
>-- Scott
>
>
>--
>To unsubscribe from this list send an email to users-
>unsubscribe at shibboleth.net


More information about the users mailing list