Hi all, building the latest version of kmymoney in clean chroot fails on Arch Linux i686 with the below error message. The package builds fine on x86 architecture with exactly the same build instructions - https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/kmymoney ... [ 73%] Building CXX object kmymoney/mymoney/storage/CMakeFiles/mymoneyseqaccessmgrtest.dir/mymoneyseqaccessmgrtest_automoc.cpp.o [ 73%] Linking CXX executable mymoneyseqaccessmgrtest CMakeFiles/mymoneyseqaccessmgrtest.dir/mymoneyseqaccessmgrtest.cpp.o: In function `MyMoneySeqAccessMgrTest::testEmptyConstructor()': mymoneyseqaccessmgrtest.cpp:(.text+0x145d7): undefined reference to `bool QTest::qCompare<unsigned int, unsigned long>(unsigned int const&, unsigned long const&, char const*, char const*, char const*, int)' mymoneyseqaccessmgrtest.cpp:(.text+0x14625): undefined reference to `bool QTest::qCompare<unsigned int, unsigned long>(unsigned int const&, unsigned long const&, char const*, char const*, char const*, int)' mymoneyseqaccessmgrtest.cpp:(.text+0x14672): undefined reference to `bool QTest::qCompare<unsigned int, unsigned long>(unsigned int const&, unsigned long const&, char const*, char const*, char const*, int)' mymoneyseqaccessmgrtest.cpp:(.text+0x146bf): undefined reference to `bool QTest::qCompare<unsigned int, unsigned long>(unsigned int const&, unsigned long const&, char const*, char const*, char const*, int)' mymoneyseqaccessmgrtest.cpp:(.text+0x1470c): undefined reference to `bool QTest::qCompare<unsigned int, unsigned long>(unsigned int const&, unsigned long const&, char const*, char const*, char const*, int)' CMakeFiles/mymoneyseqaccessmgrtest.dir/mymoneyseqaccessmgrtest.cpp.o:mymoneyseqaccessmgrtest.cpp:(.text+0x14759): more undefined references to `bool QTest::qCompare<unsigned int, unsigned long>(unsigned int const&, unsigned long const&, char const*, char const*, char const*, int)' follow collect2: error: ld returned 1 exit status make[2]: *** [kmymoney/mymoney/storage/CMakeFiles/mymoneyseqaccessmgrtest.dir/build.make:192: kmymoney/mymoney/storage/mymoneyseqaccessmgrtest] Error 1 make[1]: *** [CMakeFiles/Makefile2:2740: kmymoney/mymoney/storage/CMakeFiles/mymoneyseqaccessmgrtest.dir/all] Error 2 make: *** [Makefile:161: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...
This should fix it: https://git.reviewboard.kde.org/r/128204/
Git commit 29ab40829f86f6bd32229ededcc09bf2736e67bd by Cristian Oneț. Committed on 17/06/2016 at 09:50. Pushed by conet into branch '4.8'. Fix the tests of the 4.8 build. Do this by backporting the change that is already in frameworks in commit 77085ff468336f26f6bcf5f2a1a08e16409172e6. Did not use cherry pick because the testfile was moved in frameworks. M +1 -1 kmymoney/mymoney/storage/mymoneymap.h M +26 -26 kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp http://commits.kde.org/kmymoney/29ab40829f86f6bd32229ededcc09bf2736e67bd
*** Bug 364387 has been marked as a duplicate of this bug. ***