Displaying 14 results from an estimated 14 matches for "r_running_as_main_program".
2014 Jul 22
0
Removed 'extern' on R_running_as_main_program in Rinterface.h -- intentional?
Hi R-devel,
In this commit:
https://github.com/wch/r-source/commit/c67a107dd7b0f074cec9359b8e2ca07c6243283c
R_running_as_main_program was moved from Rmain.c to Rinterface.h, and lost
its 'extern' declaration. This change is causing us linker problems (since
we now have duplicate symbols for R_running_as_main_program). Was this
intentional? If so, what else should applications embedding R be doing to
indicate they are runn...
2015 Apr 21
1
Bug 15899 - Omitted 'extern' on 'R_running_as_main_program' after refactor can cause linker errors for applications embedding R
...ns for addressing the regression...
https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=15899
in the 3.2.1 release? In the fink project, I had to resort to creating a
fixincludes subdirectory containg a local copy of the offending
Rinterface.h header with the missing extern on the declaration of
R_running_as_main_program restored in order to suppress duplicate symbols
during the rstudio build...
https://support.rstudio.com/hc/communities/public/questions/203671967-duplicate-R-running-as-main-program-break-linkage-of-rstudio-desktop-0-98-1103-against-R-3-2-0?locale=en-us
[[alternative HTML version deleted]]
2007 Apr 03
2
R callbacks
...to use
the callbacks declared in Rinterface.h. As a first attempt, I'm trying
to redefine ptr_R_WriteConsole in a very trivial manner. Here's my
code:
---------------
$ cat altr.c
int Rf_initialize_R(int ac, char **av);
#define R_INTERFACE_PTRS 1
#include <Rinterface.h>
extern int R_running_as_main_program;
static void my_R_WriteConsole(char *buf, int len)
{
printf("R<< %s", buf);
}
int main(int ac, char **av)
{
R_running_as_main_program = 1;
ptr_R_WriteConsole = my_R_WriteConsole;
Rf_initialize_R(ac, av);
Rf_mainloop();
return 0;
}
---------------
I compile...
2015 Jun 16
1
back port of Bug 15899 fix missing from R 3.2.1 RC release!!!
Is there a reason why the fix for Bug 15899 - Omitted 'extern' on
'R_running_as_main_program' after refactor can cause linker errors for
applications embedding R...
https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=15899
was never back ported for R 3.3 for the R 3.2.1 release? Restoring
that omitted 'extern' to the declaration of 'int
R_running_as_main_program;' in...
2010 Jul 21
1
Plot window does not update in embedded code
...[i] = input[i];
buf[i+1] = '\n';
buf[i+2] = '\0';
if ((int)i >= buflen-3) break;
}
return input.length();
}
extern "C" {
#define R_INTERFACE_PTRS
#include <Rinterface.h>
int Rf_initialize_R(int ac, char **av); /* in ../unix/system.c */
extern int R_running_as_main_program; /* in ../unix/system.c */
}
int main(int ac, char **av)
{
R_running_as_main_program = 1;
Rf_initialize_R(ac, av);
ptr_R_WriteConsoleEx = &R_WriteConsoleEx;
ptr_R_WriteConsole = &R_WriteConsole;
ptr_R_ReadConsole = &R_ReadConsole;
R_Outputfile = NULL;
R_Consolefile = NU...
2016 Feb 01
1
Wrong config check for __libc_stack_end
...ntptr_t) __libc_stack_end;
#elif defined(HAVE_KERN_USRSTACK)
{
/* Borrowed from mzscheme/gc/os_dep.c */
int nm[2] = {CTL_KERN, KERN_USRSTACK};
void * base;
size_t len = sizeof(void *);
(void) sysctl(nm, 2, &base, &len, NULL, 0);
R_CStackStart = (uintptr_t) base;
}
#else
if(R_running_as_main_program) {
/* This is not the main program, but unless embedded it is
near the top, 5540 bytes away when checked. */
R_CStackStart = (uintptr_t) &i + (6000 * R_CStackDir);
}
#endif
if(R_CStackStart == -1) R_CStackLimit = -1; /* never set */
/* printf("stack limit %ld, start %lx...
2008 Jun 30
1
AIX 5.3 --enable-R-shlib make error with R-2.7.1
...nimal-toc -g -O3 -c Rmain.c -o Rmain.o
gcc -maix64 -std=gnu99 -Wl,-brtl -Wl,-bexpall -Wl,-bpT:0x100000000
-Wl,-bpD:0x110000000 -lc
-L//users/apps/crm_cm/n731661x/usr/local/lib/ppc64
-L//users/apps/crm_cm/n731661x/usr/local/lib -o R.bin Rmain.o
-L../../lib -lR
ld: 0711-317 ERROR: Undefined symbol: R_running_as_main_program
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
make[3]: *** [R.bin] Error 1
make[3]: Leaving directory
`/home/apps/crm_cm/n731661x/src/R-2.7.1/src/main'
make[2]: *** [R] Error 2
make[2]: Leaving directory
`/home/apps/crm_cm/n73...
2009 Oct 17
1
R292 on AIX53 using gcc
...100000000
-Wl,-bpD:0x110000000 -lc -L/opt/freeware/lib64 -L/opt/freeware/64/lib
-L/opt/freeware/lib -L/usr/local/lib -o R.bin Rmain.o -L../../lib -lR
ld: 0711-224 WARNING: Duplicate symbol: .memcpy
...duplicate symbol warning for: memcpy,bcopy,memset,fres
ld: 0711-317 ERROR: Undefined symbol: R_running_as_main_program
collect2: ld returned 8 exit status
make: The error code from the last command is 1.
2007 Jan 30
1
Solaris 10 compilation issue
...connections.o
bincode registration.o
R_CleanTempDir main.o
do_proctime names.o
norm_rand optim.o
Rf_rnchisq random.o
Rf_rnbinom random.o
R_running_as_main_program Rmain.o
Rf_psigamma arithmetic.o
ch2inv_ registration.o
BZ2_bzWrite connections.o
inflateInit2_ connections.o
Rf_rwilcox random.o
R_CleanUp...
2007 Jan 30
1
Difficulty with compiling R-2.4.1 on solaris 10
...connections.o
bincode registration.o
R_CleanTempDir main.o
do_proctime names.o
norm_rand optim.o
Rf_rnchisq random.o
Rf_rnbinom random.o
R_running_as_main_program Rmain.o
Rf_psigamma arithmetic.o
ch2inv_ registration.o
BZ2_bzWrite connections.o
inflateInit2_ connections.o
Rf_rwilcox random.o
R_CleanUp...
2006 Apr 11
4
Stack checking, core dumps, and embedding R
I will say this first -- I can't copy/paste the error message from the
screen, so it's being retyped. Errors might occur. SORRY.
I've been experiencing some interesting stack warnings recently when
moving from R 2.2.x to the R 2.3.0 series and the R 2.4.0 series. In
particular, I'm getting warnings of "Error: C stack usage is too close
to the limit" before
2007 Jan 30
0
R Compiling issue
...in ../extra/intl/libintl.a(textdomain.o)
Rf_qwilcox arithmetic.o
libintl_nl_default_default_domain ../extra/intl/libintl.a(textdomain.o)
BZ2_bzWriteOpen connections.o
bincode registration.o
R_CleanTempDir main.o
do_proctime names.o
norm_rand optim.o
Rf_rnchisq random.o
Rf_rnbinom random.o
R_running_as_main_program Rmain.o
Rf_psigamma arithmetic.o
ch2inv_ registration.o
BZ2_bzWrite connections.o
inflateInit2_ connections.o
Rf_rwilcox random.o
R_CleanUp errors.o
_nl_find_msg ../extra/intl/libintl.a(loadmsgcat.o)
Rf_dsignrank arithmetic.o
Rf_psignrank arithmetic.o
Rf_rsignrank random.o
Rf_qsignrank a...
2007 Jan 30
0
Issue with compiling R on solaris 10
...connections.o
bincode registration.o
R_CleanTempDir main.o
do_proctime names.o
norm_rand optim.o
Rf_rnchisq random.o
Rf_rnbinom random.o
R_running_as_main_program Rmain.o
Rf_psigamma arithmetic.o
ch2inv_ registration.o
BZ2_bzWrite connections.o
inflateInit2_ connections.o
Rf_rwilcox random.o
R_CleanUp...
2016 Feb 01
3
Wrong config check for __libc_stack_end
>>>>> Alba Pompeo <albapompeo at gmail.com>
>>>>> on Fri, 29 Jan 2016 08:23:26 -0200 writes:
> Here is my log from 'make check' using an Intel i5 64-bit
> processor - http://pastebin.com/raw/N6SYAuFX Here is
> Isaac's log from 'make check' using an Intel Atom 32-bit
> processor -