Hi Laurent,
When I try to build windows binaries for RPy2 version 2.0.4 with MINGW,
I get the error messages shown below. I'm using R 2.8.1, Python 2.5.2
and Windows XP SP2. I was able to build windows binaries and install
RPy2 on my box after making the following changes:
1. Commenting out the declarations of 'uintptr_t' in Rinterface.h
and rinterface.c
2. Commenting out lines 66-73 in eventloop.h (below)
Have you encountered similar problems before and would you expect RPy2
to function normally after making these changes?
Many thanks,
John
Lines 66-73 in eventloop.h:
extern InputHandler *getSelectedHandler(InputHandler *handlers,
fd_set *mask);
extern fd_set *R_checkActivity(int usec, int ignore_stdin);
extern fd_set *R_checkActivityEx(int usec, int ignore_stdin,
void (*intr)(void));
extern void R_runHandlers(InputHandler *handlers, fd_set *mask);
extern int R_SelectEx(int n, fd_set *readfds, fd_set
*writefds,
fd_set *exceptfds, struct timeval
*timeout,
void (*intr)(void));
MINGW errors:
C:\tmp\rpy2\rpy2-2.0.4>python setup.py bdist_wininst
running bdist_wininst
running build
running build_py
running build_ext
building 'rpy2.rinterface.rinterface' extension
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall
-DWin32=1 -DCSTACK_DEFNS=1 -DRIF_HAS_RSIGHAND=1
-IC:/PROGRA~1/R/R-28~1.1/include -Irpy\rinterface -IC:\Python25\include
-IC:\Python25\PC -c rpy\rinterface\rinterface.c -o
build\temp.win32-2.5\Release\rpy\rinterface\rinterface.o
In file included from rpy\rinterface\rinterface.c:58:
C:/PROGRA~1/R/R-28~1.1/include/Rinterface.h:84: error:
conflicting types for 'uintptr_t'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdint.h:75:
error: previous declaration of 'uintptr_t' was here
In file included from rpy\rinterface\rinterface.c:62:
C:/PROGRA~1/R/R-28~1.1/include/R_ext/eventloop.h:66:
error: syntax error before "fd_set"
C:/PROGRA~1/R/R-28~1.1/include/R_ext/eventloop.h:67:
error: syntax error before '*' token
C:/PROGRA~1/R/R-28~1.1/include/R_ext/eventloop.h:67:
warning: type defaults to `int' in declaration of `R_checkActivity'
C:/PROGRA~1/R/R-28~1.1/include/R_ext/eventloop.h:67:
warning: data definition has no type or storage class
C:/PROGRA~1/R/R-28~1.1/include/R_ext/eventloop.h:68:
error: syntax error before '*' token
C:/PROGRA~1/R/R-28~1.1/include/R_ext/eventloop.h:68:
warning: type defaults to `int' in declaration of `R_checkActivityEx'
C:/PROGRA~1/R/R-28~1.1/include/R_ext/eventloop.h:68:
warning: data definition has no type or storage class
C:/PROGRA~1/R/R-28~1.1/include/R_ext/eventloop.h:69:
error: syntax error before "fd_set"
C:/PROGRA~1/R/R-28~1.1/include/R_ext/eventloop.h:71:
error: syntax error before "fd_set"
C:/PROGRA~1/R/R-28~1.1/include/R_ext/eventloop.h:73:
error: syntax error before ')' token
rpy\rinterface\rinterface.c:78: error: conflicting types
for 'uintptr_t'
C:/PROGRA~1/R/R-28~1.1/include/Rinterface.h:84: error:
previous declaration of 'uintptr_t' was here
rpy\rinterface\rinterface.c:78: error: conflicting types
for 'uintptr_t'
C:/PROGRA~1/R/R-28~1.1/include/Rinterface.h:84: error:
previous declaration of 'uintptr_t' was here
rpy\rinterface\rinterface.c:80: error: conflicting types
for 'R_CStackLimit'
C:/PROGRA~1/R/R-28~1.1/include/Rinterface.h:87: error:
previous declaration of 'R_CStackLimit' was here
rpy\rinterface\rinterface.c:80: error: conflicting types
for 'R_CStackLimit'
C:/PROGRA~1/R/R-28~1.1/include/Rinterface.h:87: error:
previous declaration of 'R_CStackLimit' was here
rpy\rinterface\rinterface.c:107: warning: 'interrupt_R'
defined but not used
rpy\rinterface\rinterface.c:225: warning:
'EmbeddedR_WriteConsole' defined but not used
rpy\rinterface\rinterface.c:287: warning:
'EmbeddedR_ReadConsole' defined but not used
rpy\rinterface\rinterface.c:373: warning:
'EmbeddedR_FlushConsole' defined but not used
rpy\rinterface\rinterface.c:2666: warning:
'externalMethods' defined but not used
error: command 'gcc' failed with exit status 1
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list