Summary: | app-admin/gtkdiskfree-2.0.4_p20200224 fails to compile: main.c:45:15: error: LC_NUMERIC undeclared (first use in this function) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Samuel Bauer <samuel.bauer> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | proxy-maint |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/31671 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Agostino Sarubbo
2021-12-30 07:02:04 UTC
Created attachment 760786 [details]
build.log
build log and emerge --info
This may be related to musl, but I don't know how. LC_NUMERIC seems to be declared in musl headers, for some reason with musl locale.h may not be inherited from any parent header. I think I should just include locale.h by default in main.c for a workaround. Fix I guess would be to use glib counterpart for atof, but this is only from what I remember, anyway, I have to look for a proper way to convert string <-> float Could you test some the patch to check it works with musl when I'll submit it here ? P.S.: I will have to drop flags from the ebuild nls gtk2 (cf #769128) *** Bug 894204 has been marked as a duplicate of this bug. *** Oups I think I erased my local copy of git repository with patch. Whatever. I think this is not related to modern C. |