[R] Problem with XML package compilation on AIX

Marea Bissonnette mlbiss at yahoo.com
Wed Jun 23 17:22:36 CEST 2004


Hi,

I hope someone has seen this problem before.  I am
trying to install the XML package from
http://cran.r-project.org/src/contrib/XML_0.95-6.tar.gz.

Using 

> R CMD INSTALL XML_0.95-6.tar.gz 

I get the following error message:

/usr/vac/bin/xlc_r -I/usr/local/lib/R/include -DLIBXML
-I/opt/freeware/include/libxml2
-DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1
-DDUMP_WITH_ENCODING=1 -DUSE_XML_VERSION_H=1
-DXML_ELEMENT_ETYPE=1 -DXML_ATTRIBUTE_ATYPE=1
-DNO_XML_HASH_SCANNER_RETURN=1 -DUSE_R=1 -D_R_=1 
-DHAVE_VALIDITY=1 -I. -DLIBXML2=1 -I/usr/local/include
    -O -qstrict -c DocParse.c -o DocParse.o
"DocParse.c", line 113.29: 1506-280 (E) Function
argument assignment between types "const unsigned
char*" and "char*" is not allowed.
and then more of the same on other lines.

Does anyone know what I can do to get this to compile
happy and install?  Any help would be appreciated.

I'll put the full transcript inline below in case that
helps.

M.


[root at node1] /export/home/mlb# R CMD INSTALL XML*.gz
* Installing *source* package 'XML' ...
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler...
yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none
needed
checking how to run the C preprocessor... gcc -E
checking for xml-config... no
checking for xml2-config... /usr/bin/xml2-config
Using libxml version 2.
Located parser file
-I/opt/freeware/include/libxml2/parser.h
Checking for 1.8:  -I/opt/freeware/include/libxml2
Using libxml2.*
checking for gzopen in -lz... yes
checking for xmlParseFile in -lxml2... yes
checking for xmlHashSize in -lxml2... yes
Using built-in xmlHashSize
Checking DTD parsing (presence of externalSubset)...
checking for xmlHashSize in -lxml2... yes
Found xmlHashSize
checking for xmlDocDumpFormatMemoryEnc in -lxml2...
yes
checking libxml/xmlversion.h usability... yes
checking libxml/xmlversion.h presence... yes
checking for libxml/xmlversion.h... yes
Expat:  FALSE
Checking for return type of xmlHashScan element
routine.
No return value for xmlHashScan

****************************************
Configuration information:

Libxml settings

libxml include directory:
-I/opt/freeware/include/libxml2
libxml library directory: -L/opt/freeware/lib -lxml2
-lz -lpthread -liconv -lm -lz  -lxml2
libxml 2:                 -DLIBXML2=1

Compilation flags:         -DLIBXML
-I/opt/freeware/include/libxml2
-DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1
-DDUMP_WITH_ENCODING=1 -DUSE_XML_VERSION_H=1
-DXML_ELEMENT_ETYPE=1 -DXML_ATTRIBUTE_ATYPE=1
-DNO_XML_HASH_SCANNER_RETURN=1
Link flags:               -L/opt/freeware/lib -lxml2
-lz -lpthread -liconv -lm -lz  -lxml2

****************************************
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating R/supports.R
config.status: creating inst/scripts/RSXML.csh
config.status: creating inst/scripts/RSXML.bsh
** libs
        /usr/vac/bin/xlc_r -I/usr/local/lib/R/include
-DLIBXML -I/opt/freeware/include/libxml2
-DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1
-DDUMP_WITH_ENCODING=1 -DUSE_XML_VERSION_H=1
-DXML_ELEMENT_ETYPE=1 -DXML_ATTRIBUTE_ATYPE=1
-DNO_XML_HASH_SCANNER_RETURN=1 -DUSE_R=1 -D_R_=1 
-DHAVE_VALIDITY=1 -I. -DLIBXML2=1 -I/usr/local/include
    -O -qstrict -c DocParse.c -o DocParse.o
"DocParse.c", line 113.29: 1506-280 (E) Function
argument assignment between types "const unsigned
char*" and "char*" is not allowed.
"DocParse.c", line 113.17: 1506-068 (E) Operation
between types "char*" and "unsigned char*" is not
allowed.
"DocParse.c", line 176.88: 1506-275 (S) Unexpected
text ',' encountered.
"DocParse.c", line 205.17: 1506-068 (E) Operation
between types "const char*" and "const unsigned char*"
is not allowed.
"DocParse.c", line 261.56: 1506-280 (E) Function
argument assignment between types "const char*" and
"const unsigned char*" is not allowed.
"DocParse.c", line 292.22: 1506-196 (E) Initialization
between types "char*" and "unsigned char*" is not
allowed.
"DocParse.c", line 300.29: 1506-280 (E) Function
argument assignment between types "char*" and
"unsigned char*" is not allowed.
"DocParse.c", line 334.75: 1506-280 (E) Function
argument assignment between types "const char*" and
"const unsigned char*" is not allowed.
"DocParse.c", line 354.61: 1506-280 (E) Function
argument assignment between types "const char*" and
"const unsigned char*" is not allowed.
"DocParse.c", line 384.19: 1506-068 (E) Operation
between types "const char*" and "const unsigned char*"
is not allowed.
"DocParse.c", line 481.98: 1506-280 (E) Function
argument assignment between types "const char*" and
"unsigned char*" is not allowed.
"DocParse.c", line 484.86: 1506-280 (E) Function
argument assignment between types "const char*" and
"const unsigned char*" is not allowed.
"DocParse.c", line 502.55: 1506-280 (E) Function
argument assignment between types "const char*" and
"const unsigned char*" is not allowed.
"DocParse.c", line 603.65: 1506-280 (E) Function
argument assignment between types "const char*" and
"const unsigned char*" is not allowed.
"DocParse.c", line 675.147: 1506-280 (E) Function
argument assignment between types "const char*" and
"unsigned char*" is not allowed.
"DocParse.c", line 686.67: 1506-280 (E) Function
argument assignment between types "const char*" and
"const unsigned char*" is not allowed.
make: 1254-004 The error code from the last command is
1.


Stop.
ERROR: compilation failed for package 'XML'
** Removing '/usr/local/lib/R/library/XML'




More information about the R-help mailing list