From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 16 02:32:44 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B4F4616A41F for ; Fri, 16 Dec 2005 02:32:44 +0000 (GMT) (envelope-from anthony.maher@uts.edu.au) Received: from zim.itd.uts.edu.au (zim.itd.uts.edu.au [138.25.22.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FAD843D5E for ; Fri, 16 Dec 2005 02:32:31 +0000 (GMT) (envelope-from anthony.maher@uts.edu.au) Received: by zim.itd.uts.edu.au (Postfix, from userid 900) id A701BC3474; Fri, 16 Dec 2005 13:32:29 +1100 (EST) Received: from vimes (vimes.itd.uts.edu.au [138.25.243.34])by zim.itd.uts.edu.au (Postfix/Ingress) with ESMTP id B3FB0C3484for ; Fri, 16 Dec 2005 13:28:43 +1100 (EST) Received: from [138.25.81.152] by postoffice.uts.edu.au(Sun Java System Messaging Server 6.1 HotFix 0.09 (built Dec 14 2004))with ESMTPS id <0IRK00JXAK7VMP40@postoffice.uts.edu.au> forhackers@freebsd.org; Fri, 16 Dec 2005 13:28:43 +1100 (EST) Date: Fri, 16 Dec 2005 13:28:43 +1100 From: Tony Maher To: hackers@freebsd.org Message-id: <43A2265B.5070706@uts.edu.au> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en X-Enigmail-Version: 0.93.0.0 User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051109 X-Virus-Scanned: amavisd-new at uts.edu.au Cc: Subject: mathematica/mathlink/python/linux X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2005 02:32:44 -0000 Hello, I have installed Mathematica (v5.2) on FreeBSD 5-stable. All works fine. I am now trying to get the Python bindings to MathLink to work. I can build ok but it links against the Mathematica library (ML) which is linux. When I import mathlink I get undefined symbol "stdout" message (stdout used in libML). In FreeBSD this symbol appears to be __stdoutp. ldd /usr/local/lib/python2.4/site-packages/mathlink.so /usr/local/lib/python2.4/site-packages/mathlink.so: libm.so.3 => /lib/libm.so.3 (0x481b6000) If I modify setup.py to specify libm as libm-2.3.2 (the linux one) ldd /usr/local/lib/python2.4/site-packages/mathlink.so /usr/local/lib/python2.4/site-packages/mathlink.so: libm.so.6 => /compat/linux/lib/libm.so.6 (0x481b6000) libc.so.6 => /compat/linux/lib/libc.so.6 (0x481d7000) ld-linux.so.2 (0x48302000) Then import fails with segmentation violation. Is there any way around this or is it a hopeless cause? (I could build a linux version of python on my system and then it shoudl work but that is not ideal) thanks -- tonym -- UTS CRICOS Provider Code: 00099F DISCLAIMER: This email message and any accompanying attachments may contain confidential information. If you are not the intended recipient, do not read, use, disseminate, distribute or copy this message or attachments. If you have received this message in error, please notify the sender immediately and delete this message. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of the University of Technology Sydney. Before opening any attachments, please check them for viruses and defects.