[Gllug] Building Gnumeric

Pete Ryland pdr at pdr.cx
Wed Jan 9 19:16:45 UTC 2002


On Wed, Jan 09, 2002 at 06:52:20PM +0000, Mike Brodbelt wrote:
> Hi,
> 
> I've spent half my day trying to get Gnumeric 1.0.1 to build,
> unsuccessfully. The error I get is this:-
> 
> bonobo-io.c: In function `gnumeric_bonobo_write_workbook':
> bonobo-io.c:271: structure has no member named `root'
> bonobo-io.c: In function `gnumeric_bonobo_read_workbook':
> bonobo-io.c:464: structure has no member named `root'
> bonobo-io.c:487: structure has no member named `root'
> make[3]: *** [bonobo-io.o] Error 1
> 
> 
> ... and then the build dies. I've upgraded my libxml, xml-i18n stuff,
> bonobo, and a bunch of other things, but it still won't play nice. There
> must be something else it depends on, but I can't find it. The bit of
> code around line 271 is this:-
> 
> 261        xml = xmlNewDoc ((xmlChar *)"1.0");
> 262        if (!xml) {
> 263                gnumeric_io_error_save (context, "");
> 264                bonobo_object_unref (BONOBO_OBJECT (storage));
> 265                return;
> 266        }
> 267        ctxt = xml_parse_ctx_new_full (
> 268                xml, NULL, GNUM_XML_LATEST, NULL,
> 269                gnumeric_bonobo_obj_write, storage);
> 270
> 271        xml->root = xml_workbook_write (ctxt, wb_view);
> 272        xml_parse_ctx_destroy (ctxt);
> 
> 
> Does anyone know what I'm missing? Help.....

Hi Mike,

Change the word "root" to "children" (or "xmlRootNode" which is #defined as
such, or in fact change it to a call to xmlDocSetRootElement) and it should
compile, albeit with a memory leak.  Hmm.. maybe I'm mis-interpreting the
intentions of the code..  Anyway, the xmlDoc structure is defined in
/usr/include/libxml2/libxml/tree.h if you want to check it out for yourself.

BTW, how come you want to compile it yourself?  Wouldn't it be easier to
just install a binary?  Or are you planning on doing some development on it?

hth,
Pete
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20020109/d8521678/attachment.pgp>


More information about the GLLUG mailing list