Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405619 - libpthread-stub-0.3 compile error when compiling against sys-libs/pthreads-win32-2.8.0
Summary: libpthread-stub-0.3 compile error when compiling against sys-libs/pthreads-wi...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-24 16:23 UTC by Nathan Phillip Brink (binki) (RETIRED)
Modified: 2017-03-16 02:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
libpthread-stubs-0.3-build.log (libpthread-stubs-0.3-build.log,11.19 KB, text/plain)
2012-02-24 16:23 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details
emerge--info.txt (emerge--info.txt,12.20 KB, text/plain)
2012-02-24 16:23 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details
config.log (config.log,63.62 KB, text/plain)
2012-03-04 05:53 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details
libpthread-stubs-0.3-pthreads-win32.patch (libpthread-stubs-0.3-pthreads-win32.patch,543 bytes, patch)
2012-03-04 06:23 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2012-02-24 16:23:01 UTC
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.
Comment 1 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2012-02-24 16:23:52 UTC
Created attachment 303075 [details]
emerge--info.txt
Comment 2 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2012-03-04 05:50:46 UTC
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.
Comment 3 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2012-03-04 05:53:07 UTC
Created attachment 304179 [details]
config.log
Comment 4 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2012-03-04 06:23:00 UTC
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).
Comment 5 Matt Turner gentoo-dev 2017-03-16 02:02:49 UTC
Is this resolved with libpthread-stubs-0.4?