[gnome-db] libgnomedb: compiling and run-time issue.



Hello,

I just had a look at the latest libgnomedb. Looks fantastic! Especially the "global" switch is very convenient.

When compiling (FC4/x86_64/gcc 4.0) , I get the following error:

gnome-db-qf-value.c:87: error: static declaration of 'gnome_db_qf_value_restrict_with_field' follows non-static declaration
gnome-db-qf-value.h:87: error: previous declaration of 'gnome_db_qf_value_restrict_with_field' was here
gnome-db-qf-value.c:88: error: static declaration of 'gnome_db_qf_value_restrict_with_field_xml' follows non-static declaration
gnome-db-qf-value.h:88: error: previous declaration of 'gnome_db_qf_value_restrict_with_field_xml' was here

I can bypass this error by editing file libgnomedb/gnome-db-qf-value.h and change the lines 87 + 88 :

gboolean          gnome_db_qf_value_restrict_with_field (GnomeDbQfValue *field, GnomeDbQfield *provider, GError **error);
gboolean          gnome_db_qf_value_restrict_with_field_xml (GnomeDbQfValue *field, const gchar *prov_xml_id, GError **error);

to:

static gboolean          gnome_db_qf_value_restrict_with_field (GnomeDbQfValue *field, GnomeDbQfield *provider, GError **error);
static gboolean          gnome_db_qf_value_restrict_with_field_xml (GnomeDbQfValue *field, const gchar *prov_xml_id, GError **error);

or comment them out altogether.

Since I am not familiar in this part of libgnomedb, I would appreciate if somebody who is familiar with these functions/API what the best approach is here.


Further, when running the gnome-db-browser, I get the following error when trying to get/update the meta data:

"Error updating Database metadata: Schema for list of fields is wrong"

on the command line it prints the error :

** (gnome-db-browser:8166): CRITICAL **: gda_row_get_number: assertion `row != NULL' failed

My question, is if this part of the gnome-db-browser is work in progress, or should this work already?

Thanks,
Bas.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]