OpenRC uses many extensions, notably BSD extensions, most of them supported by uclibc-ng. However, __USE_BSD and __USE_MISC are not defined and cannot be defined globally as end up with other build errors. Reproducible: Always Steps to Reproduce: 1. emerge -1 openrc 2. 3. Actual Results: emake failed (compile phase) Expected Results: OpenRC updated on system
Created attachment 497382 [details, diff] openrc-0.28-uclibc.patch The patches enabled __USE_BSD and __USE_MISC on a header-by-header basis
I believe the macros you are listing are internal maccros for uclibc-ng and should not be defined by other projects. I have added our uclibc-ng maintainer to this bug.
Which version of uclibc-ng are you using? I think you need at least 1.25.
I just verified that you need uclibc-ng v1.0.25. This is the relevant commit. https://cgit.openadk.org/cgi/cgit/uclibc-ng.git/commit?id=526747a2bf Thanks, William
That's correct you mark my report as invalid because I use an old version of µclibc-ng. However, can you please add "elibc_uclibc ? ( >=syslibs/uclibc-ng-1.0.25 )" to the DEPEND variable in the ebuild, because there are still versions older than 1.0.25 in the tree?