SP Compilation Problem

Lukas Hämmerle lukas.haemmerle at switch.ch
Tue Aug 21 08:25:51 EDT 2012


I have a problem when compiling 2.5 on Debian and CentOS. When compiling
the sp itself (log4shib up to opensaml all went fine), the compilation
aborts in the middle with the error below, on Debian as well as CentoS.

On Debian 6.0.5 I ran:
$ ./configure --prefix=$SHIB_HOME --enable-apache-22 \
--with-log4shib=$SHIB_HOME --with-xmltooling=$SHIB_HOME \
--with-saml=$SHIB_HOME -C
$ make
[...]
> /bin/sh ../libtool --silent  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..   -I/opt/shibboleth-sp-2.5/include -I/opt/shibboleth-sp-2.5/include -I/opt/shibboleth-sp-2.5/include -pthread -Wall -O2 -DNDEBUG      -pthread -Wall  -O2 -DNDEBUG -MT LogoutInitiator.lo -MD -MP -MF .deps/LogoutInitiator.Tpo -c -o LogoutInitiator.lo `test -f 'handler/impl/LogoutInitiator.cpp' || echo './'`handler/impl/LogoutInitiator.cpp
> mv -f .deps/LogoutInitiator.Tpo .deps/LogoutInitiator.Plo
> /bin/sh ../libtool --silent  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..   -I/opt/shibboleth-sp-2.5/include -I/opt/shibboleth-sp-2.5/include -I/opt/shibboleth-sp-2.5/include -pthread -Wall -O2 -DNDEBUG      -pthread -Wall  -O2 -DNDEBUG -MT MetadataGenerator.lo -MD -MP -MF .deps/MetadataGenerator.Tpo -c -o MetadataGenerator.lo `test -f 'handler/impl/MetadataGenerator.cpp' || echo './'`handler/impl/MetadataGenerator.cpp
> handler/impl/MetadataGenerator.cpp: In member function 'void shibsp::MetadataGenerator::registerEncryptionMethod(const XMLCh*)':
> handler/impl/MetadataGenerator.cpp:112: error: 's_unicodeStrURIRSA_OAEP' is not a member of 'DSIGConstants'
> handler/impl/MetadataGenerator.cpp:122: error: 's_unicodeStrURIRSA_OAEP' is not a member of 'DSIGConstants'
> handler/impl/MetadataGenerator.cpp:124: error: 's_unicodeStrURIMGF1_SHA1' is not a member of 'DSIGConstants'
> make[3]: *** [MetadataGenerator.lo] Error 1
> make[3]: Leaving directory `/home/haemmer/shibboleth-sp-2.5-build/shibboleth-sp-2.5.0/shibsp'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/haemmer/shibboleth-sp-2.5-build/shibboleth-sp-2.5.0/shibsp'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/haemmer/shibboleth-sp-2.5-build/shibboleth-sp-2.5.0'
> make: *** [all] Error 2

I also tried with/without the switch
'--with-apxs2=/usr/local/apache2/bin/apxs' but same result.

The source code I compile is:
* log4shib-1.0.5
* xml-security-c-1.6.1
* xmltooling-1.5.0
* opensaml-2.5.0
* shibboleth-sp-2.5.0

Via the OS package I get:
* libxerces-c3.1
* openssl 0.9.8
* curl 7.21/7.15

On CentOS 5.8 I ran the same command as above:
[...]
> /bin/sh ../libtool --silent  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..   -I/opt/shibboleth-sp-2.5/include -I/opt/shibboleth-sp-2.5/include -I/opt/shibboleth-sp-2.5/include -pthread -Wall -O2 -DNDEBUG  -I/usr/kerberos/include     -pthread -Wall  -O2 -DNDEBUG -MT LogoutInitiator.lo -MD -MP -MF .deps/LogoutInitiator.Tpo -c -o LogoutInitiator.lo `test -f 'handler/impl/LogoutInitiator.cpp' || echo './'`handler/impl/LogoutInitiator.cpp
> mv -f .deps/LogoutInitiator.Tpo .deps/LogoutInitiator.Plo
> /bin/sh ../libtool --silent  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..   -I/opt/shibboleth-sp-2.5/include -I/opt/shibboleth-sp-2.5/include -I/opt/shibboleth-sp-2.5/include -pthread -Wall -O2 -DNDEBUG  -I/usr/kerberos/include     -pthread -Wall  -O2 -DNDEBUG -MT MetadataGenerator.lo -MD -MP -MF .deps/MetadataGenerator.Tpo -c -o MetadataGenerator.lo `test -f 'handler/impl/MetadataGenerator.cpp' || echo './'`handler/impl/MetadataGenerator.cpp
> handler/impl/MetadataGenerator.cpp: In member function 'void shibsp::MetadataGenerator::registerEncryptionMethod(const XMLCh*)':
> handler/impl/MetadataGenerator.cpp:112: error: 's_unicodeStrURIRSA_OAEP' is not a member of 'DSIGConstants'
> handler/impl/MetadataGenerator.cpp:122: error: 's_unicodeStrURIRSA_OAEP' is not a member of 'DSIGConstants'
> handler/impl/MetadataGenerator.cpp:124: error: 's_unicodeStrURIMGF1_SHA1' is not a member of 'DSIGConstants'
> make[3]: *** [MetadataGenerator.lo] Error 1
> make[3]: Leaving directory `/root/shibboleth-sp-2.5-build/shibboleth-sp-2.5.0/shibsp'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/root/shibboleth-sp-2.5-build/shibboleth-sp-2.5.0/shibsp'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/shibboleth-sp-2.5-build/shibboleth-sp-2.5.0'
> make: *** [all] Error 2

I have no idea what could be wrong here and maybe somebody else has
encountered this error before and can pinpoint to the problem or then
there is a bug somewhere.


Kind Regards
Lukas


-- 
SWITCH
Serving Swiss Universities
--------------------------
Lukas Hämmerle, Central Solutions
Werdstrasse 2, P.O. Box, 8021 Zurich, Switzerland
phone +41 44 268 15 05, direct +41 44 268 15 64
lukas.haemmerle at switch.ch, http://www.switch.ch


More information about the dev mailing list