From duncan at wald.ucdavis.edu  Sat Dec  4 00:59:27 2010
From: duncan at wald.ucdavis.edu (Duncan Temple Lang)
Date: Fri, 03 Dec 2010 15:59:27 -0800
Subject: [Rd] Problem installing RCurl
In-Reply-To: <5685E4FBA752A441B1975A77A77CD64824E371FBA0@DCPWVMBXC1VS2.mdanderson.edu>
References: <5685E4FBA752A441B1975A77A77CD64824E371FBA0@DCPWVMBXC1VS2.mdanderson.edu>
Message-ID: <4CF9845F.5070804@wald.ucdavis.edu>


Hi Jun

On 12/3/10 2:15 PM, Zhang,Jun wrote:
> I have 64-bit R 2 12 0 installed on Solaris 10 of Sun Sparc. When I tried to install RCurl, it failed with the following lines,
> 
> ...............
> Version has CURLOPT_SSL_SESSIONID_CACHE
> libcurl version: libcurl 7.19.6
> configure: creating ./config.status
> config.status: creating src/Makevars
> ** libs
> cc -xc99 -m64 -xarch=sparcvis2 -I/apps/sparcv9/R-2.12.0/lib/R/include -I/opt/csw/include -DHAVE_LIBIDN_FIELD=1 -DHAVE_CURLOPT_URL=1 -DHAVE_CURLINFO_EFFECTIVE_URL=1 .........(omitted here is very long, all upper case) -DHAVE_CURLOPT_SSL_SESSIONID_CACHE=1 -I/opt/csw/include    -KPIC  -xcode=abs64 -xlibmieee -xtarget=ultra3 -xarch=sparcvis2 -c base64.c -o base64.o
> "/opt/csw/include/curl/curlrules.h", line 144: zero or negative subscript

This error indicates that the compiler (cc with flags -xc99 -m64, etc.) sees the size of the 'long' data type in C
is different from what was seen when libcurl was configured, built and installed.

So basically the compiler and/or the compiler flags were different.

How was libcurl installed - from source or from a pre-built binary ?
What compiler and flags were used?

  D.


> "base64.c", line 25: warning: assignment type mismatch:
>         pointer to const char "=" pointer to unsigned char
> "base64.c", line 39: warning: argument #1 is incompatible with prototype:
>         prototype: pointer to const char : "/apps/sparcv9/R-2.12.0/lib/R/include/Rinternals.h", line 1042
>         argument : pointer to unsigned char
> "base64.c", line 60: warning: assignment type mismatch:
>         pointer to const char "=" pointer to unsigned char
> cc: acomp failed for base64.c
> make: *** [base64.o] Error 2
> ERROR: compilation failed for package 'RCurl'
> * removing '/apps/sparcv9/R-2.12.0/lib/R/library/RCurl'
> 
> The downloaded packages are in
>         '/tmp/Rtmpo67mNX/downloaded_packages'
> Updating HTML index of packages in '.Library'
> Warning message:
> In install.packages("RCurl") :
>   installation of package 'RCurl' had non-zero exit status
>>
> 
> What is the problem?
> 
> Jun
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] Problem installing RCurl
Duncan Temple Lang