I am trying to compile ethping
Here is the command that gets issued via make:
gcc -Wall -Werror -ggdb -g -O2 -lpcap -o ethping ethping.o ieee8021ag.o dot1ag_eth.o
I now get this error message:
/dot1ag-utils-master/src/ethping.c:65: undefined reference to `pcap_breakloop'
Indicating that it cannot find the pcap.h.
So I type:
root:src# whereis pcap.h
pcap: /usr/include/pcap.h /usr/include/pcap /usr/share/man/man3/pcap.3pcap.gz
root:src#
root:src# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/include
And the /usr/include is definitely in my path.
The only thing that might be an issue is that /usr/include/pcap.h is a stub file that does and include of pcap/pcap.h.
/*
* For backwards compatibility.
*
* Note to OS vendors: do NOT get rid of this file! Many applications
* expect to be able to include <pcap.h>, and at least some of them
* go through contortions in their configure scripts to try to detect
* OSes that have "helpfully" moved pcap.h to <pcap/pcap.h> without
* leaving behind a <pcap.h> file.
*/
#include <pcap/pcap.h>
So in /usr/include/pcap/pcap.h is the actual file contents with those definitions present.