[Python-bugs-list] [ python-Bugs-704919 ] Problems building python with tkinter on HPUX...

SourceForge.net noreply@sourceforge.net
Fri, 21 Mar 2003 10:06:25 -0800


Bugs item #704919, was opened at 2003-03-17 12:09
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=704919&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jayce Piel (jayce)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problems building python with tkinter on HPUX...

Initial Comment:
I have some problems when trying to install python on a
HPUX 10.20 system.
All seems to go well during the compiling and during
the installation process, but when I try to use tkinter
in my new python with an "import _tkinter", i have the
following lines :
Python 2.2.2 (#2, Mar 17 2003, 04:36:02)
[GCC 2.95.2 19991024 (release)] on hp-ux10
Type "help", "copyright", "credits" or "license" for
more information.
>>> import _tkinter
/usr/lib/dld.sl: Unresolved symbol: acos (code)  from
/usr/local/lib/python2.2/lib-dynload/_tkinter.sl
/usr/lib/dld.sl: Unresolved symbol: asin (code)  from
/usr/local/lib/python2.2/lib-dynload/_tkinter.sl
/usr/lib/dld.sl: Unresolved symbol: atan (code)  from
/usr/local/lib/python2.2/lib-dynload/_tkinter.sl
/usr/lib/dld.sl: Unresolved symbol: cosh (code)  from
/usr/local/lib/python2.2/lib-dynload/_tkinter.sl
/usr/lib/dld.sl: Unresolved symbol: log10 (code)  from
/usr/local/lib/python2.2/lib-dynload/_tkinter.sl
/usr/lib/dld.sl: Unresolved symbol: sinh (code)  from
/usr/local/lib/python2.2/lib-dynload/_tkinter.sl
/usr/lib/dld.sl: Unresolved symbol: tan (code)  from
/usr/local/lib/python2.2/lib-dynload/_tkinter.sl
/usr/lib/dld.sl: Unresolved symbol: tanh (code)  from
/usr/local/lib/python2.2/lib-dynload/_tkinter.sl
/usr/lib/dld.sl: Unresolved module for symbol:
tclTraceExec (data)  from
/usr/local/lib/python2.2/lib-dynload/_tkinter.sl
/usr/lib/dld.sl: Unresolved module for symbol:
tclProcBodyType (data)  from
/usr/local/lib/python2.2/lib-dynload/_tkinter.sl
/usr/lib/dld.sl: Unresolved module for symbol:
tclFreeObjList (data)  from
/usr/local/lib/python2.2/lib-dynload/_tkinter.sl
/usr/lib/dld.sl: Unresolved module for symbol:
tclExecutableName (data)  from
/usr/local/lib/python2.2/lib-dynload/_tkinter.sl
/usr/lib/dld.sl: Unresolved module for symbol:
Tcl_FindExecutable (code)  from
/usr/local/lib/python2.2/lib-dynload/_tkinter.sl
zsh: abort (core dumped)  python

I have a python1.5/tkinter that works with tcl/tk 8.0p2...
When trying to compile with this version of tcl/tk, i
had errors with the tkinter module compilation.
Then, I tried to compile a tcl/tk 8.4.2, or even use a
binary-package of a tcl/tk 8.2.1, but in both cases I
have the above errors when running...




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

>Comment By: Martin v. Löwis (loewis)
Date: 2003-03-21 19:06

Message:
Logged In: YES 
user_id=21627

This modification cannot go into the CVS: Hard-coding the
path for egcs is not acceptable.

Are you interested in developing a proper patch, or are you
satisfied with the solution that works for you?

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

Comment By: Jayce Piel (jayce)
Date: 2003-03-21 15:51

Message:
Logged In: YES 
user_id=5496

OK, all works now...
Here are what I need to modify :
In the Makefile of tcl 8.4.2 and in the Makefile of tk 8.4.2 :
SHLIB_LD                = gcc -shared -fPIC
LD_SEARCH_FLAGS =

In the Makefile of Python :
LDSHARED=       ld -b -L/usr/lib -lm
-L/usr/local/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.91
.60 -lgcc
BLDSHARED=      ld -b -L/usr/lib -lm
-L/usr/local/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.91
.60 -lgcc


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

Comment By: Jayce Piel (jayce)
Date: 2003-03-21 14:37

Message:
Logged In: YES 
user_id=5496

After different tries, I found that adding "-L/usr/lib -lm"
as parameters of "ld -b" solved THIS problem...

But I still have a problem... Now, when laucnhing
Tkinter._test(), I have the error message  :
"/usr/lib/dld.sl: Unresolved symbol: __udivdi3 (code)  from
/usr/local/lib/libtcl8.4.sl"
And a core dumped...
I have compiled tcl/tk without threads, and python without
threads too...


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

Comment By: Neal Norwitz (nnorwitz)
Date: 2003-03-19 01:48

Message:
Logged In: YES 
user_id=33168

The problem appears to be that -lm (ie the math library)
needs to be linked, but is not.  I do not have access to a
10.20 machine.  It also looks like the tcl library may not
be found.  Perhaps there's a library search problem?  Jayce,
if you could produce a patch that works for you, I can check
in a fix.

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

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