Summary: | net-analyzer/tcpreplay-4.4.1 fails to compile: ld: tcpreplay.c:(.text.startup+0x23c): undefined reference to fts_read | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Gentoo Netmon project <netmon> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 430702 | ||
Attachments: |
build.log
Fix musl build for net-analyzer/tcpreplay-4.4.1 |
Description
Agostino Sarubbo
2022-04-01 06:53:04 UTC
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(-) |