1.6.0 crashes when trying to save in new file format

Richard Braakman dark@xs4all.nl
Wed, 11 Jul 2001 10:16:16 +0300


On Tue, Jul 10, 2001 at 11:27:26AM -0600, Matt Kraai wrote:
> The xmlElemDump function appears to have been added to libxml in
> version 1.8.3.  After upgrading to this version or later, saving
> in the new format should work.
> 
> It doesn't look like the library version requirements are noted on
> the ``Software Requirements'' page, but it might be a good idea.

In addition, it should be pretty easy to check for this in the
configure script:

diff -u -r1.205 configure.in
--- configure.in        2001/07/01 21:09:04     1.205
+++ configure.in        2001/07/11 07:08:27
@@ -374,6 +374,10 @@
 GNOME_XML_CFLAGS=`$GNOME_CONFIG --cflags xml`

 AC_SUBST(GNOME_XML_CFLAGS)
+
+AC_CHECK_LIB(xml, xmlElemDump, [:], [
+  AC_MSG_ERROR([libxml 1.8.3 or newer required for GnuCash])
+  ])


 ### --------------------------------------------------------------------------

Unfortunately I didn't have a libxml version old enough to test
the failure case with.

Note that we used libxml in the Kannel project, where we checked
the xml{2,}-config --version output.  We ran into so many bugs
in older versions (which would then be reported as Kannel bugs :)
that we ended up requiring libxml 2.2.5 or later.

-- 
Richard Braakman
Will write free software for money.
See http://www.xs4all.nl/~dark/resume.html