Hi
I found a solution for the pthread stuff sooner as expected :
After installing the gnu-pth ( http://www.gnu.org/software/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;
pthread_attr_init(&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
-Isrc/video -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_DGAMOUSE -DDEFAULT_DGAMOUS
E -DXFREE86_XV -DHAVE_XINERAMA -DHAVE_OPENGL -I/usr/pkg/include -D_REENTRANT c
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