Hi, There's two other mailing posts with the same problem (http://sourceforge.net/mailarchive/message.php?msg_id=11870317 from 2005 and http://sourceforge.net/mailarchive/message.php?msg_id=10046356 from 2004), and no solutions.
The problem is this (I have no control over compiler, and it uses sun ld not gnu ld): > Python 2.4.3 (#5, Aug 25 2006, 03:24:31) > [GCC 2.95.3 20010315 (release)] on sunos5 > Type "help", "copyright", "credits" or "license" for more information. >>>> import rpy > RHOME= /export/home/medscan/local/lib/R > RVERSION= 2.4.0 > RVER= 2040 > RUSER= /export/home/medscan > Loading Rpy version 2040 .. > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/export/home/medscan/local/lib/python2.4/site-packages/rpy.py", line > 112, in ? > exec("import _rpy%s as _rpy" % RVER) > File "<string>", line 1, in ? > ImportError: ld.so.1: python: fatal: relocation error: file > /export/home/medscan/local/lib/R/lib/libR.so: symbol MAIN__: referenced > symbol not found The Solaris advice in INSTALL.UNIX doesn't say what happens if you don't do the following, and is out of date because R doesn't have any LIBR_LDFLAGS variable (so [FIXME]): > (a) Solaris users must change the line: > > LIBR_LDFLAGS = -shared > > in the file 'Makeconf' on the R source directory, for the line: > > LIBR_LDFLAGS = -shared -symbolic > > before recompiling the R library. Adding -symbolic to the 'SHLIB_LDFLAGS = -G' line in Makeconf instead (which seemed sensible), gives this error when trying to compile R (--enable-R-shlib): > gcc -symbolic -G -L/usr/local/lib -o libR.so ... > Text relocation remains referenced > against symbol offset in file > <unknown> 0xc > /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.9/2.95.3/libg2c.a(cabs.o) > <unknown> 0x24 > /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.9/2.95.3/libg2c.a(cabs.o) > <unknown> 0x90 > /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.9/2.95.3/libg2c.a(cabs.o) > <unknown> 0x98 > /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.9/2.95.3/libg2c.a(cabs.o) > sqrt 0xc4 > /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.9/2.95.3/libg2c.a(cabs.o) > ld: fatal: relocations remain against allocatable but non-writable sections > collect2: ld returned 1 exit status Does anyone know what is going on and how to fix it? Any successes in setting this combination up? ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list