[R] Trouble compiling XML package

Duncan Temple Lang duncan at wald.ucdavis.edu
Fri May 18 22:18:18 CEST 2007



Wiener, Matthew wrote:
> Dear Prof. Lang  - 
> 
> I am trying to install the XML library on a 64-bit SUSE linux system
> (version info below) running 2.4.1.
> 
> I have gcc version 3.3.3, and libxml2 version 2.6.7.  I know this is not
> current, but I'm on a machine used and administered by others, and
> updating libxml2 would require updating libc, and things get pretty
> complicated from there.
> 
> Trying to install through R (1.9-0), 

Wow, that's really old!


> I eventually get the error:
> XMLTree.c: In function `xmlBufferWrite': 
> XMLTree.c:729: error: void value not ignored as it ought to be 
> make: *** [XMLTree.o] Error 1 
> 


You might try changing the routine xmlBufferWrite to

static int
xmlBufferWrite (void * context, const char * buffer, int len) {
  xmlBufferAdd((xmlBufferPtr) context, (const xmlChar *) buffer,len);
  return(len);
}

That will work if there are no errors when adding to the buffer.
But this is used when generating XML in a particular way, i.e. using
internal nodes.  So let's just hope that you don't invoke
this code and if you do, that there are no errors.


> I manually downloaded version 1.8-0 and got the same problem.  I took a
> look at that part of the code, but do not understand enough to start
> tinkering with it.  I was able to install an earlier version a couple of
> years ago, and it was extremely useful (thanks!) but the relevant
> machine has been decommissioned.
> 
> Can you make any suggestions about which component of my system this
> might indicate needs to be changed?  I checked the mailing list
> archives, but didn't find anything.  I'm hoping there's an alternative
> to changing libxml2, with all the cascading requirements that would
> bring (and no guarantee, with what I know now, that that's the problem).
> 
> Thanks,
> 
> Matt Wiener
> 
>> version
>                _
> platform       x86_64-unknown-linux-gnu
> arch           x86_64
> os             linux-gnu
> system         x86_64, linux-gnu
> status
> major          2
> minor          4.1
> year           2006
> month          12
> day            18
> svn rev        40228
> language       R
> version.string R version 2.4.1 (2006-12-18)
> 
> ------------------------------------------------------------------------------
> Notice:  This e-mail message, together with any attachments,...{{dropped}}
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list