Skip to content
Prev 11700 / 398502 Next

trouble to install the Rstream package

On Tue, 12 Jun 2001, Laurent Gautier wrote:

            
We've seen this before, on an Alpha.  Something is wrong in the configure,
for the code reads

        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

so this will only happen if sizeof(long double) is 8 and
SIZEOF_LONG_DOUBLE > 8.  I am very surprised that sizeof(long double)
is 8 on a 64-bit machine (SGI or Alpha) but that may reflect limitations
of gcc.

What does src/config.h say SIZEOF_LONG_DOUBLE is?

I can only presume that you have different compilers or compiler options
at configure and build times.  You may need to set CC=gcc, for example.


As a more general point, there is nothing in Rstreams that cannot be done
with binary connections, except reading S data objects which package
foreign now covers.  So for new code, use the alternatives.