[Rd] unable to load shared library: undefined symbol

From: Ctagz <jonathan.zhou_at_utoronto.ca>
Date: Fri, 20 Jul 2007 13:48:43 -0700 (PDT)

Hi all,

I'm a summer University research student and I've been wroking on writing a package, Rsoam, to integrate R with Platform's symphony software to allow for distributed computing. When I "R CMD check" the package, I get the following error when trying to load the Rsoam.so after building Rsoam.cpp:

            My Makevars file consists of:

PKG_CPPFLAGS = -I/opt/symphonyDE/3.1/src -I/opt/symphonyDE/3.1/include
-DGCC34 -Wall -DLINUX -Wno-deprecated

PKG_LIBS = -L/opt/symphonyDE/3.1/src -L/opt/symphonyDE/3.1/include
-L/opt/symphonyDE/3.1/linux2.6-glibc2.3-x86/lib -LsampleCommon -Lsoambase

            and 00install.out has the following g++ build:

g++ -I/usr/lib/R/include -I/usr/lib/R/include -I/opt/symphonyDE/3.1/src

-I/opt/symphonyDE/3.1/include -DGCC34 -Wall -DLINUX -Wno-deprecated
-I/usr/local/include -fpic -O2 -g -c Rsoam9.cpp -o Rsoam9.o
g++ -shared -Wl,-O1 -o Rsoam.so Rsoam9.o -L/opt/symphonyDE/3.1/src
-L/opt/symphonyDE/3.1/linux2.6-glibc2.3-x86/lib -LsampleCommon -Lsoambase
-Lsoamapi -L/usr/lib/R/lib -lR

I thought I'd written the Makevars to a sufficient degree, but I guess that may not actually be the case. I understand that you guys are probably not familiar with symphony, but I was hoping if someone could tell me what slips through when I'm building this shared library?


View this message in context: http://www.nabble.com/unable-to-load-shared-library%3A-undefined-symbol-tf4118911.html#a11713874 Sent from the R devel mailing list archive at Nabble.com.

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat 21 Jul 2007 - 06:19:51 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 21 Jul 2007 - 09:36:46 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.