Pthreads

Brian Kennison bkenniso at worldnet.att.net
Mon Nov 29 18:30:31 EST 1999


I'm having trouble compiling Python 1.5.2. with the FSU pthread
library. I working on MachTen and get the following error:

gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H   -c thread.c -o thread.o
In file included from thread.c:150:
thread_pthread.h:113: parse error before `pthread_cond_t'
thread_pthread.h:113: warning: no semicolon at end of struct or union
thread_pthread.h:114: warning: data definition has no type or storage class
thread_pthread.h:115: warning: data definition has no type or storage class
thread_pthread.h: In function `PyThread_start_new_thread':       


thread_pthread.h looks like this:

   110 typedef struct {
    111         char  locked; /* 0=unlocked, 1=locked */
    112         /* a <cond, mutex> pair to handle an acquire of a locked lock */
    113         pthread_cond_t   lock_released;
    114         pthread_mutex_t  mut;
    115 }; pthread_lock;

There are more errors after this but I figure this is where it starts. 

Any help would be appreciated.

Brian Kennison





More information about the Python-list mailing list