So presumably an AIX header is incautiously using 'truncate' as a macro and setting it to 'truncate64'.

Try adding

# undef truncate

after

# undef open

at ca line 46 of that file.

On Sun, 19 Dec 2010, sm...@hko.gov.hk wrote:

Hi,

I have been able to build R-2.9.2 on AIX 6.1 and AIX 5.2. However, I
failed to build R-2.10.0 and later releases on these AIX platforms. The
error messages I got are attached below:

"connections.c", line 461.10: 1506-022 (S) "truncate64" is not a member
of "struct Rconn".
"connections.c", line 772.10: 1506-022 (S) "truncate64" is not a member
of "struct Rconn".
"connections.c", line 930.10: 1506-022 (S) "truncate64" is not a member
of "struct Rconn".
"connections.c", line 2011.10: 1506-022 (S) "truncate64" is not a member
of "struct Rconn".
"connections.c", line 2319.14: 1506-022 (S) "truncate64" is not a member
of "struct Rconn".
"connections.c", line 3094.10: 1506-022 (S) "truncate64" is not a member
of "struct Rconn".

My configure script is attached below:

#!/bin/ksh
PRFX=`pwd`
OBJECT_MODE=32
LIBICONV=/opt/freeware
CPPFLAGS="-I$LIBICONV/include -I/usr/lpp/X11/include/X11"
LDFLAGS="-L$LIBICONV/lib -L/usr/lib -L/usr/X11R6/lib"
CONFIG_SHELL=/usr/bin/bash
MAKE=/opt/freeware/bin/make
CC="xlc"
CXX="xlc++"
FC="xlf"
F77="xlf"
CFLAGS="-qarch=auto -qcache=auto -qtune=auto -O3 -qstrict -ma"
FFLAGS="-qarch=auto -qcache=auto -qtune=auto -O3 -qstrict"
FCFLAGS="-qarch=auto -qcache=auto -qtune=auto -O3 -qstrict"
CXXFLAGS="-qarch=auto -qcache=auto -qtune=auto -O3 -qstrict"
export OBJECT_MODE LIBICONV CC CFLAGS CXX CXXFLAGS F77 CPPFLAGS LDFLAGS
export CONFIG_SHELL MAKE
export FCFLAGS FFLAGS FC
./configure --prefix=$PRFX --without-readline --without-recommended-packages

Regards,

Arnold

        [[alternative HTML version deleted]]

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


--
Brian D. Ripley,                  rip...@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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to