I can't find working libdbi version - test-dbi-stuff.c fails

John Ralls jralls at ceridwen.us
Wed Jan 26 20:02:58 EST 2011


On Jan 26, 2011, at 6:50 AM, Christoph Holtermann wrote:

> Hello !
>>> By the way :
>>> 
>>> make check for GnuCash stops with the following :
>>> TEST: test-qof... (pid=19210)
>>> /qof/qofbook: OK
>>> /qof/qofinstance: **
>>> ERROR:test-qofinstance.c:55:test_book_readonly: assertion failed: (!qof_begin_edit( fixture->instance ))
>>> FAIL
>>> GTester: last random seed: R02S89f22d5b966baeb8f7ef6e1fb67c2a4d
>>> /bin/sh: Zeile 1: 19209 Beendet gtester --verbose test-qof
>>> make[5]: *** [test] Fehler 143
>>> 
>>> I don't know any further. Maybe someone can help ?
>> Oops. The failing test is my fault; I took out what it tests and forgot to remove the test. I'll fix that today.
>> 
> Ok, now after updating to SVN 20168 i see a lot of tests i didn't see before ;-) Now it breaks with :
> 
> make[6]: Entering directory `/home/christoph/Computer/src/gnucash/gnucash_svn/src/backend/dbi/test'
> /bin/sh ../../../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../.. -DG_LOG_DOMAIN=\"gnc.backend.dbi\"   -I../../../../lib/libc -I../../../../src -I../../../../src/core-utils -I../../../../src/gnc-module -I../../../../src/test-core -I../../../../src/engine -I../../../../src/engine/test-core -I../../../../src/libqof/qof -I../../../../src/backend/sql -DTEST_MYSQL_URL=\"\" -DTEST_PGSQL_URL=\"\" -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread -DORBIT2=1 -pthread -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -Werror -Wdeclaration-after-statement -g  -g  -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations  -Wno-unused -MT test-dbi-stuff.lo -MD -MP -MF .deps/test-dbi-stuff.Tpo -c -o test-dbi-stuff.lo test-dbi-stuff.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../.. -DG_LOG_DOMAIN=\"gnc.backend.dbi\" -I../../../../lib/libc -I../../../../src -I../../../../src/core-utils -I../../../../src/gnc-module -I../../../../src/test-core -I../../../../src/engine -I../../../../src/engine/test-core -I../../../../src/libqof/qof -I../../../../src/backend/sql -DTEST_MYSQL_URL=\"\" -DTEST_PGSQL_URL=\"\" -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -DORBIT2=1 -pthread -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Werror -Wdeclaration-after-statement -g -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wno-unused -MT test-dbi-stuff.lo -MD -MP -MF .deps/test-dbi-stuff.Tpo -c test-dbi-stuff.c  -fPIC -DPIC -o .libs/test-dbi-stuff.o
> cc1: warnings being treated as errors
> test-dbi-stuff.c:280:1: error: no previous prototype for ‘test_dbi_version_control’
> test-dbi-stuff.c: In function ‘test_dbi_version_control’:
> test-dbi-stuff.c:287:5: error: implicit declaration of function ‘gnc_get_svn_version’
> 
> Do i have to care ?

No. I'll fix it tomorrow. I obviously need to change my CFLAGS to include -Wmissing-prototypes; that's twice in a row I've checked in something that causes that warning.

Regards,
John Ralls



More information about the gnucash-devel mailing list