[Kmymoney] KMyMoney 4.6.3 fails to compile under KDE-4.10.2

Dr.-Ing. Edgar Alwers edgaralwers at gmx.de
Thu May 2 09:10:48 UTC 2013


On Thursday 02 May 2013 08:18:46 Thomas Baumgart wrote:

> The problem is an updated version of libgmp not an updated KDE version. A
> fix  is already in git (master and 4.6 branch) since Feb 1st to solve this
> problem. The following patch needs to be applied to older versions.

> -  mpz_class right = (valueRef() - mpq_class(left)) * denom;
>+  mpz_class right = mpz_class((valueRef() - mpq_class(left)) * denom);

Hi Thomas, 
I made this change, and the error was gone. Thank you very much for the hint.
However, I have now another problem, at 79% of the building process ( the 
first one was at 37%, slowly I am going through :-)   )
quote
-------------------
[ 79%] Building CXX object 
kmymoney/mymoney/storage/CMakeFiles/mymoneydatabasemgrtest.dir/mymoneydatabasemgrtest.cpp.o
In file included from /opt/qt-4.8.4/include/QtCore/QtCore:53:0,
                 from /opt/qt-4.8.4/include/QtTest/QtTest:3,
                 from 
/sources_kde/kmymoney-4.6.3/kmymoney/mymoney/storage/mymoneydatabasemgrtest.cpp:21:
/opt/qt-4.8.4/include/QtCore/qtconcurrentfilter.h: In function 
‘QtConcurrent::ThreadEngineStarter<void> 
QtConcurrent::filterInternal(Sequence&, KeepFunctor, ReduceFunctor)’:
/opt/qt-4.8.4/include/QtCore/qtconcurrentfilter.h:108:47: warning: typedef 
‘Iterator’ locally defined but not used [-Wunused-local-typedefs]
     typedef typename Sequence::const_iterator Iterator;
                                               ^
/sources_kde/kmymoney-4.6.3/kmymoney/mymoney/storage/mymoneydatabasemgrtest.cpp: 
In member function ‘void MyMoneyDatabaseMgrTest::testCreateDb()’:
/sources_kde/kmymoney-4.6.3/kmymoney/mymoney/storage/mymoneydatabasemgrtest.cpp:92:44: 
error: ‘geteuid’ was not declared in this scope
     struct passwd * pwd = getpwuid(geteuid());
                                            ^
make[2]: *** 
[kmymoney/mymoney/storage/CMakeFiles/mymoneydatabasemgrtest.dir/mymoneydatabasemgrtest.cpp.o] 
Error 1
make[1]: *** 
[kmymoney/mymoney/storage/CMakeFiles/mymoneydatabasemgrtest.dir/all] Error 2
make: *** [all] Error 2
-------------------
unquote

Could you please help again ?
Thanks,
Edgar


-- 
Dr.-Ing. Edgar Alwers <edgaralwers at gmx.de>
GPG Key ID:AD5C6F70
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kmymoney/attachments/20130502/944f6d03/attachment-0001.html>


More information about the KMyMoney mailing list