[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64

Wong Wah Meng report at bugs.python.org
Thu Sep 29 11:27:49 CEST 2011


Wong Wah Meng <r32813 at freescale.com> added the comment:

Traceback?

$ python
Python 2.7.1 (r271:86832, Sep 28 2011, 17:31:02) [C] on hp-ux11
Type "help", "copyright", "credits" or "license" for more information.
>>> import thread
>>> def testing():
...    print "Hello World"
... 
>>> thread.start_new_thread(testing, ())  
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
thread.error: can't start new thread
>>>

mach/cthreads.h is only relevant for Hurd, as far as I can see. 

I am not sure what Hurd is. So I should not be looking at this one I guess. 

> configure:8572: cc +DD64 -I/home/r32813/local/include -o conftest -g
> -L/home/r32813/local/lib -L/home/r32813/Build/2.7.1/Python-2.7.1
> conftest.c -l nsl -lrt -ldld -ldl  -lpthread >&5

Result of this test?

configure:8556: checking for pthread_create in -lpthread
configure:8572: cc +DD64 -I/home/r32813/local/include -o conftest -g  -L/home/r32813/local/lib -L/home/r32813/Build/2.7.1/Python-2.7.1 conftest.
c -lnsl -lrt -ldld -ldl  -lpthread >&5
"conftest.c", line 97: warning #2223-D: function "exit" declared implicitly
  void * start_routine (void *arg) { exit (0); }
                                     ^

"conftest.c", line 102: error #2020: identifier "NULL" is undefined
  pthread_create (NULL, NULL, start_routine, NULL)
                  ^

1 error detected in the compilation of "conftest.c".
configure:8572: $? = 2
configure: failed program was:
| /* confdefs.h */
| #define _GNU_SOURCE 1
| #define _NETBSD_SOURCE 1
| #define __BSD_VISIBLE 1
| #define _BSD_TYPES 1
----------
nosy: +skrah

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13057>
_______________________________________

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13057>
_______________________________________


More information about the Python-bugs-list mailing list