Bug 1977053 - masscan cannot find libpcap
Summary: masscan cannot find libpcap
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: masscan
Version: 34
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Rino Rondan
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-28 20:28 UTC by Todd
Modified: 2021-09-24 20:08 UTC (History)
4 users (show)

Fixed In Version: masscan-1.3.2-3.el8 masscan-1.3.2-3.fc34 masscan-1.3.2-4.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-02 23:07:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Todd 2021-06-28 20:28:52 UTC
Description of problem:
masscan cannot find libpcap even when installed

Version-Release number of selected component (if applicable):
1.3.2

How reproducible:
every time

Steps to Reproduce:
1. sudo -i
2. dnf install masscan
3. masscan -p1234 --echo

Actual results:
[root@myhost ~]# masscan -p1234 10.0.0.0/32
[-] FAIL: failed to load libpcap shared library
    [hint]: you must install libpcap or WinPcap
FAIL:wlp0s20f3: can't open adapter: libpcap not loaded
[-] if:wlp0s20f3:init: failed

Expected results:
A list of hosts with port 1234 open.

Additional info:
[root@myhost ~]# rpm -qa | grep libpcap
libpcap-1.10.1-1.fc34.x86_64

Comment 1 Fedora Update System 2021-08-25 20:58:38 UTC
FEDORA-2021-42447fed05 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-42447fed05

Comment 2 Fedora Update System 2021-08-25 21:04:36 UTC
FEDORA-EPEL-2021-4e95dfc5e7 has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-4e95dfc5e7

Comment 3 postmodern 2021-08-26 01:46:32 UTC
Can confirm. libpcap-devel needs to be installed to provide the /usr/lib64/libpcap.so symlink which masscan is apparently trying to load via dlopen(3).
https://github.com/robertdavidgraham/masscan/blob/2895fa0acfe45983a3e9b2bbfadf25934c8d2c65/src/stub-pcap.c#L381

Comment 4 Fedora Update System 2021-08-26 19:50:08 UTC
FEDORA-2021-60fc9ac54b has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-60fc9ac54b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-60fc9ac54b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2021-08-26 21:19:09 UTC
FEDORA-EPEL-2021-4e95dfc5e7 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-4e95dfc5e7

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2021-09-02 23:07:54 UTC
FEDORA-EPEL-2021-4e95dfc5e7 has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Todd 2021-09-03 14:27:45 UTC
Does this mean it won't be fixed for Fedora 34? Am I reading that right?

Comment 8 Fabian Affolter 2021-09-03 15:04:37 UTC
I can build it for F34 as well.

Comment 9 Fedora Update System 2021-09-03 15:29:21 UTC
FEDORA-2021-cf214409d8 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-cf214409d8

Comment 10 Fedora Update System 2021-09-04 20:38:40 UTC
FEDORA-2021-cf214409d8 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-cf214409d8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-cf214409d8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2021-09-13 03:41:25 UTC
FEDORA-2021-cf214409d8 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2021-09-13 13:06:26 UTC
FEDORA-2021-cf214409d8 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2021-09-24 20:08:57 UTC
FEDORA-2021-60fc9ac54b has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.