On Sun, Sep 30, 2012 at 07:12:42PM +0530, Mayuresh wrote: > The said program does not link with libpthread. (ldd doesn't show that.) > It tries to open libpthread dynamically with dlopen. This is simply not possible on a lot of platforms, including NetBSD. Link the program with -pthread. Martin