Bug#1066001: libnet-rawip-perl: FTBFS on arm{el,hf}: RawIP.xs:660:14: error: implicit declaration of function =?UTF-8?Q?=E2=80=98tap=E2=80=99; ?= did you mean ‘tan’? [-Werror=implicit-function-declaration]
Sebastian Ramacher
sramacher at debian.org
Sun Mar 10 22:16:23 GMT 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 at 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
More information about the pkg-perl-maintainers
mailing list