Source: libnet-libdnet-perl
Version: 0.99-2
Severity: serious
Tags: ftbfs patch
X-Debbugs-Cc: Étienne Mollier <emoll...@debian.org>

https://tests.reproducible-builds.org/debian/rb-pkg/trixie/i386/libnet-libdnet-perl.html
https://buildd.debian.org/status/logs.php?pkg=libnet-libdnet-perl&ver=0.99-2%2Bb1

...
In file included from /usr/lib/i386-linux-gnu/perl/5.38/CORE/perl.h:4530,
                 from Libdnet.xs:33:
Libdnet.xs: In function 'XS_Net__Libdnet__obsolete_addr_cmp':
/usr/lib/i386-linux-gnu/perl/5.38/CORE/sv.h:1952:31: error: passing argument 3 
of 'Perl_SvPV_helper' from incompatible pointer type 
[-Wincompatible-pointer-types]
 1952 |    Perl_SvPV_helper(aTHX_ sv, &len, flags, SvPVnormal_type_,            
    \
/usr/lib/i386-linux-gnu/perl/5.38/CORE/sv.h:1972:37: note: in expansion of 
macro 'SvPV_flags'
 1972 | #define SvPV(sv, len)               SvPV_flags(sv, len, SV_GMAGIC)
      |                                     ^~~~~~~~~~
Libdnet.xs:281:41: note: in expansion of macro 'SvPV'
  281 |                         StrA = (char *) SvPV(SvA, len);
      |                                         ^~~~
In file included from /usr/lib/i386-linux-gnu/perl/5.38/CORE/perl.h:7812:
/usr/lib/i386-linux-gnu/perl/5.38/CORE/sv_inline.h:908:33: note: expected 
'STRLEN * const' {aka 'unsigned int * const'} but argument is of type 'long int 
*'
  908 |                  STRLEN * const lp,
      |                  ~~~~~~~~~~~~~~~^~
...



Fix:
  sed -i "s/long len/STRLEN len/g" debian/patches/gcc-14.patch

Reply via email to