Created attachment 303073 [details] libpthread-stubs-0.3-build.log libpthread-stub-0.3 has compilation errors when libpthread-stub-0.1 or some older version is already installed and it discovers the preinstalled pthread.h.
Created attachment 303075 [details] emerge--info.txt
Sorry, my initial bug report was written where I assumed that libpthread-stub _was_ pthread-win32. Instead, the problem is that libpthread-stub fails to compile against pthread-win32's implementation of pthread. The reason that libpthread-stub is trying to implement pthread_equal() is that its configure script is not properly detecting how to get pthread support out of GCC. Thus, when the configure script tries to detect if pthread_equal() should be defined, it encounters a linking error even though pthread-win32 defines and exports pthread_equal(). I'll attach config.log since it contains this information.
Created attachment 304179 [details] config.log
Created attachment 304181 [details, diff] libpthread-stubs-0.3-pthreads-win32.patch This patch uses the AX_PTHREAD macro (requires DEPEND=sys-devel/autoconf-archive) which is the standard method of determining how to compile a program with pthreads support. This macro knows how to find pthreads-win32's libpthread implementation (which is in -lpthread instead of -pthread).
Is this resolved with libpthread-stubs-0.4?