ngrep nie działa (patch na spec)

Bartlomiej B. bartml at wp.pl
Mon Jul 3 20:22:45 CEST 2017


Jest teraz tak:
# ngrep -tMpqld eth0 -W byline 'host x.x.x.x' ''      
interface: eth0 (x.x.x.x/255.255.255.0)
ngrep: symbol lookup error: ngrep: undefined symbol: pcap_restart
# rpm -q ngrep libpcap                                                                                    
ngrep-1.45-4.x86_64
libpcap-1.8.1-1.x86_64

Dodanie opcji configure --disable-pcap-restart rozwiązuje problem. Opcja ta jest używana
np. w Gentoo [1] czy Debianie [2].

[1] https://gitweb.gentoo.org/repo/gentoo.git/tree/net-analyzer/ngrep/ngrep-1.45-r3.ebuild?id=61b861acd7b49083dab687e133f30f3331cb7480
[2] https://anonscm.debian.org/cgit/users/rfrancoise/ngrep.git/tree/debian/rules

Diff poniżej.

--- ngrep-old.spec	2017-07-03 20:19:49.452648164 +0200
+++ ngrep.spec	2017-07-03 20:18:50.695980205 +0200
@@ -43,7 +43,8 @@
 %{__aclocal}
 %{__autoconf}
 %configure \
-	--enable-ipv6
+	--enable-ipv6 \
+	--disable-pcap-restart
 %{__make} \
 	MAKEFLAGS= \
 	STRIPFLAG=



More information about the pld-devel-pl mailing list