[R] Problem compiling in extra/xdr

Allin Cottrell cottrell at wfu.edu
Mon Jul 18 21:48:29 CEST 2011


I'm building R 2.13.1 on i686-pc-linux-gnu, using gcc 4.6.1
and with glibc 2.14.

I get this error:

In file included from xdr.c:61:0:
./rpc/types.h:63:14: error: conflicting types for 'malloc'
make[4]: *** [xdr.o] Error 1

I can make the build proceed some by commenting out the 
declaration "extern char *malloc();" in xdr/rpc/types.h,
but then I get a slew of other errors:

xdr_float.c: In function 'xdr_float':
xdr_float.c:119:21: error: storage size of 'is' isn't known
xdr_float.c:120:20: error: storage size of 'vs' isn't known

and so on.

config.log is rather big to post here; I'm putting it at
http://www.wfu.edu/~cottrell/tmp/R.config.log .

--
Allin Cottrell
Department of Economics
Wake Forest University, NC



More information about the R-help mailing list