https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: net-analyzer/tcpreplay-4.4.1 fails to compile. Discovered on: amd64 (internal ref: tinderbox_musl) NOTE: This machine uses MUSL libc
Created attachment 768357 [details] build.log build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: /usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.1/../../../../x86_64-gentoo-linux-musl/bin/ld: tcpreplay.c:(.text.startup+0x23c): undefined reference to `fts_read' /usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.1/../../../../x86_64-gentoo-linux-musl/bin/ld: tcpreplay.c:(.text.startup+0x265): undefined reference to `fts_read' /usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.1/../../../../x86_64-gentoo-linux-musl/bin/ld: tcpreplay.c:(.text.startup+0x274): undefined reference to `fts_close' tcpreplay.c:(.text.startup+0x223): undefined reference to `fts_open' collect2: error: ld returned 1 exit status
Created attachment 788093 [details, diff] Fix musl build for net-analyzer/tcpreplay-4.4.1 This patch makes the following changes: * Adds sys-libs/fts-standalone as dependency * Appends the flag "-lfts" for compilation
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=840c8861d9d4aa90721853527d0325628d5b3c46 commit 840c8861d9d4aa90721853527d0325628d5b3c46 Author: Cristian Othón Martínez Vera <cfuga@cfuga.mx> AuthorDate: 2022-06-27 18:59:03 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-06-27 23:20:48 +0000 net-analyzer/tcpreplay: fix musl build * Add sys-libs/fts-standalone as dependency * Append the flag "-lfts" for compilation Signed-off-by: Cristian Othón Martínez Vera <cfuga@cfuga.mx> Bug: https://bugs.gentoo.org/836577 Signed-off-by: Sam James <sam@gentoo.org> net-analyzer/tcpreplay/tcpreplay-4.4.1.ebuild | 4 +++- net-analyzer/tcpreplay/tcpreplay-9999.ebuild | 29 ++++++++++++++++++--------- 2 files changed, 23 insertions(+), 10 deletions(-)