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

Thomas Baumgart thb at net-bembel.de
Thu May 2 10:02:25 UTC 2013


Hi,

On Thursday 02 May 2013 11:10:48 Dr.-Ing. Edgar Alwers wrote:

> 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/mymoneydataba
> semgrtest.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/mymoneydatab
> asemgrtest.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 ?

Was it this fix?

https://projects.kde.org/projects/extragear/office/kmymoney/repository/diff/kmymoney/mymoney/storage/mymoneydatabasemgrtest.cpp?rev=9b6f96a38b8c84cb87bb07165b503acbe5ea81ff&rev_to=4da92dfa03209670bddb7801926a25741c0ad6ec

-- 

Regards

Thomas Baumgart

GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
You cannot strengthen the weak by weakening the strong.
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 225 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kmymoney/attachments/20130502/fea6b7ae/attachment.sig>


More information about the KMyMoney mailing list