xmltoolingtest --without-xmlsec
Ferenc Wágner
wferi at niif.hu
Wed Jul 6 21:03:53 UTC 2016
Hi Scott,
Can you build xmltoolingtest if you configure xmltooling
--without-xmlsec? While working on including the test run in the
package build, I got errors like
[...]
g++ -DHAVE_CONFIG_H -I. -I.. -I../xmltooling -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -O2 -DNDEBUG -c -o xmltoolingtest-TemplateEngineTest.o `test -f 'TemplateEngineTest.cpp' || echo './'`TemplateEngineTest.cpp
g++ -DHAVE_CONFIG_H -I. -I.. -I../xmltooling -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -O2 -DNDEBUG -c -o xmltoolingtest-xmltoolingtest.o `test -f 'xmltoolingtest.cpp' || echo './'`xmltoolingtest.cpp
In file included from KeyInfoTest.cpp:17:0:
KeyInfoTest.h:27:17: error: 'xmlsignature' is not a namespace-name
using namespace xmlsignature;
^
KeyInfoTest.h:27:29: error: expected namespace-name before ';' token
using namespace xmlsignature;
^
[...]
Before noticing this, I did some cleanup on the build system, and with
those changes in place compilation gets through, but linking still
fails:
/bin/bash ../libtool --tag=CXX --mode=link g++ -Wall -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -O2 -DNDEBUG -fPIE -pie -Wl,-z,relro -Wl,-z,now -lpthread -o xmltoolingtest xmltoolingtest-xmltoolingtest.o xmltoolingtest-ComplexXMLObjectTest.o xmltoolingtest-DateTimeTest.o xmltoolingtest-ExceptionTest.o xmltoolingtest-KeyInfoTest.o xmltoolingtest-MarshallingTest.o xmltoolingtest-NonVisibleNamespaceTest.o xmltoolingtest-SOAPTest.o xmltoolingtest-UnmarshallingTest.o xmltoolingtest-TemplateEngineTest.o ../xmltooling/libxmltooling-lite.la -lxerces-c
libtool: link: g++ -Wall -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -O2 -DNDEBUG -fPIE -pie -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/xmltoolingtest xmltoolingtest-xmltoolingtest.o xmltoolingtest-ComplexXMLObjectTest.o xmltoolingtest-DateTimeTest.o xmltoolingtest-ExceptionTest.o xmltoolingtest-KeyInfoTest.o xmltoolingtest-MarshallingTest.o xmltoolingtest-NonVisibleNamespaceTest.o xmltoolingtest-SOAPTest.o xmltoolingtest-UnmarshallingTest.o xmltoolingtest-TemplateEngineTest.o -lpthread ../xmltooling/.libs/libxmltooling-lite.so -lxerces-c
xmltoolingtest-MarshallingTest.o: In function `SimpleXMLObject::processChildElement(xmltooling::XMLObject*, xercesc_3_1::DOMElement const*)':
/build/xmltooling-gqvd8n/xmltooling-1.6.0/xmltoolingtest/XMLObjectBaseTestCase.h:152: undefined reference to `typeinfo for xmlsignature::Signature'
xmltoolingtest-MarshallingTest.o:(.data.rel.ro._ZTC15SimpleXMLObject144_N10xmltooling27AbstractXMLObjectMarshallerE[_ZTV15SimpleXMLObject]+0x1e0): undefined reference to `xmltooling::AbstractXMLObjectMarshaller::marshall(xercesc_3_1::DOMDocument*, std::vector<xmlsignature::Signature*, std::allocator<xmlsignature::Signature*> > const*, xmltooling::Credential const*) const'
[...]
which sounds somewhat reasonable, as the lite library does not support
signatures. With xmlsec everything works with or without my changes.
--
Feri
More information about the Pkg-shibboleth-devel
mailing list