Re: [R] Trouble compiling XML package [Broadcast]

From: Wiener, Matthew <matthew_wiener_at_merck.com>
Date: Fri, 18 May 2007 16:31:34 -0400

Oops - I see I was unclear. I'm using R-2.4.1 to install; 1.9.0 is the version of XML I was trying to load. I'll try your change - I'm really using this for reading XML.

Thanks,
Matt

-----Original Message-----
From: Duncan Temple Lang [mailto:duncan_at_wald.ucdavis.edu] Sent: Friday, May 18, 2007 4:18 PM
To: Wiener, Matthew
Cc: R-help
Subject: Re: [R] Trouble compiling XML package [Broadcast]

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@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.


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. Received on Fri 18 May 2007 - 20:35:54 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 19 May 2007 - 00:31:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.