I am compiling the Embedding examples in the tests directory and get an undefined reference. I include the make output as well as grep'd output of nm on libR.so and compiler and arch information. Do I have an improperly built R shared library or is there a problem with the Embedding tests or something else I am not seeing?
Thanks for any help! George [EMAIL PROTECTED]:/data5/ost/R/R-2.3.0/tests/Embedding> make ../../bin/R CMD LINK gcc -o Rtest Rtest.o embeddedRCall.o -L`cd ../.. && /bin/pwd`/lib -lR gcc -o Rtest Rtest.o embeddedRCall.o -L/autofs/tewa_data5/ost/R/R-2.3.0/lib -lR -Wl,--rpath -Wl,/data5/ost/R/R-2.3.0/lib embeddedRCall.o(.text+0x1e): In function `Test_tryEval': /autofs/tewa_data5/ost/R/R-2.3.0/tests/Embedding/embeddedRCall.c:81: undefined reference to `R_ToplevelExec' collect2: ld returned 1 exit status make: *** [Rtest] Error 1 [EMAIL PROTECTED]:/data5/ost/R/R-2.3.0/tests/Embedding> cd /autofs/tewa_data5/ost/R/R-2.3.0/lib [EMAIL PROTECTED]:/autofs/tewa_data5/ost/R/R-2.3.0/lib> nm libR.so | grep R_Top 000000000042c920 B R_Toplevel 000000000042cae8 B R_ToplevelContext 000000000007a7b0 t R_ToplevelExec [EMAIL PROTECTED]:/autofs/tewa_data5/ost/R/R-2.3.0/lib> gcc --version gcc (GCC) 3.3.4 (pre 3.3.5 20040809) Copyright (C) 2003 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. [EMAIL PROTECTED]:/autofs/tewa_data5/ost/R/R-2.3.0/lib> arch x86_64 [EMAIL PROTECTED]:/autofs/tewa_data5/ost/R/R-2.3.0/lib> -- George Ostrouchov Statistics and Data Sciences Group Computer Science and Mathematics Division Oak Ridge National Laboratory http://www.csm.ornl.gov/~ost Register for the JRC 2006? http://2006jointresearch.bus.utk.edu/ Conference starts June 6, 2006. ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel