[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 00:57:37 -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: 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