Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 836577

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 packagesAssignee: 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 gentoo-dev 2022-04-01 06:53:04 UTC
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
Comment 1 Agostino Sarubbo gentoo-dev 2022-04-01 06:53:06 UTC
Created attachment 768357 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-04-01 06:53:07 UTC
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
Comment 3 CFuga 2022-06-27 19:16:38 UTC
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
Comment 4 Larry the Git Cow gentoo-dev 2022-06-27 23:21:12 UTC
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(-)