Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836577 - net-analyzer/tcpreplay-4.4.1 fails to compile: ld: tcpreplay.c:(.text.startup+0x23c): undefined reference to fts_read
Summary: net-analyzer/tcpreplay-4.4.1 fails to compile: ld: tcpreplay.c:(.text.startup...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2022-04-01 06:53 UTC by Agostino Sarubbo
Modified: 2022-06-27 23:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,106.65 KB, text/plain)
2022-04-01 06:53 UTC, Agostino Sarubbo
Details
Fix musl build for net-analyzer/tcpreplay-4.4.1 (tcpreplay-4.4.1.ebuild.patch,1.54 KB, patch)
2022-06-27 19:16 UTC, CFuga
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(-)