[R] building R 1.7.0 with gcc 3.2.3 on Solaris
Paul Gilbert
pgilbert at bank-banque-canada.ca
Fri May 9 18:03:20 CEST 2003
With gcc 3.2.3 on SunOS 5.8 and R 1.7.0, configure fails for me unless I
set LDFLAGS ( LDFLAGS=-L/apps/asd/unix/gnu/gcc/3.2.3/SunOS5.8/lib ).
With that set it appears that configure succeeds (i.e. no error messages
on the console), but config.log contains messages
configure:4099: checking for gcc option to accept ANSI C
configure:4160: gcc -c -g -O2 -I/usr/local/include conftest.c >&5
In file included from configure:4124:
/usr/include/sys/stat.h:258: syntax error before "blksize_t"
/usr/include/sys/stat.h:262: syntax error before '}' token
/usr/include/sys/stat.h:318: syntax error before "blksize_t"
/usr/include/sys/stat.h:319: conflicting types for `st_blocks'
/usr/include/sys/stat.h:259: previous declaration of `st_blocks'
/usr/include/sys/stat.h:322: syntax error before '}' token
configure:4163: $? = 1
configure: failed program was:
| #line 4106 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "R"
| #define PACKAGE_TARNAME "R"
| #define PACKAGE_VERSION "1.7.0"
| #define PACKAGE_STRING "R 1.7.0"
Make then fails with
gcc -I. -I../../src/include -I../../src/include -I/usr/openwin/include
-I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c sys-unix.c -o sys-unix.o
In file included from sys-unix.c:31:
/usr/include/sys/stat.h:258: syntax error before "blksize_t"
/usr/include/sys/stat.h:262: syntax error before '}' token
/usr/include/sys/stat.h:318: syntax error before "blksize_t"
/usr/include/sys/stat.h:319: conflicting types for `st_blocks'
/usr/include/sys/stat.h:259: previous declaration of `st_blocks'
/usr/include/sys/stat.h:322: syntax error before '}' token
make[3]: *** [sys-unix.o] Error 1
make[3]: Leaving directory `/home/com1/gilp/toolchain/R/R-1.7.0/src/unix'
make[2]: *** [R] Error 2
Any suggestions would be greatly appreciated.
Paul Gilbert
More information about the R-help
mailing list