473,397 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Problem building Python on HP-UX

I'm trying to build Python 2.4.1 on HP-UX 11.00 with full tcl/tk IDLE
support. So far, I haven't had any luck. I always wind up getting
errors of the form:

ld: DP relative code in file
/ptg/devtools/hppa1.1/pre/lib/libtk8.4.a(tkWindow.o) - shared library
must be position independent. Use +z or +Z to recompile.

I have tried building tcl/tk without any configure options as well as
with --disable-shared and --disable-load but this doesn't help.

Anyone seen anything like this or know how to get around it?

Jeff

Sep 2 '05 #1
2 1421
[Dr. Who wrote]
I'm trying to build Python 2.4.1 on HP-UX 11.00 with full tcl/tk IDLE
support. So far, I haven't had any luck. I always wind up getting
errors of the form:

ld: DP relative code in file
/ptg/devtools/hppa1.1/pre/lib/libtk8.4.a(tkWindow.o) - shared library
must be position independent. Use +z or +Z to recompile.

I have tried building tcl/tk without any configure options as well as
with --disable-shared and --disable-load but this doesn't help.

Anyone seen anything like this or know how to get around it?


For Python on HP-UX I build Tcl/Tk with --enable-shared. I don't *think*
I had to do much else special -- other than tweaking Python's setup.py
detect_tkinter() code to find where I had built and "installed" my
Tcl/Tk libs.

Cheers,
Trent

p.s. Note that we now have free ActivePython binary installers for
HP-UX at ActiveState.
http://www.activestate.com/Products/ActivePython/

--
Trent Mick
Tr****@ActiveState.com
Sep 2 '05 #2
I don't know much about HP-UX, and I'm sure someone will shoot me down
for saying this, but all *nix is about the same to me.

I'd just try a ./configure --prefix=/opt/tcl_tk
on both the TCL and TK installs, and then just drop the ./configure
params in there to use /opt/tcl_tk/ as the prefix to them

Sure, that might give you a double set of tcl & tk, but if your fs is a
mess it might make linking to them easier in the future *Grin*

Hope this helps, if you have any questions hit me back, all I have is a
Linux box on hand, but I'm more than happy to simulate your setup as
much as possible...

Sep 2 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Richard Hanson | last post by:
Over the last few days, I reinstalled Win2kSP2 to a spare harddrive I had just swapped into my Fujitsu LifeBook P1120 (long story <wink>). Subsequently, I DL'ed the newest Python alpha (2.4a2), and...
11
by: Matt Gerrans | last post by:
Looks like the installer for the Win32 extensions has changed from Wise to distutils, so now my automated silent installations don't work anymore. Anyone know if the distutils binary installer can...
4
by: JesusFreak | last post by:
From: us_traveller@yahoo.com (JesusFreak) Newsgroups: microsoft.public.scripting.jscript Subject: toolbar script problem NNTP-Posting-Host: 192.92.126.136 Recently, I downloaded the following...
52
by: Steve Holden | last post by:
I've been thinking (and blogging) about python evangelism since PyCon, as a result of which I created a squidoo lens: http://www.squidoo.com/pythonlogy Imagine my surprise at discovering that...
6
by: Pete | last post by:
I am using xpsp2, and I have two versions of python (2.2 and 2.2.3 - both are listed as 29.3 mb, and listed as rarely used, which means never to me) listed in add/remove programs in the control...
8
by: js | last post by:
HI guys, How do you write Perl's print a ... z, A ... Z, "\n"' in Python In Python?
11
by: ZMY | last post by:
Dear all, I am a real newbie for both python and QNX, but I am still trying to compile Numeric-24.2 under QNX4.25 with python 2.2. I got following error message: $ sudo python setup.py...
6
by: bhochstetler | last post by:
I am on a hp 11.11 machine doing a 64 bit python 2.5 build. When I get my python executable created and run it, I get the error: "import site failed" OverflowError: signed integer is greater...
4
by: vedrandekovic | last post by:
Hi, I have already install Microsoft visual studio .NET 2003 and MinGw, when I try to build a extension: python my_extension_setup.py build ( or install ) , I get an error: LINK : fatal...
3
by: kotmfu | last post by:
ok here is my problem. i have a multi class project, there are 6 or so classes that have a 7th class referenced to, but in that 7th class i have it referenced to 1 of the first 6. this is creating...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.