[R] Compiling R on aix getting error
Prof Brian Ripley
ripley at stats.ox.ac.uk
Tue Feb 28 06:31:04 CET 2006
On Tue, 28 Feb 2006, Tiong Lim wrote:
> I am trying to compile R 2.2.1 on aix 5.3 with xlc/xlC 7.0 , but i am
> getting the error below. I did a search on the archive and someone had a
> similar error as me but I can't seem to find a fix for the error below.
Are you referrring to
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/66941.html
? Unfortunately I never received a reply to those questions.
This appeared to be something new in AIX 5.3's headers, most likely that
they have apparently started defining SOCKLEN_T. For the R-devel version
on R we changed to R_SOCKLEN_T.
So please try the R-devel version of R, or change all occurrences of
SOCKLEN_T to R_SOCKLEN_T.
Googling showed that several other projects had been affected by this.
E.g. http://www.zsh.org/mla/workers/2004/msg01205.html
And socklen_t on AIX has been an age-old problem.
...
> xlc -I../../src/extra/zlib -I../../src/extra/bzip2
> -I../../src/extra/pcre -I. -I../../src/include -I../../src/include
> -DHAVE_CONFIG_H -O -qstrict -c platform.c -o platform.o
> "/usr/include/netinet/in.h", line 793.1: 1506-166 (S) Definition of
> function socklen_t requires parentheses.
> "/usr/include/netinet/in.h", line 793.17: 1506-276 (S) Syntax error:
> possible missing '{'?
> "/usr/include/sys/socket.h", line 374.9: 1506-046 (S) Syntax error.
> "/usr/include/sys/socket.h", line 378.9: 1506-046 (S) Syntax error.
> "/usr/include/sys/socket.h", line 404.9: 1506-046 (S) Syntax error.
> "/usr/include/sys/socket.h", line 475.52: 1506-046 (S) Syntax error.
> "/usr/include/sys/socket.h", line 476.57: 1506-046 (S) Syntax error.
> "/usr/include/sys/socket.h", line 477.57: 1506-046 (S) Syntax error.
> "/usr/include/sys/socket.h", line 478.87: 1506-046 (S) Syntax error.
> "/usr/include/sys/socket.h", line 484.44: 1506-275 (S) Unexpected text
> socklen_t encountered.
> "/usr/include/sys/socket.h", line 485.47: 1506-275 (S) Unexpected text
> socklen_t encountered.
> "/usr/include/sys/socket.h", line 486.55: 1506-046 (S) Syntax error.
> "/usr/include/sys/socket.h", line 490.73: 1506-275 (S) Unexpected text
> socklen_t encountered.
> "/usr/include/sys/socket.h", line 491.49: 1506-275 (S) Unexpected text
> socklen_t encountered.
> "platform.c", line 1386.13: 1506-285 (S) The indirection operator cannot
> be applied to a pointer to an incomplete struct or union.
> "platform.c", line 1388.34: 1506-285 (S) The indirection operator cannot
> be applied to a pointer to an incomplete struct or union.
> make: The error code from the last command is 1.
>
--
Brian D. Ripley, ripley at 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
More information about the R-help
mailing list