/usr/lib/gcc/x86_64-gentoo-linux-musl/9.2.0/../../../../x86_64-gentoo-linux-musl/bin/ld: /usr/lib/gcc/x86_64-gentoo-linux-musl/9.2.0/../../../libc.so: warning: This function cannot be safely ported, use getline(3) instead, as it is supported by GNU and POSIX.1-2008. /usr/lib/gcc/x86_64-gentoo-linux-musl/9.2.0/../../../../x86_64-gentoo-linux-musl/bin/ld: socks.o: in function socks_connect: socks.c:(.text+0x48c): undefined reference to b64_ntop collect2: error: ld returned 1 exit status make: *** [Makefile:14: nc] Error 1 * ERROR: net-analyzer/openbsd-netcat-1.190::gentoo failed (compile phase): ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0_musl-20200311-204810 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-gentoo-linux-musl-9.2.0 * [2] x86_64-gentoo-linux-musl-9.3.0 clang version 10.0.0 Target: x86_64-gentoo-linux-musl Thread model: posix InstalledDir: /usr/lib/llvm/10/bin /usr/lib/llvm/10 10.0.0 Available Python interpreters, in order of preference: [1] python3.8 [2] python3.7 [3] python3.6 [4] python2.7 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) [2] ruby25 (with Rubygems) * Available Rust versions: [1] rust-1.41.1 * The following VMs are available for generation-2: repository: ==> /var/db/repos/gentoo/metadata/timestamp.chk <== Sat, 14 Mar 2020 16:44:09 +0000 emerge -qpvO net-analyzer/openbsd-netcat [ebuild N ] net-analyzer/openbsd-netcat-1.190
Created attachment 619084 [details] emerge-info.txt
Created attachment 619086 [details] emerge-history.txt
Created attachment 619088 [details] environment
Created attachment 619090 [details] etc.portage.tbz2
Created attachment 619092 [details] net-analyzer:openbsd-netcat-1.190:20200314-173739.log
Created attachment 619094 [details] temp.tbz2
The first attempt to tinderbox a musl image failed at all. I'll mass close therefore all filed bug reports of the last days related to this tinderbox image. Please feel free to re-open if you think that the bug is real in musl and not fixed by the musl overlay.
patch for libressl, I imagine there's a version of the openbsd libraries we can use? https://github.com/libressl-portable/portable/commit/a7f031ba55ac4a69263000357eb7f6d7fb88101a
Sorry, I have don't have a musl environment. Feel free to fix it or propose a patch for it.
musl overlay is carrying a patch for the base64 function needed for this at https://gitweb.gentoo.org/proj/musl.git/tree/net-analyzer/openbsd-netcat/files/openbsd-netcat-1.105-b64_ntop.patch . Afaict this works for .190 and .195 and as such I've filed a PR at https://github.com/gentoo/musl/pull/345 . Can we consider incorporating this patch into ::gentoo in future bumps, until such time as it gets accepted upstream?
commit c66ee6eae7e62e36caad12950a995cfff43fbb0b Author: Fabian Groffen <grobian@gentoo.org> Date: Thu Jun 17 20:43:48 2021 +0200 net-analyzer/openbsd-netcat-1.195-r1: fix build for musl and Darwin Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Fabian Groffen <grobian@gentoo.org>