Quantcast

R-beta on AIX5.2

Previous Topic
 
classic Classic list List threaded Threaded
2 messages Options
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

R-beta on AIX5.2

Ei-ji Nakama
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 <[hidden email]>

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: R-beta on AIX5.2

Prof Brian Ripley
Thank you.  To avoid error messages on other platforms, we will use

#ifdef calloc
# undef calloc
#endif

(and similarly for free for completeness).

On Wed, 14 Dec 2005, Ei-ji Nakama wrote:

> 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 <[hidden email]>
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>

--
Brian D. Ripley,                  [hidden email]
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

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Loading...