Pthread works


I found a solution for the pthread stuff sooner as expected :
After installing the gnu-pth ( ) I could compile thread.c with the following line :

gcc thread.c `pthread-config --cflags --ldflags --libs`

– thread.c –

#include <pthread.h>

int main() {
pthread_attr_t type;
return 0;

(Taken from configure)

But configure still outputs :
checking for pthreads… no

from config.log :
configure:5901: gcc -o conftest -g -O2 -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPO
RT -DESD_SUPPORT -I/usr/pkg/include -I/usr/X11R6/include -DENABLE_X11 -Iinclude
onftest.c -L/usr/pkg/lib -lpthread -lsem 1>&5
/usr/bin/ld: cannot open -lsem: No such file or directory

If you change line 5833 of configure to
pthread_lib="-L/usr/pkg/lib -lpthread"
also reports that pthreads work :
checking for pthreads… yes

You should add to the FAQ how it is possible to defend NetBSD’s lack of pthreads.

best regards, robert