Skip to content

Linking Crypto-testrunner fails #3688

@FreelancerCGN

Description

@FreelancerCGN

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions