Summary: | 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) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Thomas Beierlein <tomjbe> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Agostino Sarubbo
2023-05-30 20:21:14 UTC
Created attachment 862928 [details]
build.log
build log and emerge --info
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. 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. 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(+) |