Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 907442 - media-radio/tlf-1.4.1-r2 fails to compile (MUSL-SYSTEM): qrb.h:25:26: error: M_PI undeclared (first use in this function)
Summary: media-radio/tlf-1.4.1-r2 fails to compile (MUSL-SYSTEM): qrb.h:25:26: error: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Thomas Beierlein
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-30 20:21 UTC by Agostino Sarubbo
Modified: 2023-07-04 17:35 UTC (History)
0 users

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


Attachments
build.log (build.log,91.65 KB, text/plain)
2023-05-30 20:21 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-05-30 20:21:14 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-radio/tlf-1.4.1-r2 fails to compile (MUSL-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc but this bug MAY or MAY NOT BE related to musl.
Comment 1 Agostino Sarubbo gentoo-dev 2023-05-30 20:21:17 UTC
Created attachment 862928 [details]
build.log

build log and emerge --info
Comment 2 Thomas Beierlein gentoo-dev 2023-07-01 18:16:54 UTC
Could not reproduce the problem for a long time. 

Further inspection shows that on my computer the code is compiled with -D_GNU_SOURCE where in your case it is -D_POSIX_C_SOURCE=....

Using it here the code fails also on my side. Just have to find out where that different settings comes from.
Comment 3 Thomas Beierlein gentoo-dev 2023-07-02 15:40:45 UTC
Some checks later it shows that the -D_POSIX_C_SOURCE definitions gets inherited from ncurses. pgg-config as well as AX_CURSES provides these definitions together with the needed include path.
Comment 4 Larry the Git Cow gentoo-dev 2023-07-04 17:35:57 UTC
The bug has been closed via the following commit(s):

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

commit ae348f36a8e2b3f7e55ede95c86785fe24e6952f
Author:     Thomas Beierlein <tomjbe@gentoo.org>
AuthorDate: 2023-07-04 17:33:03 +0000
Commit:     Thomas Beierlein <tomjbe@gentoo.org>
CommitDate: 2023-07-04 17:35:30 +0000

    media-radio/tlf: provide fallback definitions for M_PI and M_PI_2
    
    C Standard does not guarantee the presence of both definitions in every
    circumstance.
    
    Closes: https://bugs.gentoo.org/907442
    Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>

 media-radio/tlf/files/tlf-1.4.1-pi.patch | 47 ++++++++++++++++++++++++++
 media-radio/tlf/tlf-1.4.1-r4.ebuild      | 58 ++++++++++++++++++++++++++++++++
 2 files changed, 105 insertions(+)