Build Cantor with the R backend also when the R version is equal or higher 3.2

Review Request #123531 - Created April 27, 2015 and submitted

Raymond Wooninck
arieder, filipesaraiva

In this commit:

R_running_as_main_program was moved from Rmain.c to Rinterface.h, and lost
its 'extern' declaration. This change is now causing linker problems when trying to build cantor against R v3.2 :

[ 391s] CMakeFiles/cantor_rserver.dir/rcallbacks.o:(.bss+0x10): multiple definition of `R_running_as_main_program'
[ 391s] CMakeFiles/cantor_rserver.dir/rserver.o:(.bss+0x0): first defined here
[ 391s] collect2: error: ld returned 1 exit status
[ 391s] src/backends/R/rserver/CMakeFiles/cantor_rserver.dir/build.make:247: recipe for target 'src/backends/R/rserver/cantor_rserver' failed
[ 391s] make[2]: *** [src/backends/R/rserver/cantor_rserver] Error 1

The attached patch would resolve the multiple definition.

Cantor builds fine for R v3.1.1 and R v3.2 versions

Filipe Saraiva
Filipe Saraiva
Raymond Wooninck
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 88b14d85b9504af29fa34ac41109db6ff1d8bdf5 by Raymond Wooninck to branch master.