Bug 364355

Summary: Building the latest version of kmymoney fails on Arch Linux i686
Product: [Applications] kmymoney Reporter: Jaroslav Lichtblau <jlichtblau>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal CC: lists.jjorge, onet.cristian, ralf.habacker
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 4.8.1,5.0.0
Sentry Crash Report:

Description Jaroslav Lichtblau 2016-06-15 17:48:02 UTC
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...
Comment 1 Cristian Oneț 2016-06-16 07:19:12 UTC
This should fix it:

https://git.reviewboard.kde.org/r/128204/
Comment 2 Cristian Oneț 2016-06-17 09:57:13 UTC
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
Comment 3 Thomas Baumgart 2016-06-19 10:39:01 UTC
*** Bug 364387 has been marked as a duplicate of this bug. ***