By the way, the default compilation for python modules is with
the flag -Wstrict-prototypes.
It used to generate a number of warnings, and after I reported
it on the r-devel list, it was solved (for R-2.7).
(well mostly, there is a last warning:
include/R_ext/Rdynload.h:26: warning: function declaration isn't a prototype
)

The following part in setup.py (trunk, that is version 1.x) can eventually
be changed:
    if DEBUG:
        # to avoid strict prototypes errors from R includes
        get_config_vars()['OPT'] = '-g -Wall'
    else:
        # to avoid strict prototypes errors from R includes
        get_config_vars()['OPT'] = '-DNDEBUG -g -O3 -Wall'


L.


2008/5/14 Gregory Warnes <[EMAIL PROTECTED]>:
>
> Hi Ernesto,
> These warning messages are normal, albeit annoying.    I've just made
> commited changes to the the SVN repository to avoid the ones from
> rpymodule.c and io.c, so this should be less of a problem in the future.
> -Greg
>
> On May 14, 2008, at 3:34AM , Ernesto wrote:
>
> Dear all,
>
> I'm trying to install rpy on my Mac OS X 10.4. I currently use python
> 2.4 and R 2.5.1. I followed instructions found in the README file and
> other past messagges. I went into the main rpy folder running the
> following command:
>
> python setup.py build
>
> and I had the message:
>
> RHOMES= []
> DEBUG= True
> Setting RHOMES to  ['/Library/Frameworks/R.framework/Resources']
> ### Using R verion 2.5.1 installed at /Library/Frameworks/R.framework/
> Resources ###
> RHOME= /Library/Frameworks/R.framework/Resources
> copying src/rpymodule.c -> src/rpymodule2051.c
> copying src/R_eval.c -> src/R_eval2051.c
> copying src/io.c -> src/io2051.c
> running build
> running build_py
> creating build
> creating build/lib.macosx-10.3-fat-2.4
> copying rpy.py -> build/lib.macosx-10.3-fat-2.4
> copying rpy_io.py -> build/lib.macosx-10.3-fat-2.4
> copying rpy_version.py -> build/lib.macosx-10.3-fat-2.4
> copying rpy_tools.py -> build/lib.macosx-10.3-fat-2.4
> copying rpy_options.py -> build/lib.macosx-10.3-fat-2.4
> copying rpy_wintools.py -> build/lib.macosx-10.3-fat-2.4
> running build_ext
> building '_rpy2051' extension
> C compiler: gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/
> MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
> -mno-fused-madd -fno-common -dynamic -g -Wall
>
> creating build/temp.macosx-10.3-fat-2.4
> creating build/temp.macosx-10.3-fat-2.4/src
> compile options: '-DWITH_NUMERIC=3 -DPY_ARRAY_TYPES_PREFIX=PyArray_ -
> DRPY_SHNAME=_rpy2051 -DINIT_RPY=init_rpy2051 -UPRE_2_2 -I/Library/
> Frameworks/R.framework/Resources/include -Isrc -I/Library/Frameworks/
> Python.framework/Versions/2.4/lib/python2.4/site-packages/numpy/core/
> include -I/Library/Frameworks/Python.framework/Versions/2.4/include/
> python2.4 -c'
> gcc: src/R_eval2051.c
> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
> packages/numpy/core/include/numpy/__multiarray_api.h:944: warning:
> '_import_array' defined but not used
> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
> packages/numpy/core/include/numpy/__multiarray_api.h:944: warning:
> '_import_array' defined but not used
> gcc: src/io2051.c
> src/io2051.c: In function 'RPy_ReadConsole':
> src/io2051.c:133: warning: pointer targets in passing argument 1 of
> 'snprintf' differ in signedness
> src/io2051.c: In function 'RPy_ReadConsole':
> src/io2051.c:133: warning: pointer targets in passing argument 1 of
> 'snprintf' differ in signedness
> src/io2051.c: At top level:
> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
> packages/numpy/core/include/numpy/__multiarray_api.h:944: warning:
> '_import_array' defined but not used
> src/io2051.c: At top level:
> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
> packages/numpy/core/include/numpy/__multiarray_api.h:944: warning:
> '_import_array' defined but not used
> gcc: src/rpymodule2051.c
> src/rpymodule2051.c: In function 'r_finalize':
> src/rpymodule2051.c:1788: warning: implicit declaration of function
> 'R_CleanTempDir'
> src/rpymodule2051.c:1776: warning: unused variable 'tmpdir'
> src/rpymodule2051.c:1775: warning: unused variable 'buf'
> src/rpymodule2051.c: In function 'r_finalize':
> src/rpymodule2051.c:1788: warning: implicit declaration of function
> 'R_CleanTempDir'
> src/rpymodule2051.c:1776: warning: unused variable 'tmpdir'
> src/rpymodule2051.c:1775: warning: unused variable 'buf'
> gcc -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g
> -bundle -undefined dynamic_lookup build/temp.macosx-10.3-fat-2.4/src/
> rpymodule2051.o build/temp.macosx-10.3-fat-2.4/src/R_eval2051.o build/
> temp.macosx-10.3-fat-2.4/src/io2051.o -L/Library/Frameworks/
> R.framework/Resources/bin -L/Library/Frameworks/R.framework/Resources/
> lib -L/Library/Frameworks/R.framework/Resources/bin -L/Library/
> Frameworks/R.framework/Resources/lib -lR -o build/lib.macosx-10.3-
> fat-2.4/_rpy2051.so
>
>
> If you can see there are a lot of warnings. Is there any error?
>
> Thank you in advance,
>
> Ernesto
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> rpy-list mailing list
> rpy-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rpy-list
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> rpy-list mailing list
> rpy-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rpy-list
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to