Date: Fri, 16 Dec 2005 13:28:43 +1100 From: Tony Maher <anthony.maher@uts.edu.au> To: hackers@freebsd.org Subject: mathematica/mathlink/python/linux Message-ID: <43A2265B.5070706@uts.edu.au>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43A2265B.5070706>