Date: Sat, 25 Sep 2004 21:12:21 GMT From: Lee Harr <missive@hotmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/72089: math/rpy builds but does not work Message-ID: <200409252112.i8PLCLUO032761@www.freebsd.org> Resent-Message-ID: <200409252120.i8PLKPi6084666@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 72089 >Category: ports >Synopsis: math/rpy builds but does not work >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Sep 25 21:20:25 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Lee Harr >Release: 4.10 >Organization: >Environment: FreeBSD homer 4.10-STABLE FreeBSD 4.10-STABLE #10: Sat Sep 11 13:09:56 EDT 2004 root@homer:/mnt/obj/mnt/src/sys/HOMER i386 >Description: After installing the math/rpy port, there is an error trying to import the python module: ImportError: /usr/local/lib/python2.3/site-packages/_rpymodule.so: Undefined symbol "jump_now" >How-To-Repeat: Install port math/rpy then ... $python Python 2.3.4 (#2, Aug 23 2004, 11:46:20) [GCC 2.95.4 20020320 [FreeBSD]] on freebsd4 Type "help", "copyright", "credits" or "license" for more information. >Fix: I found a patch on the rpy mailing list which at least allows the module to be imported and used on some of the demo code: --- rpy-0.3.1.orig/src/RPy.h +++ rpy-0.3.1/src/RPy.h @@ -90,7 +90,8 @@ PyOS_sighandler_t python_sigint; /* R function for jumping to toplevel context */ -extern void jump_now(void); +/* extern void jump_now(void); */ +extern void Rf_onintr(void); /* Global interpreter */ PyInterpreterState *my_interp; --- rpy-0.3.1.orig/src/R_eval.c +++ rpy-0.3.1/src/R_eval.c @@ -65,7 +65,8 @@ void interrupt_R(int signum) { interrupted = 1; - jump_now(); + /* jump_now(); */ + Rf_onintr(); } >Release-Note: >Audit-Trail: >Unformatted: >>> import rpy Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/local/lib/python2.3/site-packages/rpy.py", line 24, in ? import _rpy ImportError: /usr/local/lib/python2.3/site-packages/_rpymodule.so: Undefined symbol "jump_now"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409252112.i8PLCLUO032761>