On 2009-06-02 at 16:16:13 [+0200], Rene Gollent <anevilyak@xxxxxxxxx> wrote: > On Tue, Jun 2, 2009 at 9:10 AM, Ankur Sethi <get.me.ankur@xxxxxxxxx> wrote: > > | pthread_t th=pthread_self(); pthread_attr_t attr;pthread_join(th, 0); > > | pthread_attr_init(&attr); > > | pthread_mutex_t mtx; > > | pthread_mutex_init(&mtx,0); > > | pthread_mutex_lock(&mtx); > > | pthread_mutex_unlock(&mtx); > > | pthread_mutex_destroy(&mtx) > > > Looks like it's failing because it expects C99, which allows variable > declarations in places other than the beginning of the function iirc. > You'll notice the test here makes several function calls before > declaring the mutex, which older C doesn't allow. Was this done on > gcc2 or 4? Given that Ankur mentioned earlier that he built a gcc 2 Haiku, I'd suspect gcc 2, which would explain the problem. CU, Ingo