Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 693152 - sys-apps/findutils-4.7.0[static]: undefined reference to pthread_*
Summary: sys-apps/findutils-4.7.0[static]: undefined reference to pthread_*
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-08-30 22:25 UTC by Aidan Harris
Modified: 2019-08-31 21:03 UTC (History)
0 users

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


Attachments
Fix static compilation by appending -pthread to CFLAGS (0001-sys-apps-findutils-Fix-static-compilation.patch,838 bytes, patch)
2019-08-30 22:25 UTC, Aidan Harris
Details | Diff
Fix static compilation by appending -pthread to CFLAGS (0001-sys-apps-findutils-Fix-static-compilation.patch,843 bytes, patch)
2019-08-31 14:24 UTC, Aidan Harris
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aidan Harris 2019-08-30 22:25:21 UTC
Created attachment 588556 [details, diff]
Fix static compilation by appending -pthread to CFLAGS

There are multiple undefined references to pthread_* when building statically without -pthread in the CFLAGS.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-08-31 06:53:02 UTC
Fix looks okay, but please put it into an "if ... ; then ... fi" block:

    if use static ; then
        ...
    fi

Thanks.
Comment 2 Aidan Harris 2019-08-31 14:24:50 UTC
Created attachment 588578 [details, diff]
Fix static compilation by appending -pthread to CFLAGS
Comment 3 Larry the Git Cow gentoo-dev 2019-08-31 21:03:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bf6321916f1f2eb69ec11ef0e19185b3f23a13c

commit 0bf6321916f1f2eb69ec11ef0e19185b3f23a13c
Author:     Aidan Harris <me@aidanharr.is>
AuthorDate: 2019-08-31 14:22:51 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-08-31 21:02:56 +0000

    sys-apps/findutils: Fix static compilation
    
    Signed-off-by: Aidan Harris <me@aidanharr.is>
    Closes: https://bugs.gentoo.org/693152
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 sys-apps/findutils/findutils-4.7.0.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)