Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 693152

Summary: sys-apps/findutils-4.7.0[static]: undefined reference to pthread_*
Product: Gentoo Linux Reporter: Aidan Harris <me>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Fix static compilation by appending -pthread to CFLAGS
Fix static compilation by appending -pthread to CFLAGS

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(-)