[Pythonmac-SIG] Help: fink python broken after 10.2 upgrade
Russell E Owen
owen@astro.washington.edu
Fri, 13 Sep 2002 15:35:33 -0700
Culling everything I've been able to find so far, it appears:
- fink will need updating for fink python to run on MacOS 10.2. That
is patently true of the binary. I'm not sure of the source. I tried
the fink source installation and got nowhere (some database it wanted
to install couldn't be installed), which is probably not a MacOS X
10.2 issue.
- Installing Python directly from the unix tarball and getting
readline and Tkinter support is a complicated process. In fact I'm
still hacking at it, but so far I found:
Dan Wolfe's Pythonmac-SIG message
<http://mail.python.org/pipermail/pythonmac-sig/2002-September/006167.html>
gives clear instructions on installing gnu readlines, which must be
done before you install Python if you want readline support.
I decided to try the Aqua version of tcl/tk. I installed the binary
from <http://sourceforge.net/project/showfiles.php?group_id=10894>
and tried to use Tony Lownds' instructions for building Python with
it from <http://tony.lownds.com/macosx/>. However, these instructions
are a bit old (they were clearly not written for the current Python
and MacOS 10.2) and they failed for me. The make returned the
following errors:
libtool -o Python.framework/Versions/2.2/Python -dynamic libpython2.2.a \
-framework System -lcc_dynamic -arch_only ppc -flat_namespace
-U _environ -framework CoreServices -framework Foundation
-install_name Python.framework/Versions/2.2/Python
-compatibility_version 2.2 -current_version 2.2
ld: Undefined symbols:
_TclFreeObj
_Tcl_AddErrorInfo
_Tcl_Alloc
_Tcl_CreateCommand
_Tcl_CreateFileHandler
_Tcl_CreateInterp
I suspect I can just install XonX's current xfree86 (which is rumored
to have been updated for MacOS 10.2) and then do the default build of
Python. That is certainly what I will try next on Monday (I'm getting
a cold and am going home early).
However, if anyone has already waded through this swamp and has
actual instructions for building Python with readlines and Tkinter
support, I would be very grateful for them.
-- Russell
At 9:33 PM +0200 2002-09-13, Jack Jansen wrote:
>On vrijdag, september 13, 2002, at 06:23 , Russell E Owen wrote:
>>I upgraded to 10.2 yesterday (including the developer tools) and now
>>my Python (the current fink binary, version 2.2) is broken. When I
>>start it I see:
>>/sw/bin/python
>>Python 2.2 (#1, Apr 17 2002, 16:11:12)
>>[GCC 2.95.2 19991024 (release)] on darwin
>>Type "help", "copyright", "credits" or "license" for more information.
>>dyld: /sw/bin/python Undefined symbols:
>>/sw/lib/libreadline.4.2.dylib undefined reference to _tgetent
>>expected to be defined in /usr/lib/libSystem.B.dylib
>>Trace/BPT trap
>
>This is the Jaguar problem I've seen the most complaints about. Up
>to 10.1.5 Apple shipped a very old curses implementation and had it
>right in libSystem. Since 10.2 Apple ships a much more decent
>ncurses, but it lives in a separate shared library.
>
>And what bothers me is that the framework versioning would have
>allowed them to ship a compatibility version of libSystem, but
>apparently they didn't consider it worth it. If every upgrade from
>10.N to 10.(N+1) is going to break a lot of innocent software Apple
>is moving away from the brilliant backward compatibility they had in
>OS7-8-9 (99.9% of your software survived an upgrade). Add to that
>the fact that I don't think it's possible on 10.2 to create a binary
>that will run on 10.1 also (or is there a way to do this? Please
>enlighten me), and it seems we're up the same creek that Windows
>users are, that OS upgrades are a dangerous thing not to be
>undertaken lightly.
>--
>- Jack Jansen <Jack.Jansen@oratrix.com>
>http://www.cwi.nl/~jack -
>- If I can't dance I don't want to be part of your revolution --
>Emma Goldman -