On 14 March 2006 at 14:30, [EMAIL PROTECTED] wrote:
| Package: rpy
| Version: 0.4.6-3
| Severity: serious
| 
| Hi,
| 
| building the package rpy in a clean sid build environment
| (with pbuilder) on i386 results in:
| 
| =========================================================================
| [...]
| running build_ext
| building '_rpy2021' extension
| creating build/temp.linux-i686-2.3
| creating build/temp.linux-i686-2.3/src
| gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -O2 -Wall -fPIC 
-DR_HOME="/usr/lib/R" -DWITH_NUMERIC -DRPY_SHNAME="_rpy2021" 
-DINIT_RPY=init_rpy2021 -UPRE_2_2 -I/usr/lib/R/include -Isrc 
-I/usr/include/python2.3 -c src/R_eval2021.c -o 
build/temp.linux-i686-2.3/src/R_eval2021.o -shared
| In file included from src/R_eval2021.c:23:
| src/RPy.h:32:15: error: R.h: No such file or directory

We've move the include directory from /usr/lib/R/include to
/usr/share/R/include, and a few packages still assume it will always be at
$R_HOME/include (which R upstream no longer guarantees).

I'll fix Rpy and talk to upstream (CC'ed as well).

If you want to play with it, this segment of setup.py needs a fix:

    else: # unix-like systems, this is known to work for Linux and Solaris
        include_dirs = [ os.path.join(RHOME.strip(), 'include'), 
                         'src' ]
        libraries=['R','Rlapack']
        library_dirs = r_libs
        runtime_libs = r_libs
        extra_compile_args=["-shared"]
        source_files = source_files + ["src/setenv.c"]

The problem is the first assignment; include is no longer below R_HOME.  The
problem is that the output of 'R CMD config --cppflags' is still wrong in R
2.2.1, but R's upstream knows this and it will be fixed in R 2.3.0 which
comes out next months.

Thanks, Dirk

| src/RPy.h:33:22: error: Rdefines.h: No such file or directory
| [...]
| src/R_eval2021.c:92: warning: return makes integer from pointer without a cast
| src/R_eval2021.c:94: warning: implicit declaration of function 'PROTECT'
| src/R_eval2021.c:95: warning: implicit declaration of function 'allocVector'
| src/R_eval2021.c:95: error: 'LANGSXP' undeclared (first use in this function)
| src/R_eval2021.c:95: error: invalid lvalue in assignment
| src/R_eval2021.c:96: warning: implicit declaration of function 'SETCAR'
| src/R_eval2021.c:98: error: 'res' undeclared (first use in this function)
| src/R_eval2021.c:99: warning: implicit declaration of function 'UNPROTECT'
| src/R_eval2021.c: At top level:
| src/R_eval2021.c:108: error: syntax error before 'get_fun_from_name'
| src/R_eval2021.c:108: warning: return type defaults to 'int'
| src/R_eval2021.c: In function 'get_fun_from_name':
| src/R_eval2021.c:109: error: 'SEXP' undeclared (first use in this function)
| src/R_eval2021.c:109: error: syntax error before 'obj'
| src/R_eval2021.c:115: warning: return makes integer from pointer without a 
cast
| src/R_eval2021.c:119: warning: return makes integer from pointer without a 
cast
| src/R_eval2021.c:123: error: 'obj' undeclared (first use in this function)
| src/R_eval2021.c:123: warning: implicit declaration of function 'Rf_findVar'
| src/R_eval2021.c:123: warning: implicit declaration of function 'Rf_install'
| src/R_eval2021.c:123: error: 'R_GlobalEnv' undeclared (first use in this 
function)
| src/R_eval2021.c:144: error: 'R_UnboundValue' undeclared (first use in this 
function)
| src/R_eval2021.c:146: warning: return makes integer from pointer without a 
cast
| src/R_eval2021.c: In function 'get_last_error_msg':
| src/R_eval2021.c:153: error: 'SEXP' undeclared (first use in this function)
| src/R_eval2021.c:153: error: syntax error before 'msg'
| src/R_eval2021.c:155: error: 'msg' undeclared (first use in this function)
| src/R_eval2021.c:156: warning: implicit declaration of function 
'CHARACTER_VALUE'
| src/R_eval2021.c:156: warning: return makes pointer from integer without a 
cast
| error: command 'gcc' failed with exit status 1
| make: *** [build-stamp] Error 1
| =========================================================================
| 
| This comes from R.h being shipped at /usr/share/R/include/R.h by r-base-core
| but
| 
| $ R RHOME
| 
| yielding /usr/lib/R (which is automatically extended to the (wrong) include
| path.
| 
| Thanks for considering.
| 
| 
| --
| DARTS - Debian Archive Regression Test Suite
| http://darts.alioth.debian.org/
| 

-- 
Hell, there are no rules here - we're trying to accomplish something. 
                                                  -- Thomas A. Edison


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to