Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 778704 - net-analyzer/nfdump-1.6.22-r1 - /.../ld: cannot find -lnfdump
Summary: net-analyzer/nfdump-1.6.22-r1 - /.../ld: cannot find -lnfdump
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: PATCH, UPSTREAM
: 778788 (view as bug list)
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2021-03-27 12:59 UTC by Toralf Förster
Modified: 2021-04-06 13:14 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.12 KB, text/plain)
2021-03-27 12:59 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,327.79 KB, text/plain)
2021-03-27 12:59 UTC, Toralf Förster
Details
environment (environment,67.96 KB, text/plain)
2021-03-27 12:59 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,42.34 KB, application/x-bzip)
2021-03-27 12:59 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,14.90 KB, application/x-bzip)
2021-03-27 12:59 UTC, Toralf Förster
Details
net-analyzer:nfdump-1.6.22-r1:20210327-122225.log (net-analyzer:nfdump-1.6.22-r1:20210327-122225.log,50.46 KB, text/plain)
2021-03-27 12:59 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,25.23 KB, application/x-bzip)
2021-03-27 12:59 UTC, Toralf Förster
Details
https://github.com/phaag/nfdump/pull/282 (nfdump-slibtool.patch,3.35 KB, patch)
2021-03-27 14:32 UTC, orbea
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 2021-03-27 12:59:50 UTC
rdlibtool: lconf: found "/var/tmp/portage/net-analyzer/nfdump-1.6.22-r1/work/nfdump-1.6.22/libtool".
rdlibtool: link: x86_64-pc-linux-gnu-gcc nfcapd-nfcapd.o nfcapd-nfstatfile.o nfcapd-launch.o nfcapd-nfnet.o nfcapd-collector.o nfcapd-netflow_v1.o nfcapd-netflow_v5_v7.o nfcapd-netflow_v9.o nfcapd-ipfix.o nfcapd-bookkeeper.o nfcapd-expire.o nfcapd-pcap_reader.o -DPCAP -O2 -pipe -march=native -fno-diagnostics-color -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -DNSEL -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -lnfdump -lpcap -lresolv -lbz2 -o .libs/nfcapd
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lnfdump
collect2: error: ld returned 1 exit status
rdlibtool: exec error upon slbt_exec_link_create_executable(), line 1614: (see child process error messages).
rdlibtool: < returned to > slbt_exec_link(), line 1934.

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-20210320-151517

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-10.2.0 *
/usr/lib/llvm/11
11.1.0
Python 3.8.8
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.50.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.282_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sat Mar 27 11:50:40 UTC 2021

emerge -qpvO net-analyzer/nfdump
[ebuild  N    ] net-analyzer/nfdump-1.6.22-r1  USE="nftrack nsel readpcap -debug -doc -ftconv -jnat -nfpcapd -nfprofile -sflow -static-libs"
Comment 1 Toralf Förster gentoo-dev 2021-03-27 12:59:51 UTC
Created attachment 694980 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-03-27 12:59:53 UTC
Created attachment 694983 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-03-27 12:59:54 UTC
Created attachment 694986 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-03-27 12:59:55 UTC
Created attachment 694989 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-03-27 12:59:56 UTC
Created attachment 694992 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-03-27 12:59:58 UTC
Created attachment 694995 [details]
net-analyzer:nfdump-1.6.22-r1:20210327-122225.log
Comment 7 Toralf Förster gentoo-dev 2021-03-27 12:59:59 UTC
Created attachment 694998 [details]
temp.tar.bz2
Comment 8 orbea 2021-03-27 14:32:44 UTC
Created attachment 695001 [details, diff]
https://github.com/phaag/nfdump/pull/282

Projects should use -lfoo linker flags when they are external dependencies and the libtool archives  for internal dependencies when created by libtool.
Comment 9 Larry the Git Cow gentoo-dev 2021-03-27 15:34:58 UTC
The bug has been closed via the following commit(s):

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

commit 252dcb79de46102f998eca4451467ccba81f13a9
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-27 15:32:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-27 15:34:49 +0000

    net-analyzer/nfdump: fix slibtool build, use EPREFIX
    
    Thanks-to: orbea <orbea@riseup.net>
    Closes: https://bugs.gentoo.org/778704
    Signed-off-by: Sam James <sam@gentoo.org>

 net-analyzer/nfdump/nfdump-1.6.22-r1.ebuild | 1 +
 1 file changed, 1 insertion(+)
Comment 10 Larry the Git Cow gentoo-dev 2021-03-27 16:02:30 UTC
The bug has been referenced in the following commit(s):

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

commit 6efaf753254faf7b1778f6712965ad131cc6d0c0
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-27 16:00:07 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-27 16:02:21 +0000

    net-analyzer/nfdump: add missing (slibtool) patch
    
    Fixes: 252dcb79de46102f998eca4451467ccba81f13a9
    Bug: https://bugs.gentoo.org/778704
    Signed-off-by: Sam James <sam@gentoo.org>

 .../nfdump-1.6.22-libtool-archives-slibtool.patch  | 111 +++++++++++++++++++++
 1 file changed, 111 insertions(+)
Comment 11 Toralf Förster gentoo-dev 2021-03-27 20:49:00 UTC
*** Bug 778788 has been marked as a duplicate of this bug. ***