From nakama at ki.rim.or.jp  Wed Dec 14 02:16:13 2005
From: nakama at ki.rim.or.jp (Ei-ji Nakama)
Date: Wed, 14 Dec 2005 10:16:13 +0900 (JST)
Subject: [Rd] R-beta on AIX5.2
Message-ID: <20051214.101613.607958713.nakama@ki.rim.or.jp>

I build R-beta on AIX5.2 is failed.

make[3]: Entering directory
`/home/nakama/Rbeta/R-beta/src/nmath'
xlc_r -I. -I../../src/include -I../../src/include -I/usr/local/include
-I/opt/freeware/include -DHAVE_CONFIG_H   -q64 -I/usr/local/include
-I/opt/freeware/include -O2 -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -c
mlutils.c -o mlutils.o
"nmath.h", line 50.9: 1506-213 (S) Macro name calloc cannot be
redefined.
"nmath.h", line 50.9: 1506-358 (I) "calloc" is defined on line 641 of
/usr/include/stdlib.h.
make[3]: *** [mlutils.o] Error 1


--- R-beta.orig/src/nmath/nmath.h	2005-10-06 19:25:25.000000000 +0900
+++ R-beta/src/nmath/nmath.h	2005-12-13 19:33:59.000000000 +0900
@@ -47,6 +47,7 @@
 #define ML_NAN		R_NaN
 
 void R_CheckUserInterrupt(void);
+#undef  calloc
 #define calloc R_chk_calloc
 #define free R_chk_free
 

--
http://www.nakama.ne.jp, http://r.nakama.ne.jp
e-mail : EIJI Nakama <nakama at ki.rim.or.jp>



[Rd] R-beta on AIX5.2
Ei-ji Nakama