3 of 4 tests failed

John Ralls jralls at ceridwen.us
Sun Feb 13 18:57:22 EST 2011


On Feb 12, 2011, at 4:49 PM, John Ralls wrote:

> 
> On Feb 11, 2011, at 5:59 AM, Paul Brown wrote:
> 
>> Hi! Trying to compile/install Gnucash 2.4.2 on my LinuxMint box.
>> 
>> I originally installed the one that was in the repos, but then decided I'd
>> prefer to work with a more fresh version.  apt-get purged that one, but
>> after having all sorts of problems getting 2.4.2 to install, I did a make
>> distclean, and then removed every file/directory I could find with "locate
>> gnucash", and started over, hopefully "from scratch".
>> 
>> ./compile seemed to go fine,
>> make seemed to go fine,
>> make check, however, returned the following....
>> 
>> 
>> make[6]: Leaving directory
>> `/home/paulvbrown/Downloads/gnucash-2.4.2/src/backend/dbi/test'
>> make  check-TESTS
>> make[6]: Entering directory
>> `/home/paulvbrown/Downloads/gnucash-2.4.2/src/backend/dbi/test'
>> Using filename: /tmp/test-6BTwdI
>> Testing sqlite3
>> * 15:49:07  WARN <gnc.backend.dbi> Session Error: 3,
>> FAILURE First DB Session Creation Failed test-dbi-stuff.c:181
>> Testing safe save sqlite3
>> * 15:49:07  WARN <gnc.backend.dbi> Session Error: 3,
>> FAILURE DB Session Creation Failed test-dbi-stuff.c:241
>> Testing safe save sqlite3
>> * 15:49:07  WARN <gnc.backend.dbi> Session Error: 3,
>> FAILURE DB Session Creation Failed test-dbi-stuff.c:305
>> * 15:49:07  CRIT <gnc.backend.sql> gnc_sql_set_table_version: assertion `be
>> != NULL' failed
>> TEST_MYSQL_URL=''
>> TEST_PGSQL_URL=''
>> Executed 3 tests. There were 3 failures.
>> FAIL: test-dbi-basic
>> Using filename: /tmp/test-1nygX3
>> Testing sqlite3
>> * 15:49:08  WARN <gnc.backend.dbi> Session Error: 3,
>> FAILURE First DB Session Creation Failed test-dbi-stuff.c:181
>> TEST_MYSQL_URL=''
>> TEST_PGSQL_URL=''
>> Executed 1 test. There was 1 failure.
>> FAIL: test-dbi
>> Using filename: /tmp/test-ghZ0Ht
>> Testing sqlite3
>> FAILURE TaxTable lists match test-dbi-stuff.c:55
>> FAILURE Customer lists match test-dbi-stuff.c:55
>> FAILURE Employee lists match test-dbi-stuff.c:55
>> You may ignore the warning about the lock file having no entries: We had to
>> ignore locking to run two sessions on the same database
>> Executed 7 tests. There were 3 failures.
>> FAIL: test-dbi-business
>> Executed 1 test. All tests passed.
>> PASS: test-load-backend
>> ==========================================
>> 3 of 4 tests failed
>> Please report to gnucash-devel at gnucash.org
>> ==========================================
>> make[6]: *** [check-TESTS] Error 1
>> make[6]: Leaving directory
>> `/home/paulvbrown/Downloads/gnucash-2.4.2/src/backend/dbi/test'
>> make[5]: *** [check-am] Error 2
>> make[5]: Leaving directory
>> `/home/paulvbrown/Downloads/gnucash-2.4.2/src/backend/dbi/test'
>> make[4]: *** [check-recursive] Error 1
>> make[4]: Leaving directory
>> `/home/paulvbrown/Downloads/gnucash-2.4.2/src/backend/dbi/test'
>> make[3]: *** [check-recursive] Error 1
>> make[3]: Leaving directory
>> `/home/paulvbrown/Downloads/gnucash-2.4.2/src/backend/dbi'
>> make[2]: *** [check-recursive] Error 1
>> make[2]: Leaving directory
>> `/home/paulvbrown/Downloads/gnucash-2.4.2/src/backend'
>> make[1]: *** [check-recursive] Error 1
>> make[1]: Leaving directory `/home/paulvbrown/Downloads/gnucash-2.4.2/src'
>> make: *** [check-recursive] Error 1
> 
> 
> Looks like you probably have the libdbi bug (http://wiki.gnucash.org/wiki/FAQ#Q:_I_tried_to_start_up_Gnucash_2.4.1_on_my_SQL_database_and_I_got_an_error_about_libdbi_and_large_numbers). I'll add a more explicit failure warning to the test so that it's obvious what the problem is.

I've looked at the code again, and I think that you don't have any dbi drivers installed rather than that you have the libdbi bug. Error code 3 is "BAD URL", and it's emitted when the required backend can't be initialized.

If you don't want to build a SQL backend, just pass --disable-dbi to configure. If you do, then you'll need to troubleshoot a bit to figure out why Gnucash can't find the ones you've built. You may need to export GNC_DBD_DIR with the path to where they are.

Regards,
John Ralls



More information about the gnucash-devel mailing list