Great ! I have no access to a Mac, but both Peter and you have pointed out problems with Python 2.4 I can reproduce on linux.
The SVN version should now compile and install fine on Python 2.4. The unit tests will segfault when trying to get a vector item for an index value equal to ri.R_LEN_T_MAX+1 (and I need to investigate that further). Thanks, Laurent 2008/8/7 Warnes, Gregory R. <[EMAIL PROTECTED]>: > Works fine for me after removing the old fink python 2.4 so that I'm > using 2.5.1 > > -G > > -----Original Message----- > From: Laurent Gautier [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 07, 2008 1:06 PM > To: Warnes, Gregory R. > Cc: [email protected] > Subject: Re: [Rpy] rpy2: alpha2 released > > 2008/8/7 Laurent Gautier <[EMAIL PROTECTED]>: >> 2008/8/7 Warnes, Gregory R. <[EMAIL PROTECTED]>: >>> I get a similar error on my Mac Leopard system: >>> >>> >>> [Crooked-2:~/src/rpy_nextgen] warnes% python setup.py build >>> running build >>> running build_py >>> creating build >>> creating build/lib.darwin-9.4.0-i386-2.4 >>> creating build/lib.darwin-9.4.0-i386-2.4/rpy2 >>> copying rpy/__init__.py -> build/lib.darwin-9.4.0-i386-2.4/rpy2 >> (...) >>> build/temp.darwin-9.4.0-i386-2.4/rpy/rinterface/array.o >>> In file included from rpy/rinterface/array.c:7: >>> rpy/rinterface/rinterface.h:16: error: syntax error before > 'Py_ssize_t' >> >> Uh, uh... forget my earlier post. >> Py_ssize_t is only existing since Python 2.5, I think. >> > > I have this in rinterface.c: > > /* Back-compatibility with Python 2.4 */ > #if (PY_VERSION_HEX < 0x02050000) > typedef int Py_ssize_t; > typedef inquiry lenfunc; > typedef intargfunc ssizeargfunc; > typedef intobjargproc ssizeobjargproc; > #endif > > but I might have made changes causing trouble when compiling since my > last test with python 2.4. > > You could try moving the block above from rinterface.c to rinterface.h. > (I'll try it myself later today) > >>> rpy/rinterface/rinterface.h:16: warning: no semicolon at end of > struct >>> or union >>> rpy/rinterface/rinterface.h:19: error: syntax error before '}' token >>> rpy/rinterface/rinterface.h:19: warning: type defaults to 'int' in >>> declaration of 'SexpObject' >>> rpy/rinterface/rinterface.h:19: warning: data definition has no type > or >>> storage class >>> rpy/rinterface/rinterface.h:24: error: syntax error before > 'SexpObject' >>> rpy/rinterface/rinterface.h:24: warning: no semicolon at end of > struct >>> or union >>> rpy/rinterface/rinterface.h:26: warning: type defaults to 'int' in >>> declaration of 'PySexpObject' >>> rpy/rinterface/rinterface.h:26: warning: data definition has no type > or >>> storage class >>> rpy/rinterface/array.c:103: error: syntax error before '*' token >>> rpy/rinterface/array.c:104: warning: function declaration isn't a >>> prototype >>> rpy/rinterface/array.c: In function 'array_struct_get': >>> rpy/rinterface/array.c:105: error: 'self' undeclared (first use in > this >>> function) >>> rpy/rinterface/array.c:105: error: (Each undeclared identifier is >>> reported only once >>> rpy/rinterface/array.c:105: error: for each function it appears in.) >>> error: command 'gcc' failed with exit status 1 >>> >>> >>> Where my gcc is: >>> >>> [Crooked-2:~/src/rpy_nextgen] warnes% gcc --version >>> i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5484) >>> Copyright (C) 2005 Free Software Foundation, Inc. >>> This is free software; see the source for copying conditions. There > is >>> NO >>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR >>> PURPOSE. >>> >>> >>> >>> -Greg >>> >> > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ rpy-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rpy-list
