[ python-Bugs-1489246 ] 2.4.3 fails to find Tcl/Tk on Solaris 10 x86_64

SourceForge.net noreply at sourceforge.net
Fri May 19 13:48:04 CEST 2006


Bugs item #1489246, was opened at 2006-05-16 03:52
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1489246&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Tim Mooney (enchanter)
Assigned to: Nobody/Anonymous (nobody)
Summary: 2.4.3 fails to find Tcl/Tk on Solaris 10 x86_64 

Initial Comment:
First, I'm a complete python newbie, but I have lots of
experience with other languages and I'm very
experienced at building software on UNIX platforms.

I've built 64 bit (LP64) versions of Tcl 8.4.13 and Tk
8.4.13 with the Sun Studio 11 compiler.  They're
installed under /local, with the libraries in
/local/lib/64 , since the Solaris convention is to use
lib/64 for ELF64 libraries.

I can configure and compile Python 2.4.3 as an LP64
executable, but setup.py fails to find Tcl/Tk.  I'm
suspicious (but not certain) that the problem is that
the calls to self.compiler.find_library_file in
setup.py aren't finding any of the locally installed
libraries because find_library_file isn't searching the
"64" subdirectory under lib.

I've been through the README, and looked at the URL for
the FAQ mentioned in the README (though I don't see a
"section 3" of the FAQ).  Most of the suggestions in
the README in the Solaris section are geared toward
what to do when python can't find your shared libraries
*at run time*.  That's not the problem here.  I have my
loader set up (via crle with the -64 option) to search
all of the necessary locally-installed directories that
contain ELF64 libraries.  The problem is that Python's
setup can't find the libraries in the first place.

Suggestions?  If I already knew Python, I could
probably figure out how to subclass "compiler" to
always search the "/64" version of a library directory
when I'm on Solaris and the compiler flags contain a
certain set of characters (better yet would be to
actually compile something to an object file and test
whether it's ELF64).  Unfortunately, I'm not at that
level yet.

This instance is specific to Solaris, but the general
problem applies to other multi-ABI platforms too, like
IRIX, HP-UX, etc.

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2006-05-19 13:48

Message:
Logged In: YES 
user_id=21627

The easiest work-around should be to edit Modules/Setup,
enabling the entire _tkinter block, with all libraries and
paths needed.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1489246&group_id=5470


More information about the Python-bugs-list mailing list