-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
Poco 1.12.1
Ubuntu 20.04.4 LTS
CMake 3.16.3
The linking of Crypto-testrunner fails.
[ 89%] Linking CXX executable ../../bin/Crypto-testrunner
/usr/bin/ld: ../../lib/libPocoCryptod.a(Envelope.cpp.o): in function std::iterator_traits<Poco::Any const*>::iterator_category std::__iterator_category<Poco::Any const*>(Poco::Any const* const&)': /home/poco/poco-1.12.1-all/Crypto/include/Poco/Crypto/Envelope.h:154: multiple definition of Poco::Crypto::Envelope::getContent() const'; CMakeFiles/Crypto-testrunner.dir/src/EnvelopeTest.cpp.o:/home/poco/poco-1.12.1-all/Crypto/include/Poco/Crypto/Envelope.h:154: first defined here
/usr/bin/ld: ../../lib/libPocoCryptod.a(Envelope.cpp.o): in function std::operator!=(std::allocator<unsigned char> const&, std::allocator<unsigned char> const&)': /home/poco/poco-1.12.1-all/Crypto/include/Poco/Crypto/Envelope.h:160: multiple definition of Poco::Crypto::Envelope::setContent(std::vector<unsigned char, std::allocator > const&)'; CMakeFiles/Crypto-testrunner.dir/src/EnvelopeTest.cpp.o:/home/poco/poco-1.12.1-all/Crypto/include/Poco/Crypto/Envelope.h:160: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Crypto/testsuite/CMakeFiles/Crypto-testrunner.dir/build.make:215: bin/Crypto-testrunner] Error 1
make[1]: *** [CMakeFiles/Makefile2:5146: Crypto/testsuite/CMakeFiles/Crypto-testrunner.dir/all] Error 2
make: *** [Makefile:163: all] Error 2