[Rd] Unable to build R-2.10.0 and later releases on AIX 6.1

2010-12-19 Thread sm...@hko.gov.hk
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


Re: [Rd] Unable to build R-2.10.0 and later releases on AIX 6.1

2010-12-19 Thread sm...@hko.gov.hk
Hi,

Problem solved.  Thanks a lot.

Arnold

On 20/12/2010 8:34, Prof Brian Ripley wrote:
> 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
>>
>

[[alternative HTML version deleted]]

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