On Thu, 2009-04-16 at 21:11 +0200, Murray Cumming wrote:
> On Thu, 2009-04-16 at 14:17 -0400, Joe Marcus Clarke wrote:
> > I wonder how the libgda sqlite provider works on Linux.  On FreeBSD, we
> > are currently building it with the system sqlite3, but this appears to
> > be broken.
> 
> Don't do that. If there's some easy way to do that in the libgda build
> system then it should be removed. It breaks things.

It detects our sqlite3 by default, and uses it.  There is no easy way to
DISABLE it except to hack configure.

Thanks for the feedback.  I will fix our port ASAP.

Joe

> 
> >   The code assumes an older version of the libgda-column API.
> > See this excerpt from gda-sqlite-provider.c:
> > 
> >                         gda_column_set_description (0, "name");
> >                         gda_column_set_name (0, "name");
> >                         gda_column_set_g_type (0, G_TYPE_STRING);
> >                         gda_column_set_description (1, "nargs");
> >                         gda_column_set_name (1, "nargs");
> >                         gda_column_set_g_type (1, G_TYPE_INT);
> >                         gda_column_set_description (2, "specificname");
> >                         gda_column_set_name (2, "specificname");
> >                         gda_column_set_g_type (2, G_TYPE_STRING);
> > 
> > That code triggers a segmentation fault in libgda when executed as 0x1
> > is an invalid memory address (i.e., not a GdaColumn).  However, if we
> > build libgda using the built-in sqlite, the problem is not seen.
> > 
> > I'm wondering what is the preferred way to build libgda, and if Linux is
> > currently using the embedded sqlite, or somehow working around this API
> > mismatch problem.  Thanks.
> > 
> > Joe
> > 
> > _______________________________________________
> > gnome-db-list mailing list
> > [email protected]
> > http://mail.gnome.org/mailman/listinfo/gnome-db-list
-- 
Joe Marcus Clarke
FreeBSD GNOME Team      ::      [email protected]
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
gnome-db-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-db-list

Reply via email to