The `use elibc_musl && export sc_cv_getprotobynumber_r=2' line now causes a variant of getprotobynumber_r to be enabled, breaking the build. Reproducible: Always Steps to Reproduce: Attempt to build net-misc/socat-1.7.4.4 Actual Results: fdname.c:294:19: error: call to undeclared function 'getprotobynumber_r'; ISO C99 and later do not support implicit function declarations Expected Results: ./configure correctly recognizes the absence of getprotobynumber_r in musl. If I recall correctly, a better fix for the original ./configure issue in <=socat-1.7.4.3 was to insert -Werror=implicit-function-declaration to CFLAGS. This way, the conftest.c's for every getprotobynumber would fail during compilation.
Created attachment 827095 [details] build.log
Created attachment 827097 [details] emerge --info output
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f335bad455c9308a8a4df5997f9e772b6288f056 commit f335bad455c9308a8a4df5997f9e772b6288f056 Author: Petr Vaněk <arkamar@atlas.cz> AuthorDate: 2022-11-21 08:03:46 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-11-23 01:42:42 +0000 net-misc/socat: fix 1.7.4.4 build on musl The issue with undefined reference to getprotobynumber_r for musl was fixed in 1.7.4.4 in commit [1]. It is no longer wanted to treat musl configuration specially. [1] https://repo.or.cz/socat.git/commitdiff/75cb44bc90577c3487458564ca803163681319f1 Bug: https://bugs.gentoo.org/831016 Closes: https://bugs.gentoo.org/879601 Signed-off-by: Petr Vaněk <arkamar@atlas.cz> Closes: https://github.com/gentoo/gentoo/pull/28358 Signed-off-by: Sam James <sam@gentoo.org> net-misc/socat/socat-1.7.4.4.ebuild | 6 ------ 1 file changed, 6 deletions(-)