When port PCAP library (net/libpcap) is installed, it seems to prefer the port version over the base system version, but it fails to link to. To avoid useless dependency, please force use base system PCAP library even when port version is installed, or setup a radio button to let the user choose which library to prefer. Unfortunately, I can't get rid of net/libpcap as net/daq a dependency of security/snort, requires it expressively
Created attachment 202792 [details] svn-diff-arpCounterattac
If got this error, is this the same as for you: arpCounterattack.cpp:491:56: error: use of undeclared identifier 'BIOCIMMEDIATE' if (ioctl(pcap_fileno(interfaces[i].descriptor), BIOCIMMEDIATE, ^
(In reply to w.schwarzenfeld from comment #2) Yes, this is the same error Best Regards, Davis
Does the patch work?
(In reply to w.schwarzenfeld from comment #4) I have tested the patch Here is the report : ===> arpCounterattack-1.2.0_6 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by arpCounterattack-1.2.0_6 for building ===> Extracting for arpCounterattack-1.2.0_6 => SHA256 Checksum OK for arpCounterattack-1.2.0.tbz. ===> Patching for arpCounterattack-1.2.0_6 ===> Applying FreeBSD patches for arpCounterattack-1.2.0_6 1 out of 2 hunks failed--saving rejects to arpCounterattack.cpp.rej => FreeBSD patch patch-arpCounterattack.cpp failed to apply cleanly. => Patch(es) patch-address.hpp applied cleanly. *** Error code 1 Best regards, David
Something went wrong for you: My output: ===> arpCounterattack-1.2.0_7 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by arpCounterattack-1.2.0_7 for building ===> Extracting for arpCounterattack-1.2.0_7 => SHA256 Checksum OK for arpCounterattack-1.2.0.tbz. ===> Patching for arpCounterattack-1.2.0_7 Your output tells 1.2.0_6. Maybe patch < svn-diffsecurity/arpCounterattack went wrong.
Oh, I see it, it is any svn nonsense. But I did not find it yet.
Created attachment 202835 [details] svn-diff-arpCounterattac_v2 This should work.
A commit references this bug: Author: swills Date: Fri May 24 16:06:32 UTC 2019 New revision: 502484 URL: https://svnweb.freebsd.org/changeset/ports/502484 Log: security/arpCounterattack: fix build failure PR: 236440 Submitted by: w.schwarzenfeld@utanet.at Reported by: my-roaming-data@outlook.com Changes: head/security/arpCounterattack/Makefile head/security/arpCounterattack/files/patch-address.hpp head/security/arpCounterattack/files/patch-arpCounterattack.cpp
Committed, thanks!