1.7.8 compile nit on FreeBSD 4.7, semi-broken compile results
Greg Troxel
gdt at ir.bbn.com
Tue Jan 28 20:48:06 CST 2003
In src/engine/gnc-session.c, I got a 'discarding const' warning in
gnc_run_rpc_server for
dll_err = dlerror();
Since the prototype for dlerror (on FreeBSD 4.7ish) is:
const char *dlerror __P((void));
I added const to the declaration/definition of dll_err:
const char * dll_err;
With that and the GNOME_LIBS change from my earlier note (actually I
included the contents of GNOME_LIBDIR in GNOME_LIBS and GNOMEUI_LIBS
in config.status and reran it, since that was easier than automaking),
gnucash built ok.
On startup, it ran for 40 seconds (PII-400 with 384 MB) and then
segfaulted. This seems like way too long.
Starting 'gnucash-env guile', (use-modules (gnucash gnc-module)) is
ok, and the trouble seems to be in (gnc:module-system-init). Doing
(use-modules (gnucash main)) takes a while but finished without error,
but then running (set-current-module (resolve-module '(gnucash main)))
and (gnc:main) by hand seems to work - I get a gnucash window and the
tip of the day!
I'll be playing with this more; the problem seems non-repeatable.
Any hints of running all this dlopened stuff under a debugger are
welcome.
More information about the gnucash-devel
mailing list