From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Sep 25 21:20:26 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02B2B16A4D4 for ; Sat, 25 Sep 2004 21:20:26 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C8EDE43D3F for ; Sat, 25 Sep 2004 21:20:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i8PLKPBb084667 for ; Sat, 25 Sep 2004 21:20:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i8PLKPi6084666; Sat, 25 Sep 2004 21:20:25 GMT (envelope-from gnats) Resent-Date: Sat, 25 Sep 2004 21:20:25 GMT Resent-Message-Id: <200409252120.i8PLKPi6084666@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Lee Harr Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB4A016A4CE for ; Sat, 25 Sep 2004 21:12:21 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0BCF43D39 for ; Sat, 25 Sep 2004 21:12:21 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i8PLCLE6032762 for ; Sat, 25 Sep 2004 21:12:21 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i8PLCLUO032761; Sat, 25 Sep 2004 21:12:21 GMT (envelope-from nobody) Message-Id: <200409252112.i8PLCLUO032761@www.freebsd.org> Date: Sat, 25 Sep 2004 21:12:21 GMT From: Lee Harr To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: ports/72089: math/rpy builds but does not work X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Sep 2004 21:20:26 -0000 >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 "", 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"