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

Bug 833347

Summary: app-accessibility/speech-dispatcher-0.11.1 fails to compile: module_main.h:137:8: error: unknown type name pthread_mutex_t
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: William Hubbs <williamh>
Status: RESOLVED FIXED    
Severity: normal CC: accessibility, sound
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/26250
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2022-02-14 17:11:05 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-accessibility/speech-dispatcher-0.11.1 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-02-14 17:11:07 UTC
Created attachment 765101 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-02-14 17:11:08 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


chmod: cannot access 'run-speechd': No such file or directory
module_main.h:137:8: error: unknown type name 'pthread_mutex_t'
Comment 3 Larry the Git Cow gentoo-dev 2022-07-17 20:31:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89dc6b8ba24f258f5426b3b07d8cdba1f75d37e7

commit 89dc6b8ba24f258f5426b3b07d8cdba1f75d37e7
Author:     Alfred Persson Forsberg <cat@catcream.org>
AuthorDate: 2022-07-06 23:20:31 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-17 20:29:38 +0000

    app-accessibility/speech-dispatcher: Fix build for musl
    
    pthread_mutex_t and stat are undefined, including pthread.h and
    removing the unused stat variable fixes these errors.
    
    Closes: https://bugs.gentoo.org/833347
    Signed-off-by: Alfred Persson Forsberg <cat@catcream.org>
    Closes: https://github.com/gentoo/gentoo/pull/26250
    Signed-off-by: Sam James <sam@gentoo.org>

 ...peech-dispatcher-0.11.1-include-pthread_h.patch | 22 ++++++++++++++
 ...atcher-0.11.1-remove-unused-variable-musl.patch | 35 ++++++++++++++++++++++
 .../speech-dispatcher-0.11.1.ebuild                |  5 ++++
 3 files changed, 62 insertions(+)