• Bug#1066001: libnet-rawip-perl: FTBFS on arm{el,hf}: RawIP.xs:660:14: e

    From Sebastian Ramacher@21:1/5 to All on Sun Mar 10 23:20:02 2024
    Source: libnet-rawip-perl
    Version: 0.25-3
    Severity: serious
    Tags: ftbfs
    Justification: fails to build from source (but built successfully in the past) X-Debbugs-Cc: sramacher@debian.org

    https://buildd.debian.org/status/fetch.php?pkg=libnet-rawip-perl&arch=armhf&ver=0.25-3%2Bb3&stamp=1709818005&raw=0

    arm-linux-gnueabihf-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 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-
    protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -DVERSION=\"0.25\" -DXS_VERSION=\"0.25\" -fPIC "-I/usr/lib/arm-linux-gnueabihf/perl/5.
    38/CORE" -D_LINUX_ -D_ETH_ -D_IFLIST_ -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBC_ RawIP.c
    RawIP.xs: In function ‘XS_Net__RawIP_timem’:
    RawIP.xs:614:27: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘__time64_t’ {aka ‘long long int’} [-Wformat=]
    614 | RETVAL = newSVpvf("%u.%06u",tv.tv_sec,tv.tv_usec);
    | ^~~~~~~~~ ~~~~~~~~~
    | |
    | __time64_t {aka long long int} RawIP.xs:614:27: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘__suseconds64_t’ {aka ‘long long int’} [-Wformat=]
    614 | RETVAL = newSVpvf("%u.%06u",tv.tv_sec,tv.tv_usec);
    | ^~~~~~~~~ ~~~~~~~~~~
    | |
    | __suseconds64_t {aka long long int}
    RawIP.xs: In function ‘XS_Net__RawIP_tap’:
    RawIP.xs:660:14: error: implicit declaration of function ‘tap’; did you mean ‘tan’? [-Werror=implicit-function-declaration]
    660 | RETVAL = tap(device,&i,m);
    | ^~~
    | tan
    RawIP.xs: In function ‘XS_Net__RawIP_mac_disc’:
    RawIP.xs:676:14: error: implicit declaration of function ‘mac_disc’ [-Werror=implicit-function-declaration]
    676 | RETVAL = mac_disc(addr,m);
    | ^~~~~~~~
    RawIP.xs: In function ‘XS_Net__RawIP_send_eth_packet’:
    RawIP.xs:691:5: error: implicit declaration of function ‘send_eth_packet’ [-Werror=implicit-function-declaration]
    691 | send_eth_packet(fd, eth_device, (char*)SvPV(pkt,PL_na), SvCUR(pkt),flag);
    | ^~~~~~~~~~~~~~~
    In file included from /usr/lib/arm-linux-gnueabihf/perl/5.38/CORE/perl.h:6168,
    from RawIP.xs:5:
    RawIP.c: In function ‘XS_Net__RawIP_open_live’:
    RawIP.c:1791:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    1791 | PUSHi((IV)RETVAL);
    | ^ /usr/lib/arm-linux-gnueabihf/perl/5.38/CORE/pp.h:428:23: note: in definition of macro ‘TARGi’
    428 | IV TARGi_iv = i; \
    | ^
    RawIP.c:1791:9: note: in expansion of macro ‘PUSHi’
    1791 | PUSHi((IV)RETVAL);
    | ^~~~~
    RawIP.c: In function ‘XS_Net__RawIP_open_offline’:
    RawIP.c:1818:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    1818 | PUSHi((IV)RETVAL);
    | ^ /usr/lib/arm-linux-gnueabihf/perl/5.38/CORE/pp.h:428:23: note: in definition of macro ‘TARGi’
    428 | IV TARGi_iv = i; \
    | ^
    RawIP.c:1818:9: note: in expansion of macro ‘PUSHi’
    1818 | PUSHi((IV)RETVAL);
    | ^~~~~
    RawIP.c: In function ‘XS_Net__RawIP_dump_open’:
    RawIP.c:1831:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    1831 | pcap_t * p = (pcap_t *)SvIV(ST(0))
    | ^
    RawIP.xs: In function ‘XS_Net__RawIP_lookupdev’:
    RawIP.xs:1370:5: warning: ‘pcap_lookupdev’ is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations]
    1370 | RETVAL = pcap_lookupdev(ebuf);
    | ^~~~~~
    In file included from /usr/include/pcap.h:43,
    from RawIP.xs:36:
    /usr/include/pcap/pcap.h:395:18: note: declared here
    395 | PCAP_API char *pcap_lookupdev(char *);
    | ^~~~~~~~~~~~~~
    RawIP.c: In function ‘XS_Net__RawIP_dispatch’:
    RawIP.c:1937:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    1937 | pcap_t * p = (pcap_t *)SvIV(ST(0))
    | ^
    RawIP.c:1941:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    1941 | pcap_handler print = (pcap_handler)SvIV(ST(2))
    | ^
    RawIP.xs:1411:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    1411 | user = (SV *) SvIV(user);
    | ^
    RawIP.c: In function ‘XS_Net__RawIP_loop’:
    RawIP.c:1975:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    1975 | pcap_t * p = (pcap_t *)SvIV(ST(0))
    | ^
    RawIP.c:1979:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    1979 | pcap_handler print = (pcap_handler)SvIV(ST(2))
    | ^
    RawIP.xs:1433:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    1433 | user = (SV *)SvIV(user);
    | ^
    RawIP.c: In function ‘XS_Net__RawIP_compile’:
    RawIP.c:2013:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    2013 | pcap_t * p = (pcap_t *)SvIV(ST(0))
    | ^
    RawIP.c:2015:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    2015 | struct bpf_program * fp = (struct bpf_program *)SvIV(ST(1))
    | ^
    In file included from /usr/lib/arm-linux-gnueabihf/perl/5.38/CORE/perl.h:6227: RawIP.c:2029:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    2029 | sv_setiv(ST(1), (IV)fp);
    | ^ /usr/lib/arm-linux-gnueabihf/perl/5.38/CORE/embed.h:688:71: note: in definition of macro ‘sv_setiv’
    688 | # define sv_setiv(a,b) Perl_sv_setiv(aTHX_ a,b)
    | ^ RawIP.c: In function ‘XS_Net__RawIP_linkoffset’:
    RawIP.c:2045:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    2045 | pcap_t * p = (pcap_t *)SvIV(ST(0))
    | ^
    RawIP.c: In function ‘XS_Net__RawIP_setfilter’:
    RawIP.c:2066:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    2066 | pcap_t * p = (pcap_t *)SvIV(ST(0))
    | ^
    RawIP.c:2068:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    2068 | struct bpf_program * fp = (struct bpf_program *)SvIV(ST(1))
    | ^
    RawIP.c: In function ‘XS_Net__RawIP_next’:
    RawIP.c:2088:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    2088 | pcap_t * p = (pcap_t *)SvIV(ST(0))
    | ^
    RawIP.c: In function ‘XS_Net__RawIP_datalink’:
    RawIP.c:2126:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    2126 | pcap_t * p = (pcap_t *)SvIV(ST(0))
    | ^
    RawIP.c: In function ‘XS_Net__RawIP_snapshot’:
    RawIP.c:2146:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    2146 | pcap_t * p = (pcap_t *)SvIV(ST(0))
    | ^
    RawIP.c: In function ‘XS_Net__RawIP_is_swapped’:
    RawIP.c:2166:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    2166 | pcap_t * p = (pcap_t *)SvIV(ST(0))
    | ^
    RawIP.c: In function ‘XS_Net__RawIP_major_version’:
    RawIP.c:2186:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    2186 | pcap_t * p = (pcap_t *)SvIV(ST(0))
    | ^
    RawIP.c: In function ‘XS_Net__RawIP_minor_version’:
    RawIP.c:2206:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    2206 | pcap_t * p = (pcap_t *)SvIV(ST(0))
    | ^
    RawIP.c: In function ‘XS_Net__RawIP_stat’:
    RawIP.c:2226:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    2226 | pcap_t * p = (pcap_t *)SvIV(ST(0))
    | ^
    RawIP.c:2228:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    2228 | u_char * ps = (u_char *)SvIV(ST(1))
    | ^
    RawIP.c:2237:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    2237 | sv_setiv(ST(1), (IV)ps);
    | ^ /usr/lib/arm-linux-gnueabihf/perl/5.38/CORE/embed.h:688:71: note: in definition of macro ‘sv_setiv’
    688 | # define sv_setiv(a,b) Perl_sv_setiv(aTHX_ a,b)
    | ^ RawIP.c: In function ‘XS_Net__RawIP_fileno’:
    RawIP.c:2253:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    2253 | pcap_t * p = (pcap_t *)SvIV(ST(0))
    | ^
    RawIP.c: In function ‘XS_Net__RawIP_perror’:
    RawIP.c:2273:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    2273 | pcap_t * p = (pcap_t *)SvIV(ST(0))
    | ^
    RawIP.c: In function ‘XS_Net__RawIP_geterr’:
    RawIP.c:2291:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    2291 | pcap_t * p = (pcap_t *)SvIV(ST(0))
    | ^
    RawIP.c: In function ‘XS_Net__RawIP_close’:
    RawIP.c:2331:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    2331 | pcap_t * p = (pcap_t *)SvIV(ST(0))
    | ^
    RawIP.c: In function ‘XS_Net__RawIP_dump_close’:
    RawIP.c:2347:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    2347 | pcap_dumper_t * p = (pcap_dumper_t *)SvIV(ST(0))
    | ^
    RawIP.c: In function ‘XS_Net__RawIP_file’:
    RawIP.c:2363:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    2363 | pcap_t * p = (pcap_t *)SvIV(ST(0))
    | ^
    cc1: some warnings being treated as errors
    make[1]: *** [Makefile:363: RawIP.o] Error 1

    Cheers
    --
    Sebastian Ramacher

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Mon Mar 11 00:30:01 2024
    Processing control commands:

    tag -1 pending
    Bug #1066001 [src:libnet-rawip-perl] libnet-rawip-perl: FTBFS on arm{el,hf}: RawIP.xs:660:14: error: implicit declaration of function ‘tap’; did you mean ‘tan’? [-Werror=implicit-function-declaration]
    Added tag(s) pending.

    --
    1066001: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066001
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gregor herrmann@21:1/5 to All on Mon Mar 11 00:30:01 2024
    Control: tag -1 pending

    Hello,

    Bug #1066001 in libnet-rawip-perl reported by you has been fixed in the
    Git repository and is awaiting an upload. You can see the commit
    message below and you can check the diff of the fix at:

    https://salsa.debian.org/perl-team/modules/packages/libnet-rawip-perl/-/commit/f71a2a1bc06079cc8bf147cf60d69073010996f9

    ------------------------------------------------------------------------
    Add Fedora patches to fix compiler warnings and errors.

    Closes: #1066001 ------------------------------------------------------------------------

    (this message was generated automatically)
    --
    Greetings

    https://bugs.debian.org/1066001

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Mon Mar 11 00:40:01 2024
    This is a multi-part message in MIME format...

    Your message dated Sun, 10 Mar 2024 23:35:53 +0000
    with message-id <E1rjSht-00Bz3J-Ku@fasolo.debian.org>
    and subject line Bug#1066001: fixed in libnet-rawip-perl 0.25-4
    has caused the Debian Bug report #1066001,
    regarding libnet-rawip-perl: FTBFS on arm{el,hf}: RawIP.xs:660:14: error: implicit declaration of function ‘tap’; did you mean ‘tan’? [-Werror=implicit-function-declaration]
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1066001: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066001
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 10 Mar 2024 22:16:26 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-106.1 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
    DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,
    FROMDEVELOPER,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,
    UNPARSEABLE_RELAY,USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST
    autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 73; hammy, 150; neutral, 180; spammy,
    0. spammytokens:
    hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
    0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
    0.000-+--H*RT:108, 0.000-+--H*RT:311
    Return-path: <sramacher@debian.org>
    Received: from stravinsky.debian.org