QOF won't link

Linas Vepstas linas at linas.org
Thu Jun 17 00:45:28 EDT 2004

On Wed, Jun 16, 2004 at 09:22:29PM +0100, Neil Williams was heard to remark:
> On Wednesday 16 June 2004 8:33, Neil Williams wrote:
> > /usr/lib/libqof.so: undefined reference to `sql_destroy'
> > /usr/lib/libqof.so: undefined reference to `sql_parse'

Ugh. You will *also* need to copy 
/home/your-home-dir/qof/lib/libsql  to

and change /home/your-home-dir/gnucash/lib/Makefile.am so that
it visits /home/your-home-dir/gnucash/lib/libsql.  You will also
need to modify /home/your-home-dir/gnucash/configure.in so that
it builds the Makefile in that dir

> > /usr/lib/libqof.so: undefined reference to `g_object_class_list_properties'
> > /usr/lib/libqof.so: undefined reference to `g_date_get_day'
> > /usr/lib/libqof.so: undefined reference to `g_value_get_double'
> > /usr/lib/libqof.so: undefined reference to `g_param_spec_get_name'

I'm thinking that these are from glib-2 whereas gnucash still pulls
in glib-1.2 at this time.  Note that glib2 is 99.5% compatible
with glib-1.2, so changing over to glib2 shouldn't really be a problem.

However, I tried this once and I do remember that gtk-1.2 has a weird
compatiblity problem with glib2.  The fix is a bizarro 3-line hack,
but I don't remember what it is.  I think I had to undef something in
gtk.  If you post to the mailing list, I might be able to remember.


pub  1024D/01045933 2001-02-01 Linas Vepstas (Labas!) <linas at linas.org>
PGP Key fingerprint = 8305 2521 6000 0B5E 8984  3F54 64A9 9A82 0104 5933

More information about the gnucash-devel mailing list