Bug 263983 - Cannot open Database on start of KMyMoney.
Summary: Cannot open Database on start of KMyMoney.
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-22 16:55 UTC by Russ Fineman
Modified: 2011-05-20 21:26 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (3.48 KB, text/plain)
2011-02-22 05:51 UTC, bugzilla
Details
New crash information added by DrKonqi (3.90 KB, text/plain)
2011-04-01 08:07 UTC, Yözen Hernández
Details
Patch from Alexey <destrd@ya.ru> (464 bytes, patch)
2011-04-23 07:40 UTC, Fernando Vilas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Russ Fineman 2011-01-22 16:55:47 UTC
Application: kmymoney (4.5.0)
KDE Platform Version: 4.5.5 (KDE 4.5.5) "release 1"
Qt Version: 4.6.4
Operating System: Linux 2.6.34.7-0.7-default x86_64
Distribution: "openSUSE 11.3 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:Starting KMM after having shut it down in Database mode. gives error 

Error in function int MyMoneyStorageSql::upgradeDb() : Error retrieving file info(version)
Driver = QMYSQL, Host = localhost, User = finemanruss, Database = 
Driver Error: 
Database Error No -1: 
Text:  
Error type 0
Executed: SELECT version FROM kmmFileInfo;
Query error No 1046: No database selected QMYSQL: Unable to execute query
Error type 2

-- Backtrace:
Application: KMyMoney (kmymoney), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f664dcdd760 (LWP 5462))]

Thread 2 (Thread 0x7f6636054710 (LWP 5463)):
#0  0xffffffffff600177 in ?? ()
#1  0x00007fff9e5ff7a1 in ?? ()
#2  0x00007f6643de12a3 in clock_gettime () from /lib64/librt.so.1
#3  0x00007f664a2ef79f in qt_gettime() () from /usr/lib64/libQtCore.so.4
#4  0x00007f664a2f30ed in QTimerInfoList::updateCurrentTime() () from /usr/lib64/libQtCore.so.4
#5  0x00007f664a2f3475 in QTimerInfoList::timerWait(timeval&) () from /usr/lib64/libQtCore.so.4
#6  0x00007f664a2f20ac in timerSourcePrepareHelper(GTimerSource*, int*) () from /usr/lib64/libQtCore.so.4
#7  0x00007f664a2f2155 in timerSourcePrepare(_GSource*, int*) () from /usr/lib64/libQtCore.so.4
#8  0x00007f6643b38f7f in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#9  0x00007f6643b39e69 in ?? () from /usr/lib64/libglib-2.0.so.0
#10 0x00007f6643b3a510 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#11 0x00007f664a2f2876 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#12 0x00007f664a2c9452 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#13 0x00007f664a2c9655 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#14 0x00007f664a1dfe1f in QThread::exec() () from /usr/lib64/libQtCore.so.4
#15 0x00007f664a2ab518 in QInotifyFileSystemWatcherEngine::run() () from /usr/lib64/libQtCore.so.4
#16 0x00007f664a1e2745 in QThreadPrivate::start(void*) () from /usr/lib64/libQtCore.so.4
#17 0x00007f664b380a4f in start_thread () from /lib64/libpthread.so.0
#18 0x00007f66488a782d in clone () from /lib64/libc.so.6
#19 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f664dcdd760 (LWP 5462)):
[KCrash Handler]
#6  0x00007f6648b33088 in main_arena () from /lib64/libc.so.6
#7  0x0000000000826870 in MyMoneyStorageSql::writeFileInfo (this=0x215b150) at /home/finemanruss/Temp/KMyMoney/build/kmymoney-4.5/kmymoney/mymoney/storage/mymoneystoragesql.cpp:2356
#8  0x00000000008283c7 in MyMoneyStorageSql::close (this=0x215b150, logoff=<value optimized out>)
    at /home/finemanruss/Temp/KMyMoney/build/kmymoney-4.5/kmymoney/mymoney/storage/mymoneystoragesql.cpp:229
#9  0x000000000083a04c in MyMoneyStorageSql::~MyMoneyStorageSql() ()
#10 0x00000000004c99b5 in ~KSharedPtr (this=<value optimized out>, url=<value optimized out>) at /usr/include/ksharedptr.h:90
#11 KMyMoneyView::openDatabase (this=<value optimized out>, url=<value optimized out>) at /home/finemanruss/Temp/KMyMoney/build/kmymoney-4.5/kmymoney/views/kmymoneyview.cpp:828
#12 0x00000000004ca1dd in KMyMoneyView::readFile (this=0xedb560, url=<value optimized out>) at /home/finemanruss/Temp/KMyMoney/build/kmymoney-4.5/kmymoney/views/kmymoneyview.cpp:597
#13 0x0000000000497720 in KMyMoneyApp::slotFileOpenRecent (this=0xc882b0, url=...) at /home/finemanruss/Temp/KMyMoney/build/kmymoney-4.5/kmymoney/kmymoney.cpp:1502
#14 0x000000000045924f in main (argc=1, argv=0x7fff9e53aeb8) at /home/finemanruss/Temp/KMyMoney/build/kmymoney-4.5/kmymoney/main.cpp:247

Possible duplicates by query: bug 252481, bug 250743.

Reported using DrKonqi
Comment 1 Russ Fineman 2011-01-22 16:58:04 UTC
Will test later today on openSUSE11.4 and later version of KMyMoney
Comment 2 Fernando Vilas 2011-01-22 18:26:24 UTC
It looks like the database name is not set. Try starting with "kmymoney -n". Then look at the recently used locations and make sure the database you are selecting has a name.

I am not sure how the most recently used file got stored without a db name. That bears further investigation.
Comment 3 Russ Fineman 2011-01-22 19:55:24 UTC
(In reply to comment #2)
> It looks like the database name is not set. Try starting with "kmymoney -n".
> Then look at the recently used locations and make sure the database you are
> selecting has a name.

On start it has a window that has database type= QMySQL - MySQL, database name = KMyMoney,Host Name = localhost and Username == XXXXXX(actual user name without X's), and Password which is blank. All are greyed out except Password which I type in and give it an OK. That's when the error appears. I then cancel the error etc, and it goes to the welcome to KMyMoney screen. I then go to open Database, it comes up with same pop up except nothing is greyed out, I select MySQl, since it also has an option for QSQLITE - SQLite Version 3. Give it password and Ok and the database comes up correctly.

This happens everytime I shutdown KMyMoney.
> 
> I am not sure how the most recently used file got stored without a db name.
> That bears further investigation.
Comment 4 Tony B 2011-01-24 11:19:42 UTC
This looks exactly like the problem reported in bug 252841, which was fixed in source in October.
Comment 5 bugzilla 2011-02-22 05:51:44 UTC
Created attachment 57431 [details]
New crash information added by DrKonqi

kmymoney (4.5.3) on KDE Platform 4.5.5 (KDE 4.5.5) using Qt 4.7.0

- What I was doing when the application crashed:

I have the exact same problem. It started when I upgraded KMyMoney from 4.5.2 to 4.5.3. When I open KMyMoney it shows a dialog-window where all information about the database conection is right, and I just have to insert the password, but when I click OK, there is an error-message suggesting that no database is selected ("Database = ") when trying to query for version. Then the program crash.

It is possible to open the connection to the database if I choose "Cancel" in the above mentioned dialog-window, and instead choose open database from the file-menu after the program starts (I then need to fill all the information about the database connection again).

-- Backtrace (Reduced):
#7  0x000000000089c450 in MyMoneyStorageSql::writeFileInfo (this=0x1d6bfc0) at /build/buildd/kmymoney-4.5.3/kmymoney/mymoney/storage/mymoneystoragesql.cpp:2356
#8  0x000000000089ea4d in MyMoneyStorageSql::close (this=0x1d6bfc0, logoff=true) at /build/buildd/kmymoney-4.5.3/kmymoney/mymoney/storage/mymoneystoragesql.cpp:229
#9  0x00000000008ba55d in MyMoneyStorageSql::~MyMoneyStorageSql() ()
#10 0x00000000004cc245 in ~KSharedPtr (this=0x13a37b0, url=<value optimized out>) at /usr/include/ksharedptr.h:90
#11 KMyMoneyView::openDatabase (this=0x13a37b0, url=<value optimized out>) at /build/buildd/kmymoney-4.5.3/kmymoney/views/kmymoneyview.cpp:879
Comment 6 Gottfried 2011-03-04 18:02:38 UTC
Same here on WinKDE with PostgreSQL and MySQL
At Startup or open the last recent file (database)

OS: WindowsNT (i686) release Windows 7
KMyMoney
Version 4.5.3
Unter KDE 4.5.4 (KDE 4.5.4)

Error in function int __thiscall MyMoneyStorageSql::open(const class KUrl &,int,bool) : opening database
Driver = QPSQL, Host = ubuntu.local, User = Benutzer, Database = 
Driver Error: QPSQL: Es kann keine Verbindung aufgebaut werden
Database Error No -1: FATAL:  Datenbank >>Benutzer<< existiert nicht

Text: FATAL:  Datenbank >>Benutzer<< existiert nicht
QPSQL: Es kann keine Verbindung aufgebaut werden
Error type 1
Executed: 
Query error No -1:  
Error type 0

in kmymoneyrc the entry seems correct:
LastUsedFile=sql://Benutzer@ubuntu.local/KMyMoney?driver=QPSQL&secure=yes
Comment 7 Fernando Vilas 2011-03-06 15:54:09 UTC
I still cannot duplicate this. I tried changing my LastUsedFile to use secure mode, in case it was something in there that was not fixed in the October 2010 patch. I still successfully connect. 

I may be missing something, though...  Ideas?
Comment 8 Russ Fineman 2011-03-06 19:37:10 UTC
(In reply to comment #7)
> I still cannot duplicate this. I tried changing my LastUsedFile to use secure
> mode, in case it was something in there that was not fixed in the October 2010
> patch. I still successfully connect. 
> 
> I may be missing something, though...  Ideas?

Just tried on openSUSE 11.4 (RC2) with KMyMoney kmymoney-4.5.3-22.2.x86_64.

Get same result. Error when starting, from GUI or command line. If I start with the
 .kmy file instead of database, it starts fine. I can then go to File --> opendata base, select MYSQL  and enter password, it works fine. The other parameters are there but Mysqlite is also shown.

When starting after shutting down using the database, I get the following error:

 Cannot open database sql://finemanruss@localhost/?driver=QMYSQL&options=loadAll&secure=yes

 Error in function int MyMoneyStorageSql::upgradeDb() : Error retrieving file info(version)
 Driver = QMYSQL, Host = localhost, User = finemanruss, Database = 
 Driver Error: 
 Database Error No -1: 
 Text:  
 Error type 0
 Executed: SELECT version FROM kmmFileInfo;
 Query error No 1046: No database selected QMYSQL: Unable to execute query
 Error type 2

Only apparent difference is on startup, QMYSQL - MYSQL is shown, all parameters are greyed out except password. When Starting from File - opendatabase, all parametes are enabled, databases QSQLITE - SQLite Version 3 and QMYSQL - MYSQL choices are presented. Parameters are all there except password. Selecting QMYSL and entering password brings up the database fine.

I will be doing complete clean install when openSUSE 11.4 is released later this week. See if that makes a difference. 

This also happens on openSUSE 11.3 with same hardware except it is on a separate disk drive. 

If you need anything else let me know or if you need a test run.

Note: my 11.3 version has a hand installed version of KMyMoney from working with your group on the problem of duplicate entries in the database. 11.4 is installed from openSUSE 11.4 repo's.
Comment 9 Yözen Hernández 2011-04-01 08:07:09 UTC
Created attachment 58492 [details]
New crash information added by DrKonqi

kmymoney (4.5.0) on KDE Platform 4.6.1 (4.6.1) using Qt 4.7.0

- What I was doing when the application crashed:
Closed the application after having used it in database mode.

- Custom settings of the application:
Database mode, using MySQL (default database name KMyMoney and my username on localhost). Using packages from Kubuntu Maverick PPA.

-- Backtrace (Reduced):
#7  0x000000000089b590 in MyMoneyStorageSql::writeFileInfo (this=0x2551b90) at /build/buildd/kmymoney-4.5/kmymoney/mymoney/storage/mymoneystoragesql.cpp:2356
#8  0x000000000089db8d in MyMoneyStorageSql::close (this=0x2551b90, logoff=true) at /build/buildd/kmymoney-4.5/kmymoney/mymoney/storage/mymoneystoragesql.cpp:229
#9  0x00000000008b969d in MyMoneyStorageSql::~MyMoneyStorageSql() ()
#10 0x00000000004cc625 in ~KSharedPtr (this=0x1090480, url=<value optimized out>) at //usr/include/ksharedptr.h:90
#11 KMyMoneyView::openDatabase (this=0x1090480, url=<value optimized out>) at /build/buildd/kmymoney-4.5/kmymoney/views/kmymoneyview.cpp:877
Comment 10 gh47 2011-04-21 21:29:18 UTC
Me too! Fresh install.
Ubuntu 10.10/Gnome 2.32.0/KMyMoney4.5.2/KDE4.5.1/MYSQL Server version: 5.1.49-1ubuntu8.1/

Start KMyMoney.
The tall database login dialog pops-up on top of everything.
Only one "Database Type" is showing: QMySql:MySQL (greyed out).
It is missing the mysql lite "Database type".

If I cancel at this point I can then make everything work by File-Open Database.
The tall database login dialog pops-up normally and nothing is greyed out and everything
will work. Also, two database types will be visible.

To make it fail: Start KMyMoney, enter the database password.

Cannot open database sql://adam@localhost/?driver=QMYSQL&secure=yes
Error in function int MyMoneyStorageSql::upgradeDb() : Error retrieving file info(version)
Driver = QMYSQL, Host = localhost, User = adam, Database = 
Driver Error: 
Database Error No -1: 
Text:  
Error type 0
Executed: SELECT version FROM kmmFileInfo;
Query error No 1046: No database selected QMYSQL: Unable to execute query
Error type 2

Pressing OK will then pop-up the KDE Crash Handler:
Executable: kmymoney PID: 2799 Signal: 11 (Segmentation fault)
Comment 11 Russ Fineman 2011-04-22 00:48:09 UTC
I'm still having this problem with KDE 4.6.2 release 3, KMyMoney 4.5.3 and openSUSE 11.4 all latest updates. same issues as my original comment and as comment #10. 

MYSQL is greyed out, other fields are correct and correct password is enter by me. Get below error, 
Error in function int MyMoneyStorageSql::upgradeDb() : Error retrieving file info(version)
Driver = QMYSQL, Host = localhost, User = finemanruss, Database = 
Driver Error: 
Database Error No -1: 
Text:  
Error type 0
Executed: SELECT version FROM kmmFileInfo;
Query error No 1046: No database selected QMYSQL: Unable to execute query
Error type 2

If cancel open DB on start and go to KDE main page, select file--> openDatabase, enter correct info after selecting MYSQL and it opens database OK.

Tried all suggestion above none worked.
Comment 12 Fernando Vilas 2011-04-23 07:40:01 UTC
Created attachment 59228 [details]
Patch from Alexey <destrd@ya.ru>

Please try this patch that was suggested. I cannot duplicate the error, so I need someone who is experiencing the problem to test the proposed solution.
Comment 13 gh47 2011-04-23 17:48:37 UTC
(In reply to comment #12)
> Please try this patch that was suggested. I cannot duplicate the error, so I
> need someone who is experiencing the problem to test the proposed solution.

I was unsuccessful in the past at building KMyMoney from source on Ubuntu/Gnome.
You have given me new incentive to try it again.
It might be a few days. I will try your patch then.

Thank you.
Comment 14 gh47 2011-04-25 00:06:09 UTC
(In reply to comment #12)
> Created an attachment (id=59228) [details]
> Patch from Alexey <destrd@ya.ru>
> 
> Please try this patch that was suggested. I cannot duplicate the error, so I
> need someone who is experiencing the problem to test the proposed solution.

Yep! That fixes it. m_sqliteSelected had not been assigned and was holding onto a garbage non-zero value. Thank you!
Comment 15 Russ Fineman 2011-04-26 18:08:06 UTC
Can anyone explain how to apply a patch or point me to a how to for Linux. I will be glad to test this also. The last two nights my system has shutdown correctly, not sure what changed, I did a switch of repo's for KDE 4.6 from Stable to Release. Will see what happens tonight.
Comment 16 Fernando Vilas 2011-04-27 04:33:50 UTC
SVN commit 1229365 by fvilas:

BUG: 263983

Fix opening password protected databases when db was last used file. Patch provided by Alexey <destrd@ya.ru>



 M  +1 -0      kselectdatabasedlg.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1229365
Comment 17 Fernando Vilas 2011-04-27 04:36:19 UTC
@Russ: I just committed the patch to svn trunk. If you can build from there, you should be in good shape. There are directions at http://techbase.kde.org/Projects/KMyMoney#Installation that can get you started.
Comment 18 Russ Fineman 2011-04-27 16:33:47 UTC
(In reply to comment #17)
> @Russ: I just committed the patch to svn trunk. If you can build from there,
> you should be in good shape. There are directions at
> http://techbase.kde.org/Projects/KMyMoney#Installation that can get you
> started.

Thanks I will try building later today. Want to back up my system first. Will post results.
Comment 19 Russ Fineman 2011-05-02 20:51:44 UTC
Fernando, Just got time to try compiling new fixed version. First I cannot find a version of ofxlib-0.9.2 for opensuse. But this appears to be optional for now.

Second following the instructions I get an error in cmake. Output follows:

finemanruss@linux-fj8u:~/Temp/KMyMoney/SVN_Version/kmymoney> ls
astyle-kmymoney.sh  ChangeLog.original               contrib        kmymoney.doxygen.in  README.cmake
AUTHORS             cmake                            COPYING        kmymoney.spec.in     README.Fileformats
BUGS                CMakeLists.txt                   developer-doc  libkdchart           README.ofx
build               config-kmymoney.h.cmake          INSTALL        libkgpgfile          TODO
ChangeLog           config-kmymoney-version.h.cmake  kmymoney       Messages.sh
finemanruss@linux-fj8u:~/Temp/KMyMoney/SVN_Version/kmymoney> cd build
finemanruss@linux-fj8u:~/Temp/KMyMoney/SVN_Version/kmymoney/build> cmake .. -DCMAKE_INSTALL_PREFIX=/usr
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.7.2 (using /usr/bin/qmake)
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- Found Automoc4: /usr/bin/automoc4 
-- Found Perl: /usr/bin/perl 
-- Found Phonon: /usr/include 
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
-- Found KDE 4.6 include dir: /usr/include
-- Found KDE 4.6 library dir: /usr/lib64
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Boost version: 1.44.0
-- Found the following Boost libraries:
--   graph
-- Found gpgme-config at /usr/bin/gpgme-config
-- Found gpgme v1.3.0, checking for flavours...
--  Found flavour 'vanilla', checking whether it's usable...yes
--  Found flavour 'pthread', checking whether it's usable...yes
--  Found flavour 'pth', checking whether it's usable...yes
-- Usable gpgme flavours found:  vanilla pthread pth
-- Found QGpgme: /usr/lib64/libqgpgme.so 
-- Found KdepimLibs: /usr/lib64/cmake/KdepimLibs/KdepimLibsConfig.cmake 
-- Found SharedMimeInfo: /usr/bin/update-mime-database  (found version "0.90", required is "0.18")
-- Found Doxygen: /usr/bin/doxygen 
-- Found GMP: /usr/include 
-- checking for module 'libalkimia'
--   package 'libalkimia' not found
CMake Error at cmake/modules/FindLibalkimia.cmake:69 (MESSAGE):
  Could NOT find Libalkimia
Call Stack (most recent call first):
  CMakeLists.txt:90 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
(In reply to comment #17)
> @Russ: I just committed the patch to svn trunk. If you can build from there,
> you should be in good shape. There are directions at
> http://techbase.kde.org/Projects/KMyMoney#Installation that can get you
> started.

Looked in my installed system (YaST) and cannot find the library mentioned. Did I miss something on getting the SVN? 

Checked as unconfirmed so message would get to you. I know its fixed but I don't know when it will be fixed in the openSUSE repo's.
Comment 20 allan 2011-05-03 00:36:52 UTC
(In reply to comment #19)
> Fernando, Just got time to try compiling new fixed version. First I cannot find
> a version of ofxlib-0.9.2 for opensuse. But this appears to be optional for
> now.
> 
> Second following the instructions I get an error in cmake. Output follows:
> 
> finemanruss@linux-fj8u:~/Temp/KMyMoney/SVN_Version/kmymoney> ls
> astyle-kmymoney.sh  ChangeLog.original               contrib       
> kmymoney.doxygen.in  README.cmake
> AUTHORS             cmake                            COPYING       
> kmymoney.spec.in     README.Fileformats
> BUGS                CMakeLists.txt                   developer-doc  libkdchart 
>          README.ofx
> build               config-kmymoney.h.cmake          INSTALL        libkgpgfile
>          TODO
> ChangeLog           config-kmymoney-version.h.cmake  kmymoney       Messages.sh
> finemanruss@linux-fj8u:~/Temp/KMyMoney/SVN_Version/kmymoney> cd build
> finemanruss@linux-fj8u:~/Temp/KMyMoney/SVN_Version/kmymoney/build> cmake ..
> -DCMAKE_INSTALL_PREFIX=/usr
> -- The C compiler identification is GNU
> -- The CXX compiler identification is GNU
> -- Check for working C compiler: /usr/bin/gcc
> -- Check for working C compiler: /usr/bin/gcc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Looking for Q_WS_X11
> -- Looking for Q_WS_X11 - found
> -- Looking for Q_WS_WIN
> -- Looking for Q_WS_WIN - not found.
> -- Looking for Q_WS_QWS
> -- Looking for Q_WS_QWS - not found.
> -- Looking for Q_WS_MAC
> -- Looking for Q_WS_MAC - not found.
> -- Found Qt-Version 4.7.2 (using /usr/bin/qmake)
> -- Looking for XOpenDisplay in
> /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so
> -- Looking for XOpenDisplay in
> /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so
> - found
> -- Looking for gethostbyname
> -- Looking for gethostbyname - found
> -- Looking for connect
> -- Looking for connect - found
> -- Looking for remove
> -- Looking for remove - found
> -- Looking for shmat
> -- Looking for shmat - found
> -- Looking for IceConnectionNumber in ICE
> -- Looking for IceConnectionNumber in ICE - found
> -- Found X11: /usr/lib64/libX11.so
> -- Looking for include files CMAKE_HAVE_PTHREAD_H
> -- Looking for include files CMAKE_HAVE_PTHREAD_H - found
> -- Looking for pthread_create in pthreads
> -- Looking for pthread_create in pthreads - not found
> -- Looking for pthread_create in pthread
> -- Looking for pthread_create in pthread - found
> -- Found Threads: TRUE 
> -- Looking for _POSIX_TIMERS
> -- Looking for _POSIX_TIMERS - found
> -- Found Automoc4: /usr/bin/automoc4 
> -- Found Perl: /usr/bin/perl 
> -- Found Phonon: /usr/include 
> -- Performing Test _OFFT_IS_64BIT
> -- Performing Test _OFFT_IS_64BIT - Success
> -- Performing Test HAVE_FPIE_SUPPORT
> -- Performing Test HAVE_FPIE_SUPPORT - Success
> -- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
> -- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
> -- Performing Test __KDE_HAVE_GCC_VISIBILITY
> -- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
> -- Found KDE 4.6 include dir: /usr/include
> -- Found KDE 4.6 library dir: /usr/lib64
> -- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
> -- Found automoc4: /usr/bin/automoc4
> -- Boost version: 1.44.0
> -- Found the following Boost libraries:
> --   graph
> -- Found gpgme-config at /usr/bin/gpgme-config
> -- Found gpgme v1.3.0, checking for flavours...
> --  Found flavour 'vanilla', checking whether it's usable...yes
> --  Found flavour 'pthread', checking whether it's usable...yes
> --  Found flavour 'pth', checking whether it's usable...yes
> -- Usable gpgme flavours found:  vanilla pthread pth
> -- Found QGpgme: /usr/lib64/libqgpgme.so 
> -- Found KdepimLibs: /usr/lib64/cmake/KdepimLibs/KdepimLibsConfig.cmake 
> -- Found SharedMimeInfo: /usr/bin/update-mime-database  (found version "0.90",
> required is "0.18")
> -- Found Doxygen: /usr/bin/doxygen 
> -- Found GMP: /usr/include 
> -- checking for module 'libalkimia'
> --   package 'libalkimia' not found
> CMake Error at cmake/modules/FindLibalkimia.cmake:69 (MESSAGE):
>   Could NOT find Libalkimia
> Call Stack (most recent call first):
>   CMakeLists.txt:90 (FIND_PACKAGE)
> 
> 
> -- Configuring incomplete, errors occurred!
> (In reply to comment #17)
> > @Russ: I just committed the patch to svn trunk. If you can build from there,
> > you should be in good shape. There are directions at
> > http://techbase.kde.org/Projects/KMyMoney#Installation that can get you
> > started.
> 
> Looked in my installed system (YaST) and cannot find the library mentioned. Did
> I miss something on getting the SVN? 
> 
> Checked as unconfirmed so message would get to you. I know its fixed but I
> don't know when it will be fixed in the openSUSE repo's.

I think to get OFX 0.9.2, you'll need to compile from source.

For alkimia, there was reference on list on 6 April (see http://mail.kde.org/pipermail/kmymoney-devel/2011-March/004690.html)

Allan
Comment 21 Russ Fineman 2011-05-03 01:20:37 UTC
On Monday, May 02, 2011 03:36:54 PM allan wrote:
> https://bugs.kde.org/show_bug.cgi?id=263983
> 
> 
> allan <agander93@gmail.com> changed:
> 
>            What    |Removed                     |Added
> ---------------------------------------------------------------------
> ------- CC|                            |agander93@gmail.com
> 
> 
> 
> 
> --- Comment #20 from allan <agander93 gmail com>  2011-05-03 00:36:52
> --- (In reply to comment #19)
> 
> > Fernando, Just got time to try compiling new fixed version. First I
> > cannot find a version of ofxlib-0.9.2 for opensuse. But this
> > appears to be optional for now.
> > 
> > Second following the instructions I get an error in cmake. Output
> > follows:
> > 
> > finemanruss@linux-fj8u:~/Temp/KMyMoney/SVN_Version/kmymoney> ls
> > astyle-kmymoney.sh  ChangeLog.original               contrib
> > kmymoney.doxygen.in  README.cmake
> > AUTHORS             cmake                            COPYING
> > kmymoney.spec.in     README.Fileformats
> > BUGS                CMakeLists.txt                   developer-doc 
> > libkdchart
> > 
> >          README.ofx
> > 
> > build               config-kmymoney.h.cmake          INSTALL       
> > libkgpgfile
> > 
> >          TODO
> > 
> > ChangeLog           config-kmymoney-version.h.cmake  kmymoney      
> > Messages.sh
> > finemanruss@linux-fj8u:~/Temp/KMyMoney/SVN_Version/kmymoney> cd
> > build
> > finemanruss@linux-fj8u:~/Temp/KMyMoney/SVN_Version/kmymoney/build>
> > cmake .. -DCMAKE_INSTALL_PREFIX=/usr
> > -- The C compiler identification is GNU
> > -- The CXX compiler identification is GNU
> > -- Check for working C compiler: /usr/bin/gcc
> > -- Check for working C compiler: /usr/bin/gcc -- works
> > -- Detecting C compiler ABI info
> > -- Detecting C compiler ABI info - done
> > -- Check for working CXX compiler: /usr/bin/c++
> > -- Check for working CXX compiler: /usr/bin/c++ -- works
> > -- Detecting CXX compiler ABI info
> > -- Detecting CXX compiler ABI info - done
> > -- Looking for Q_WS_X11
> > -- Looking for Q_WS_X11 - found
> > -- Looking for Q_WS_WIN
> > -- Looking for Q_WS_WIN - not found.
> > -- Looking for Q_WS_QWS
> > -- Looking for Q_WS_QWS - not found.
> > -- Looking for Q_WS_MAC
> > -- Looking for Q_WS_MAC - not found.
> > -- Found Qt-Version 4.7.2 (using /usr/bin/qmake)
> > -- Looking for XOpenDisplay in
> > /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/us
> > r/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so --
> > Looking for XOpenDisplay in
> > /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/us
> > r/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so -
> > found
> > -- Looking for gethostbyname
> > -- Looking for gethostbyname - found
> > -- Looking for connect
> > -- Looking for connect - found
> > -- Looking for remove
> > -- Looking for remove - found
> > -- Looking for shmat
> > -- Looking for shmat - found
> > -- Looking for IceConnectionNumber in ICE
> > -- Looking for IceConnectionNumber in ICE - found
> > -- Found X11: /usr/lib64/libX11.so
> > -- Looking for include files CMAKE_HAVE_PTHREAD_H
> > -- Looking for include files CMAKE_HAVE_PTHREAD_H - found
> > -- Looking for pthread_create in pthreads
> > -- Looking for pthread_create in pthreads - not found
> > -- Looking for pthread_create in pthread
> > -- Looking for pthread_create in pthread - found
> > -- Found Threads: TRUE
> > -- Looking for _POSIX_TIMERS
> > -- Looking for _POSIX_TIMERS - found
> > -- Found Automoc4: /usr/bin/automoc4
> > -- Found Perl: /usr/bin/perl
> > -- Found Phonon: /usr/include
> > -- Performing Test _OFFT_IS_64BIT
> > -- Performing Test _OFFT_IS_64BIT - Success
> > -- Performing Test HAVE_FPIE_SUPPORT
> > -- Performing Test HAVE_FPIE_SUPPORT - Success
> > -- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
> > -- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
> > -- Performing Test __KDE_HAVE_GCC_VISIBILITY
> > -- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
> > -- Found KDE 4.6 include dir: /usr/include
> > -- Found KDE 4.6 library dir: /usr/lib64
> > -- Found the KDE4 kconfig_compiler preprocessor:
> > /usr/bin/kconfig_compiler -- Found automoc4: /usr/bin/automoc4
> > -- Boost version: 1.44.0
> > -- Found the following Boost libraries:
> > --   graph
> > -- Found gpgme-config at /usr/bin/gpgme-config
> > -- Found gpgme v1.3.0, checking for flavours...
> > --  Found flavour 'vanilla', checking whether it's usable...yes
> > --  Found flavour 'pthread', checking whether it's usable...yes
> > --  Found flavour 'pth', checking whether it's usable...yes
> > -- Usable gpgme flavours found:  vanilla pthread pth
> > -- Found QGpgme: /usr/lib64/libqgpgme.so
> > -- Found KdepimLibs:
> > /usr/lib64/cmake/KdepimLibs/KdepimLibsConfig.cmake -- Found
> > SharedMimeInfo: /usr/bin/update-mime-database  (found version
> > "0.90", required is "0.18")
> > -- Found Doxygen: /usr/bin/doxygen
> > -- Found GMP: /usr/include
> > -- checking for module 'libalkimia'
> > --   package 'libalkimia' not found
> > 
> > CMake Error at cmake/modules/FindLibalkimia.cmake:69 (MESSAGE):
> >   Could NOT find Libalkimia
> > 
> > Call Stack (most recent call first):
> >   CMakeLists.txt:90 (FIND_PACKAGE)
> > 
> > -- Configuring incomplete, errors occurred!
> > (In reply to comment #17)
> > 
> > > @Russ: I just committed the patch to svn trunk. If you can build
> > > from there, you should be in good shape. There are directions at
> > > http://techbase.kde.org/Projects/KMyMoney#Installation that can
> > > get you started.
> > 
> > Looked in my installed system (YaST) and cannot find the library
> > mentioned. Did I miss something on getting the SVN?
> > 
> > Checked as unconfirmed so message would get to you. I know its
> > fixed but I don't know when it will be fixed in the openSUSE
> > repo's.
> 
> I think to get OFX 0.9.2, you'll need to compile from source.
Will look for source later tonight
> 
> For alkimia, there was reference on list on 6 April (see
> http://mail.kde.org/pipermail/kmymoney-devel/2011-March/004690.html)
Just downloaded it, will try compile tonight. 
> Allan
Thanks again for your help.
Comment 22 Cristian Oneț 2011-05-20 21:26:49 UTC
Closing this since the fix was committed.