Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 853763 - net-analyzer/nfdump-1.6.24 - expire.c:(.text+<snip>): undefined reference to fts_open
Summary: net-analyzer/nfdump-1.6.24 - expire.c:(.text+<snip>): undefined reference to ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
: 829709 (view as bug list)
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2022-06-22 16:04 UTC by Toralf Förster
Modified: 2022-06-23 04:47 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.39 KB, text/plain)
2022-06-22 16:04 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,113.33 KB, text/plain)
2022-06-22 16:04 UTC, Toralf Förster
Details
environment (environment,72.57 KB, text/plain)
2022-06-22 16:04 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,23.55 KB, application/x-bzip)
2022-06-22 16:04 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,13.67 KB, application/x-bzip)
2022-06-22 16:04 UTC, Toralf Förster
Details
net-analyzer:nfdump-1.6.24:20220622-155413.log (net-analyzer:nfdump-1.6.24:20220622-155413.log,47.37 KB, text/plain)
2022-06-22 16:04 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,25.62 KB, application/x-bzip)
2022-06-22 16:04 UTC, Toralf Förster
Details
musl support for net-analyzer/nfdump/nfdump-1.6.23 (nfdump-1.6.23.patch,744 bytes, patch)
2022-06-22 19:44 UTC, CFuga
Details | Diff
musl support for net-analyzer/nfdump/nfdump-1.6.23-r1 (nfdump-1.6.23-r1.patch,730 bytes, patch)
2022-06-22 19:45 UTC, CFuga
Details | Diff
musl support for net-analyzer/nfdump/nfdump-1.6.24 (nfdump-1.6.24.patch,724 bytes, patch)
2022-06-22 19:45 UTC, CFuga
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-06-22 16:04:14 UTC
too long lines were shrinked:

libtool: link: x86_64-gentoo-linux-musl-gcc -ggdb -pipe -march=native -fno-diagnostics-color -O2 -std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -Wl,-O1 -Wl,--defsym=__gentoo_check_ldflags__=0 -o .libs/nfreplay nfreplay.o nfpro
libtool: link: x86_64-gentoo-linux-musl-gcc -ggdb -pipe -march=native -fno-diagnostics-color -O2 -std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -Wl,-O1 -Wl,--defsym=__gentoo_check_ldflags__=0 -o .libs/nfexpire nfexpire.o bookk
libtool: link: x86_64-gentoo-linux-musl-gcc -ggdb -pipe -march=native -fno-diagnostics-color -O2 -std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -Wl,-O1 -Wl,--defsym=__gentoo_check_ldflags__=0 -o .libs/nfdump nfdump.o nfstat.o 
/usr/lib/gcc/x86_64-gentoo-linux-musl/12.1.1/../../../../x86_64-gentoo-linux-musl/bin/ld: nfcapd-expire.o: in function `RescanDir':
expire.c:(.text+0x562): undefined reference to `fts_open'
/usr/lib/gcc/x86_64-gentoo-linux-musl/12.1.1/../../../../x86_64-gentoo-linux-musl/bin/ld: expire.c:(.text+0x584): undefined reference to `fts_read'
/usr/lib/gcc/x86_64-gentoo-linux-musl/12.1.1/../../../../x86_64-gentoo-linux-musl/bin/ld: expire.c:(.text+0x5ce): undefined reference to `fts_set'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-j4-20220621-170011

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-12.1.1 *
clang/llvm (if any):
clang version 14.0.5
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
/usr/lib/llvm/14
14.0.5
Python 3.9.13
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-1.61.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.3_p7 [openjdk-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-bin-17  system-vm

php cli:

  HEAD of ::gentoo
commit fc8c691ceb8c81a3ff7725fe6f01fadc052d3b07
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Jun 22 14:48:34 2022 +0000

    2022-06-22 14:48:33 UTC

emerge -qpvO net-analyzer/nfdump
[ebuild  N    ] net-analyzer/nfdump-1.6.24  USE="-debug -doc -ftconv -jnat -nfpcapd -nfprofile -nftrack -nsel -readpcap -sflow"
Comment 1 Toralf Förster gentoo-dev 2022-06-22 16:04:15 UTC
Created attachment 786782 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-06-22 16:04:16 UTC
Created attachment 786785 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-06-22 16:04:18 UTC
Created attachment 786788 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-06-22 16:04:19 UTC
Created attachment 786791 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-06-22 16:04:20 UTC
Created attachment 786794 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-06-22 16:04:21 UTC
Created attachment 786797 [details]
net-analyzer:nfdump-1.6.24:20220622-155413.log
Comment 7 Toralf Förster gentoo-dev 2022-06-22 16:04:22 UTC
Created attachment 786800 [details]
temp.tar.bz2
Comment 8 CFuga 2022-06-22 19:44:19 UTC
Created attachment 786836 [details, diff]
musl support for net-analyzer/nfdump/nfdump-1.6.23

This patch makes 3 changes to the original ebuild:
* inherit flag-o-matic eclass
* add sys-libs/fts-standalone as dependency for musl
* append "-lfts" to LDFLAGS
Comment 9 CFuga 2022-06-22 19:45:04 UTC
Created attachment 786839 [details, diff]
musl support for net-analyzer/nfdump/nfdump-1.6.23-r1

This patch makes 3 changes to the original ebuild:
* inherit flag-o-matic eclass
* add sys-libs/fts-standalone as dependency for musl
* append "-lfts" to LDFLAGS
Comment 10 CFuga 2022-06-22 19:45:41 UTC
Created attachment 786842 [details, diff]
musl support for net-analyzer/nfdump/nfdump-1.6.24

This patch makes 3 changes to the original ebuild:
* inherit flag-o-matic eclass
* add sys-libs/fts-standalone as dependency for musl
* append "-lfts" to LDFLAGS
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-23 04:47:09 UTC
*** Bug 829709 has been marked as a duplicate of this bug. ***
Comment 12 Larry the Git Cow gentoo-dev 2022-06-23 04:47:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce9cf468b74854dd0d12f3647c509b7e3700b179

commit ce9cf468b74854dd0d12f3647c509b7e3700b179
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-23 04:45:27 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-23 04:46:55 +0000

    net-analyzer/nfdump: fix build on musl
    
    Closes: https://bugs.gentoo.org/853763
    Thanks-to: CFuga <cfuga@cfuga.mx>
    Signed-off-by: Sam James <sam@gentoo.org>

 net-analyzer/nfdump/nfdump-1.6.24.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)