Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832236 - media-radio/xlog-2.0.24 fails to compile: gui_tracedialog.c:70:16: error: assignment of read-only variable stderr
Summary: media-radio/xlog-2.0.24 fails to compile: gui_tracedialog.c:70:16: error: ass...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Beierlein
Depends on:
Reported: 2022-01-28 22:27 UTC by Agostino Sarubbo
Modified: 2022-03-20 14:49 UTC (History)
0 users

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

build.log (build.log,101.21 KB, text/plain)
2022-01-28 22:27 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-01-28 22:27:19 UTC

Issue: media-radio/xlog-2.0.24 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)

This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-01-28 22:27:21 UTC
Created attachment 763852 [details]

build log and emerge --info
Comment 2 Thomas Beierlein gentoo-dev 2022-02-11 18:35:58 UTC
Upstream tries to switch stderr back and forth for diagnostic reasons. That does not go well as Musl team had decided to interpret the standard strict and made stdin, stdout and stderr constant (see discussion on

A possible fix is in the work. Mail to upstream is sent. Lets see how it goes.
Comment 3 Thomas Beierlein gentoo-dev 2022-03-20 14:39:26 UTC
No feedback from upstream. 
Will merge in fix shortly.
Comment 4 Larry the Git Cow gentoo-dev 2022-03-20 14:43:23 UTC
The bug has been closed via the following commit(s):

commit bd4276c164ab0e8cd3bd81d75f9275de11338a04
Author:     Thomas Beierlein <>
AuthorDate: 2022-03-20 14:42:22 +0000
Commit:     Thomas Beierlein <>
CommitDate: 2022-03-20 14:42:22 +0000

    media-radio/xlog: Avoid writing to read only stderr varaible in musl C
    Signed-off-by: Thomas Beierlein <>

 media-radio/xlog/files/xlog-2.0.24-musl.patch | 51 +++++++++++++++++++++++++++
 media-radio/xlog/xlog-2.0.24.ebuild           |  3 +-
 2 files changed, 53 insertions(+), 1 deletion(-)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-20 14:49:46 UTC
(In reply to Thomas Beierlein from comment #3)
> No feedback from upstream. 
> Will merge in fix shortly.

Nice work and thanks for digging into this!