[Python-bugs-list] [ python-Bugs-507442 ] Thread-Support don't work with HP-UX 11

noreply@sourceforge.net noreply@sourceforge.net
Thu, 24 Jan 2002 01:38:41 -0800


Bugs item #507442, was opened at 2002-01-23 02:13
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=507442&group_id=5470

Category: Installation
Group: Python 2.1.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Stefan Walder (stefanwalder)
Assigned to: Nobody/Anonymous (nobody)
Summary: Thread-Support don't work with HP-UX 11

Initial Comment:
Hi,

I've compiled Python 2.1.2 with the HP Ansi C-Compiler.
I've used ./configure --with-threads 
and added -D_REENTRANT to the Makefile. But the 
test_thread.py don't work!

[ek14] % ../../python test_thread.py
creating task 1
Traceback (most recent call last):
  File "test_thread.py", line 46, in ?
    newtask()
  File "test_thread.py", line 41, in newtask
    thread.start_new_thread(task, (next_ident,))
thread.error: can't start new thread

[ek14] %

Any idea?
More informations?

Thanks
Stefan Walder


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

>Comment By: Tim Peters (tim_one)
Date: 2002-01-24 01:38

Message:
Logged In: YES 
user_id=31435

I'm afraid threading on HP-UX never really works, no matter 
how many times users contribute config patches.  They get 
it to work on their box, we check it in, and the next 
release it starts all over again.  This has been going on 
for years and years.  If you think it suddenly started 
working in 2.2, wait a few months <wink>.

Note that the advice that you *may* have to use -
D_REENTRANT on HP-UX is recorded in Python's main README 
file; apparently this is necessary on some unknown proper 
subset of HP-UX boxes.

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

Comment By: Anthony Baxter (anthonybaxter)
Date: 2002-01-24 00:57

Message:
Logged In: YES 
user_id=29957

Hm. I'm not sure, either - but this could probably get 
an entry on the bugs page on creosote. Anyone? Is there a
"known issues" page somewhere?



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

Comment By: Stefan Walder (stefanwalder)
Date: 2002-01-23 23:59

Message:
Logged In: YES 
user_id=436029

Hi,

I've found a solution.
I've added a -D_REENTRANT to the CFLAGS and an 
-lpthread to the LIBS:

OPT=            -O -D_REENTRANT
DEFS=           -DHAVE_CONFIG_H
CFLAGS=         $(OPT) -I. -I$(srcdir)/Include $(DEFS)

LIBS=           -lnsl -ldld
LIBM=           -lm -lpthread
LIBC=
SYSLIBS=        $(LIBM) $(LIBC)

Now it works for me. But I don't have any idea to put this 
changes into the configure script.

mfG
Stefan Walder

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

Comment By: Anthony Baxter (anthonybaxter)
Date: 2002-01-23 07:22

Message:
Logged In: YES 
user_id=29957

Unfortunately, I don't have access to a HP/UX system, and I
couldn't find anyone during the process of doing 2.1.2 that
was willing to spend the time figuring out how and why 2.2's
threading finally started working on HP/UX. 

Without someone to do that, I'd say the chances of this ever
being addressed are close to zero. Does it work on 2.2?


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

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