Denis,

On 25 May 2010 at 11:56, Denis Barbier wrote:
| According to
|   http://www.python.org/dev/peps/pep-3123/
| the attached patch should work.  I have tested that python-rpy2
| compiles, but do not know whether it works fine.

Wow, that would be a good catch.  I guess Laurent may have been unaware too.

I just applied the three-line patch -- but it does not work:

copying rpy/robjects/lib/grid.py -> build/lib.linux-x86_64-2.5/rpy2/robjects/lib
copying rpy/robjects/lib/ggplot2.py -> 
build/lib.linux-x86_64-2.5/rpy2/robjects/lib
copying rpy/robjects/lib/__init__.py -> 
build/lib.linux-x86_64-2.5/rpy2/robjects/lib
running build_ext
building 'rpy2.rinterface.rinterface' extension
creating build/temp.linux-x86_64-2.5
creating build/temp.linux-x86_64-2.5/rpy
creating build/temp.linux-x86_64-2.5/rpy/rinterface
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -O2 -Wall -fPIC -DR_INTERFACE_PTRS=1 -DHAVE_POSIX_SIGJMP=1 
-DCSTACK_DEFNS=1 -DRIF_HAS_RSIGHAND=1 -Irpy/rinterface -I/usr/share/R/include 
-I/usr/include/python2.5 -I/usr/share/R/include -c rpy/rinterface/rinterface.c 
-o build/temp.linux-x86_64-2.5/rpy/rinterface/rinterface.o -L/usr/lib/R/lib -lR 
-llapack -lblas
In file included from /usr/include/python2.5/Python.h:8,
                 from rpy/rinterface/rinterface.c:55:
/usr/include/python2.5/pyconfig.h:970:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/signal.h:29,
                 from rpy/rinterface/rinterface.c:51:
/usr/include/features.h:210:1: warning: this is the location of the previous 
definition
In file included from rpy/rinterface/rinterface.c:74:
/usr/share/R/include/R_ext/Rdynload.h:26: warning: function declaration isn't a 
prototype
In file included from rpy/rinterface/rinterface.c:88:
rpy/rinterface/rpy_rinterface.h:28: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'Py_Size'
In file included from rpy/rinterface/rinterface.c:105:
rpy/rinterface/sequence.c: In function 'VectorSexp_ass_slice':
rpy/rinterface/sequence.c:447: warning: unused variable 'sexp_item'
rpy/rinterface/sequence.c:447: warning: unused variable 'tmp'
rpy/rinterface/sequence.c:446: warning: unused variable 'vs'
rpy/rinterface/sequence.c:386: warning: unused variable 'self_typeof'
rpy/rinterface/rinterface.c: In function 'EmbeddedR_end':
rpy/rinterface/rinterface.c:1112: warning: unused variable 'str'
error: command 'gcc' failed with exit status 1
make: *** [build-stamp] Error 1

If you can make it work, Laurent and I would be very happy to hear about it.

Dirk


| 
| Denis
| xapplication/x-empty       [Click mouse 
http://www.python.org/dev/peps/pep-3123/-2 to save to a file]

-- 
  Regards, Dirk



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to