On Fri, 1 Jun 2001, Martina Pavlicova wrote:
>
> Dear R-helpers,
>
> I am trying to install Rstreams library on the following platform:
> ----------------------------
> platform alphaev67-dec-osf5.0
> arch alphaev67
> os osf5.0
> system alphaev67, osf5.0
> status
> major 1
> minor 2.3
> year 2001
> month 04
> day 26
> language R
> ---------------------------
>
> Unfortunately, I get these error messages:
> ---------------------------
> > [557] R CMD INSTALL Rstreams_1.1-2.tar.gz
> Installing source package `Rstreams' ...
> creating cache ./config.cache
> checking for ftruncate... yes
> checking size of long double... 16
> updating cache ./config.cache
> creating ./config.status
> creating src/config.h
> libs
> gcc -I/usr/local/lib/R/include -DHAVE_CONFIG_H -I/usr/local/include -mieee
> - -O2 -c Rstreams.c -o Rstreams.o
> In file included from
> /usr/local/lib/gcc-lib/alphaev6-dec-osf5.0/2.95.2/includestdarg.h:36,
> from /usr/local/lib/R/include/R_ext/Print.h:23,
> from /usr/local/lib/R/include/R.h:50,
> from Rstreams.c:21:
> /usr/local/lib/gcc-lib/alphaev6-dec-osf5.0/2.95.2/include/va-alpha.h:36:
> warnin: redefinition of `va_list'
> /usr/local/lib/gcc-lib/alphaev6-dec-osf5.0/2.95.2/include/va_list.h:7:
> warning:`va_list' previously declared here
> Rstreams.c: In function `readfloat':
> Rstreams.c:179: duplicate case value
> Rstreams.c:173: this is the first entry for that value
> Rstreams.c: In function `writefloat':
> Rstreams.c:284: duplicate case value
> Rstreams.c:278: this is the first entry for that value
> make: *** [Rstreams.o] Error 1
> ERROR: Compilation failed for package `Rstreams'
> > [558]
> --------------------------
>
>
> Does anybody know what is wrong or what should I do?
Eh? That code says
case 8:
if (read(*handle, &d1, size) <= 0) goto enddata;
if (*swapbytes) swap(&d1, size);
result[i] = d1;
break;
#if SIZEOF_LONG_DOUBLE > 8
case sizeof(long double):
if (read(*handle, &e1, size) <= 0) goto enddata;
if (*swapbytes) swap(&e1, size);
result[i] = (double) e1;
break;
#endif
and identical tests are used in the binary connections part of R itself,
where they presumably did work. You may need to edit the src/config.h file,
as it looks as if the configure script has got it wrong, and use R INSTALL
--no-configure.
Also there is very little that Rstreams can do that you cannot do as well
with binary connections in base R.
--
Brian D. Ripley, ripley at 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-help 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-help-request at
stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._