Hi,

On Tue, Sep 3, 2019 at 3:21 PM Ritesh Raj Sarraf <r...@debian.org> wrote:
[...]
> In file included from /usr/include/pcap.h:43,
>                  from arch/um/drivers/pcap_user.c:7:
> /usr/include/pcap/pcap.h:835:18: note: previous declaration of ‘pcap_open’ 
> was here
>  PCAP_API pcap_t *pcap_open(const char *source, int snaplen, int flags,
>                   ^~~~~~~~~
> make[2]: *** [scripts/Makefile.build:309: arch/um/drivers/pcap_user.o] Error 1

libpcap 1.9 includes support for remote capture, which was originally
a part of WinPcap extensions. The `pcap_open()' symbol is part of that
API and that's why it's defined in the header file even though remote
support is not enabled in Debian. I suggest you rename the function
defined in your program so that it doesn't conflict with libpcap.

Reply via email to