There are some problems with XML under OS X, nothing serious, but manual intervention is required. 1. For some reason the package has problems matching up the proper include and lib files for xml or xml2. If I install a fresh libxml2 and point the environmental variables to it, it still complains about mismatched header and lib files, which suggests, perhaps, that the test in configure uses something system specific. It works if I point explicitly to the include files for xml1. Both xml1 and xml2 are in /sw, because they come from fink. Maybe use xmlConf.sh or xml2Conf.sh 2. xmlParserError is defined in libxml, but Utils.o tried to override it with a new definition. That does not work in OS X, unless one specifies explicitly that that is what one wants. Adding "-Xlinker -m" to the link of XML.so indicates we need the first definition we come across, which is the one in Utils.o in this case. And that is what is intended. ==Jan de Leeuw; Professor and Chair, UCLA Department of Statistics; Editor: Journal of Multivariate Analysis, Journal of Statistical Software US mail: 9432 Boelter Hall, Box 951554, Los Angeles, CA 90095-1554 phone (310)-825-9550; fax (310)-206-5658; email: deleeuw@stat.ucla.edu homepage: http://gifi.stat.ucla.edu ------------------------------------------------------------------------ ------------------------- No matter where you go, there you are. --- Buckaroo Banzai http://gifi.stat.ucla.edu/sounds/nomatter.au ------------------------------------------------------------------------ ------------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Sat, 12 Oct 2002, Jan de Leeuw wrote:> There are some problems with XML under OS X, nothing serious, > but manual intervention is required. > > 1. For some reason the package has problems matching up the > proper include and lib files for xml or xml2. If I install a fresh > libxml2 and point the environmental variables to it, it still > complains about mismatched header and lib files, > which suggests, perhaps, that the test in configure uses something > system > specific. It works if I point explicitly to the include files for xml1. > Both xml1 and xml2 are in /sw, because they come from fink. Maybe > use xmlConf.sh or xml2Conf.sh > > 2. xmlParserError is defined in libxml, but Utils.o tried to override > it with a new definition. That does not work in OS X, unless one > specifies explicitly that that is what one wants. Adding "-Xlinker > -m" to the link of XML.so indicates we need the first definition we > come across, which is the one in Utils.o in this case. And that is > what is intended.Same problem under Windows, which I can only solve (at least when statically loading libxml2) by building a version of error.c (from libxml2) without xmlParserError. It's really a design fault in libxml2: the replaceable parts should be in separate moodules. -- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._