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
copying rpy/rpy_classic.py -> build/lib.darwin-9.4.0-i386-2.4/rpy2
copying rpy/tests.py -> build/lib.darwin-9.4.0-i386-2.4/rpy2
creating build/lib.darwin-9.4.0-i386-2.4/rpy2/rlike
copying rpy/rlike/__init__.py ->
build/lib.darwin-9.4.0-i386-2.4/rpy2/rlike
copying rpy/rlike/container.py ->
build/lib.darwin-9.4.0-i386-2.4/rpy2/rlike
creating build/lib.darwin-9.4.0-i386-2.4/rpy2/rlike/tests
copying rpy/rlike/tests/__init__.py ->
build/lib.darwin-9.4.0-i386-2.4/rpy2/rlike/tests
copying rpy/rlike/tests/test_container.py ->
build/lib.darwin-9.4.0-i386-2.4/rpy2/rlike/tests
creating build/lib.darwin-9.4.0-i386-2.4/rpy2/robjects
copying rpy/robjects/__init__.py ->
build/lib.darwin-9.4.0-i386-2.4/rpy2/robjects
creating build/lib.darwin-9.4.0-i386-2.4/rpy2/robjects/tests
copying rpy/robjects/tests/__init__.py ->
build/lib.darwin-9.4.0-i386-2.4/rpy2/robjects/tests
copying rpy/robjects/tests/testRArray.py ->
build/lib.darwin-9.4.0-i386-2.4/rpy2/robjects/tests
copying rpy/robjects/tests/testRDataFrame.py ->
build/lib.darwin-9.4.0-i386-2.4/rpy2/robjects/tests
copying rpy/robjects/tests/testREnvironment.py ->
build/lib.darwin-9.4.0-i386-2.4/rpy2/robjects/tests
copying rpy/robjects/tests/testRFormula.py ->
build/lib.darwin-9.4.0-i386-2.4/rpy2/robjects/tests
copying rpy/robjects/tests/testRFunction.py ->
build/lib.darwin-9.4.0-i386-2.4/rpy2/robjects/tests
copying rpy/robjects/tests/testRObject.py ->
build/lib.darwin-9.4.0-i386-2.4/rpy2/robjects/tests
copying rpy/robjects/tests/testRobjects.py ->
build/lib.darwin-9.4.0-i386-2.4/rpy2/robjects/tests
copying rpy/robjects/tests/testRVector.py ->
build/lib.darwin-9.4.0-i386-2.4/rpy2/robjects/tests
creating build/lib.darwin-9.4.0-i386-2.4/rpy2/rinterface
copying rpy/rinterface/__init__.py ->
build/lib.darwin-9.4.0-i386-2.4/rpy2/rinterface
creating build/lib.darwin-9.4.0-i386-2.4/rpy2/rinterface/tests
copying rpy/rinterface/tests/__init__.py ->
build/lib.darwin-9.4.0-i386-2.4/rpy2/rinterface/tests
copying rpy/rinterface/tests/test_EmbeddedR.py ->
build/lib.darwin-9.4.0-i386-2.4/rpy2/rinterface/tests
copying rpy/rinterface/tests/test_Sexp.py ->
build/lib.darwin-9.4.0-i386-2.4/rpy2/rinterface/tests
copying rpy/rinterface/tests/test_SexpClosure.py ->
build/lib.darwin-9.4.0-i386-2.4/rpy2/rinterface/tests
copying rpy/rinterface/tests/test_SexpEnvironment.py ->
build/lib.darwin-9.4.0-i386-2.4/rpy2/rinterface/tests
copying rpy/rinterface/tests/test_SexpVector.py ->
build/lib.darwin-9.4.0-i386-2.4/rpy2/rinterface/tests
copying rpy/rinterface/tests/test_SexpVectorNumeric.py ->
build/lib.darwin-9.4.0-i386-2.4/rpy2/rinterface/tests
running build_ext
building 'rpy2.rinterface.rinterface' extension
creating build/temp.darwin-9.4.0-i386-2.4
creating build/temp.darwin-9.4.0-i386-2.4/rpy
creating build/temp.darwin-9.4.0-i386-2.4/rpy/rinterface
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
-mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-DR_INTERFACE_PTRS=1 -DCSTACK_DEFNS=1 -DRIF_HAS_RSIGHAND=1
-I/Library/Frameworks/R.framework/Resources/include -Irpy/rinterface
-I/sw/include/python2.4 -c rpy/rinterface/array.c -o
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'
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
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to