Compiling errors when compiling opensaml from git
Master Devops
world at masterdevops.eu
Fri Mar 6 06:35:44 EST 2020
Hi,
I am trying to compile opensaml from git. These are basically my
commands for that
----------
#
# download xml-security-c-2.0.2.tar.gz
#
wget
https://downloads.apache.org/santuario/c-library/xml-security-c-2.0.2.tar.gz
tar xvf xml-security-c-2.0.2.tar.gz
#
# build xml-security-c
#
pushd xml-security-c-2.0.2
./configure --prefix="$XSEC_DIR"
make
make install
popd
#
# download xmltooling
#
git clone https://git.shibboleth.net/git/cpp-xmltooling.git
#
# build xmltooling
#
pushd cpp-xmltooling
autoreconf -i
./configure --prefix="$XMLTOOLING_DIR"
make
make install
popd
#
# download cpp-opensaml
#
git clone https://git.shibboleth.net/git/cpp-opensaml.git
#
# build opensaml
#
export
PKG_CONFIG_PATH="${XSEC_DIR}/lib/pkgconfig:${XMLTOOLING_DIR}/lib/pkgconfig:${PKG_CONFIG_PATH}"
export CFLAGS="-I${XSEC_DIR}/include -I${XMLTOOLING_DIR}/include "
export CXXFLAGS="-I${XSEC_DIR}/include -I${XMLTOOLING_DIR}/include "
pushd cpp-opensaml
autoreconf -i
./configure --prefix="$OPENSAML_DIR"
make
popd
----------
But when I call these commands, I get these errors at the end:
----------
In file included from saml2/metadata/MetadataFilter.h:27,
from SAMLConfig.cpp:53:
../saml/saml2/metadata/MetadataProvider.h:68:70: error: invalid use of
incomplete type 'class xmltooling::CredentialResolver'
class SAML_API MetadataProvider : public virtual
xmltooling::CredentialResolver
^~~~~~~~~~~~~~~~~~
In file included from saml2/core/Protocols.h:30,
from SAMLConfig.cpp:50:
../saml/saml2/core/Assertions.h:43:23: note: forward declaration of
'class xmltooling::CredentialResolver'
class XMLTOOL_API CredentialResolver;
^~~~~~~~~~~~~~~~~~
SAMLConfig.cpp: In member function 'virtual void
opensaml::SAMLInternalConfig::generateRandomBytes(void*, unsigned int)':
SAMLConfig.cpp:240:19: error: 'XMLSecurityException' was not declared in
this scope
throw XMLSecurityException("Unable to generate random data;
was PRNG seeded?");
^~~~~~~~~~~~~~~~~~~~
SAMLConfig.cpp:240:19: note: suggested alternative:
'XSECCryptoException'
throw XMLSecurityException("Unable to generate random data;
was PRNG seeded?");
^~~~~~~~~~~~~~~~~~~~
XSECCryptoException
SAMLConfig.cpp:243:15: error: 'XMLSecurityException' was not declared in
this scope
throw XMLSecurityException("Unable to generate random data:
$1",params(1,e.getMsg()));
^~~~~~~~~~~~~~~~~~~~
SAMLConfig.cpp:243:15: note: suggested alternative:
'XSECCryptoException'
throw XMLSecurityException("Unable to generate random data:
$1",params(1,e.getMsg()));
^~~~~~~~~~~~~~~~~~~~
XSECCryptoException
make[2]: *** [Makefile:1280: libsaml_la-SAMLConfig.lo] Error 1
make[2]: Leaving directory '/root/cpp-opensaml/saml'
make[1]: *** [Makefile:583: all-recursive] Error 1
make[1]: Leaving directory '/root/cpp-opensaml'
make: *** [Makefile:489: all] Error 2
----------
I am sorry if this a dumb question, but I am new to compile opensaml.
What is the problem here? Can somepoint give me some hints?
--
German DevPos site: https://www.masterdevops.eu
More information about the dev
mailing list