Error compiling OpenSAML: invalid use of incomplete type 'struct xmltooling::CredentialResolver'
Jim Faut
jim.faut at okta.com
Fri Oct 12 19:38:49 EDT 2018
I’ve been working on compiling the Shibboleth SP source on a RHEL 6 server. I’ve been successful compiling all of the dependencies up to OpenSAML. I’m stumped by this error. I guess it’s not finding my xmltooling headers properly, but I don’t understand why that would be the case.
Following the documentation, I ran the following command:
./configure --with-log4shib=/opt/shibboleth-sp --prefix=/opt/shibboleth-sp -C
I see the following output from configure, which looks good:
checking for log4shib... yes
checking for xerces-c >= 3.2... yes
checking for xml-security-c >= 2... yes
checking for xmltooling >= 3... yes
Here is the error that I’m seeing when I run make.
make[2]: Entering directory `/home/jfaut/workspace/opensaml-3.0.0/saml'
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/local/include -I/opt/shibboleth-sp/include -I/usr/local/include -pthread -I/opt/shibboleth-sp/include -I/usr/local/include -pthread -I/opt/shibboleth-sp/include -Wall -O2 -DNDEBUG -MT libsaml_la-SAMLConfig.lo -MD -MP -MF .deps/libsaml_la-SAMLConfig.Tpo -c -o libsaml_la-SAMLConfig.lo `test -f 'SAMLConfig.cpp' || echo './'`SAMLConfig.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/local/include -I/opt/shibboleth-sp/include -I/usr/local/include -pthread -I/opt/shibboleth-sp/include -I/usr/local/include -pthread -I/opt/shibboleth-sp/include -Wall -O2 -DNDEBUG -MT libsaml_la-SAMLConfig.lo -MD -MP -MF .deps/libsaml_la-SAMLConfig.Tpo -c SAMLConfig.cpp -fPIC -DPIC -o .libs/libsaml_la-SAMLConfig.o
In file included from saml2/metadata/MetadataFilter.h:27,
from SAMLConfig.cpp:53:
../saml/saml2/metadata/MetadataProvider.h:69: error: invalid use of incomplete type ‘struct xmltooling::CredentialResolver’
../saml/saml2/core/Assertions.h:43: error: forward declaration of ‘struct xmltooling::CredentialResolver’
SAMLConfig.cpp: In member function ‘virtual void opensaml::SAMLInternalConfig::generateRandomBytes(void*, unsigned int)’:
SAMLConfig.cpp:240: error: ‘XMLSecurityException’ was not declared in this scope
SAMLConfig.cpp:243: error: ‘XMLSecurityException’ was not declared in this scope
make[2]: *** [libsaml_la-SAMLConfig.lo] Error 1
Any thoughts?
Thanks,
Jim
Jim Faut
Cloud Enterprise Architect
(415) 598-7287
jim.faut at okta.com<mailto:jim.faut at okta.com>
[signature_1362652639]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20181012/5d24fad9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 3590 bytes
Desc: image001.png
URL: <http://shibboleth.net/pipermail/dev/attachments/20181012/5d24fad9/attachment.png>
More information about the dev
mailing list