Bug#932282: libnet-pcap-perl: FTBFS: error: redefinition of ‘struct pcap_rmtauth’

Niko Tyni ntyni at debian.org
Wed Jul 17 11:47:08 BST 2019


Source: libnet-pcap-perl
Version: 0.18-2
Severity: serious
Tags: ftbfs sid bullseye
X-Debbugs-Cc: libpcap at packages.debian.org

This package fails to build from source on current sid/amd64.

Presumably this regressed with libpcap 1.9.0-2 so copying
the maintainer in case it's an oversight.

>From the build log:

  x86_64-linux-gnu-gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wwrite-strings -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2   -DVERSION=\"0.18\" -DXS_VERSION=\"0.18\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.28/CORE"  -DHAVE_BLANK -DHAVE_PCAP_LIB_VERSION -DHAVE_PCAP_BREAKLOOP -DHAVE_PCAP_COMPILE_NOPCAP -DHAVE_PCAP_DATALINK_NAME_TO_VAL -DHAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION -DHAVE_PCAP_DATALINK_VAL_TO_NAME -DHAVE_PCAP_DUMP_FILE -DHAVE_PCAP_DUMP_FLUSH -DHAVE_PCAP_FINDALLDEVS -DHAVE_PCAP_GETNONBLOCK -DHAVE_PCAP_GET_SELECTABLE_FD -DHAVE_PCAP_LIB_VERSION -DHAVE_PCAP_NEXT_EX -DHAVE_PCAP_OFFLINE_FILTER -DHAVE_PCAP_OPEN_DEAD -DHAVE_PCAP_SENDPACKET -DHAVE_PCAP_SETNONBLOCK -DHAVE_PCAP_SET_DATALINK Pcap.c
  In file included from Pcap.xs:43:
  stubs.inc:187:2: warning: #warning "the function pcap_list_datalinks() is not available" [-Wcpp]
   #warning "the function pcap_list_datalinks() is not available"
    ^~~~~~~
  stubs.inc:322:2: warning: #warning "the function pcap_createsrcstr() is not available" [-Wcpp]
   #warning "the function pcap_createsrcstr() is not available"
    ^~~~~~~
  stubs.inc:337:2: warning: #warning "the function pcap_parsesrcstr() is not available" [-Wcpp]
   #warning "the function pcap_parsesrcstr() is not available"
    ^~~~~~~
  stubs.inc:352:2: warning: #warning "the function pcap_open() is not available" [-Wcpp]
   #warning "the function pcap_open() is not available"
    ^~~~~~~
  stubs.inc:357:8: error: redefinition of ‘struct pcap_rmtauth’
   struct pcap_rmtauth {
          ^~~~~~~~~~~~
  In file included from /usr/include/pcap.h:43,
                   from Pcap.xs:32:
  /usr/include/pcap/pcap.h:788:8: note: originally defined here
   struct pcap_rmtauth
          ^~~~~~~~~~~~
  In file included from Pcap.xs:43:
  stubs.inc:363:10: error: conflicting types for ‘pcap_open’
   pcap_t * pcap_open(const char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth *auth, char *err);
            ^~~~~~~~~
  In file included from /usr/include/pcap.h:43,
                   from Pcap.xs:32:
  /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,
                    ^~~~~~~~~
 
-- 
Niko Tyni   ntyni at debian.org



More information about the pkg-perl-maintainers mailing list