Re: [Rd] [R] Problem compiling in extra/xdr

From: Prof Brian Ripley <>
Date: Mon, 18 Jul 2011 23:08:18 +0100 (BST)

  1. R-help is the wrong list: see the posting guide. I've moved this to R-devel.
  2. A glibc system should not be compiling in that directory. glibc 2.14 is rather recent and NEWS does say
    • The RPC implementation in libc is obsoleted. Old programs keep working but new programs cannot be linked with the routines in libc anymore. Programs in need of RPC functionality must be linked against TI-RPC. The TI-RPC implementation is IPv6 enabled and there are other benefits.

   Visible changes of this change include (obviously) the inability to link    programs using RPC functions without referencing the TI-RPC library and the    removal of the RPC headers from the glibc headers.    Implemented by Ulrich Drepper.

So the answer seems to be that your libc is too new.

On Mon, 18 Jul 2011, Allin Cottrell wrote:

> 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
> .
> --
> Allin Cottrell
> Department of Economics
> Wake Forest University, NC
> ______________________________________________
> mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.

Brian D. Ripley,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ mailing list
Received on Mon 18 Jul 2011 - 22:19:32 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 19 Jul 2011 - 06:30:10 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive