[Pkg-dns-devel] Bug#868855: softhsm2: FTBFS with cppunit 1.14 (cppunit-config removed)

Rene Engelhard rene at debian.org
Wed Jul 19 13:42:07 UTC 2017


tag 868855 + patch
thanks

Hi,
On Wed, Jul 19, 2017 at 12:36:01PM +0300, Adrian Bunk wrote:
> make[6]: Entering directory '/build/1st/softhsm2-2.2.0/src/lib/crypto/test'
> g++ -DHAVE_CONFIG_H -I. -I../../../..  -I./.. -I./../.. -I./../../common -I./../../cryptoki_compat -I./../../data_mgr -I./../../object_store -I./../../session_mgr -I./../../slot_mgr -I/usr/local/include `cppunit-config --cflags` -Wdate-time -D_FORTIFY_SOURCE=2  -m64 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -fvisibility=hidden -c -o cryptotest.o cryptotest.cpp
> /bin/bash: cppunit-config: command not found
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This the cause. cppunit 1.14 removed it. a pkg-config file is provided since
ages and should be used.

> AESTests.o: In function `AESTests::setUp()':
> softhsm2_2.2.0-3/src/lib/crypto/test/AESTests.cpp:49: undefined reference to `CppUnit::SourceLine::SourceLine(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
> softhsm2_2.2.0-3/src/lib/crypto/test/AESTests.cpp:49: undefined reference to `CppUnit::Message::Message(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
> softhsm2_2.2.0-3/src/lib/crypto/test/AESTests.cpp:49: undefined reference to `CppUnit::Asserter::failIf(bool, CppUnit::Message const&, CppUnit::SourceLine const&)'
> softhsm2_2.2.0-3/src/lib/crypto/test/AESTests.cpp:49: undefined reference to `CppUnit::Message::~Message()'
> ...

And so here you don't have a -lcppunit thus FTBFS.

Trivial patch attached.

Regards,

Rene
-------------- next part --------------
A non-text attachment was scrubbed...
Name: softhsm2.diff
Type: text/x-diff
Size: 24216 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-dns-devel/attachments/20170719/88dd6dfa/attachment.diff>


More information about the pkg-dns-devel mailing list