Bug#1066288: libauthen-krb5-perl: FTBFS: Krb5.xs:499:15: error: implicit declaration of function ‘krb5_gen_portaddr’ [-Werror=implicit-function-declaration]

Lucas Nussbaum lucas at debian.org
Wed Mar 13 11:40:28 GMT 2024


Source: libauthen-krb5-perl
Version: 1.9-6
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240313 ftbfs-trixie ftbfs-impfuncdef

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

This is most likely caused by a change in dpkg 1.22.6, that enabled
-Werror=implicit-function-declaration. For more information, see
https://wiki.debian.org/qa.debian.org/FTBFS#A2024-03-13_-Werror.3Dimplicit-function-declaration

Relevant part (hopefully):
> x86_64-linux-gnu-gcc -c  -isystem /usr/include/mit-krb5 -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 -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -DVERSION=\"1.9\" -DXS_VERSION=\"1.9\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.38/CORE"   Krb5.c
> In file included from /usr/lib/x86_64-linux-gnu/perl/5.38/CORE/perl.h:4530,
>                  from Krb5.xs:5:
> Krb5.xs: In function ‘XS_Authen__Krb5_mk_req’:
> /usr/lib/x86_64-linux-gnu/perl/5.38/CORE/sv.h:1952:31: warning: 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/x86_64-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)
>       |                                     ^~~~~~~~~~
> Krb5.xs:460:24: note: in expansion of macro ‘SvPV’
>   460 |         in_data.data = SvPV(in,in_data.length);
>       |                        ^~~~
> In file included from /usr/lib/x86_64-linux-gnu/perl/5.38/CORE/perl.h:7812:
> /usr/lib/x86_64-linux-gnu/perl/5.38/CORE/sv_inline.h:908:33: note: expected ‘STRLEN * const’ {aka ‘long unsigned int * const’} but argument is of type ‘unsigned int *’
>   908 |                  STRLEN * const lp,
>       |                  ~~~~~~~~~~~~~~~^~
> Krb5.xs: In function ‘XS_Authen__Krb5_rd_req’:
> /usr/lib/x86_64-linux-gnu/perl/5.38/CORE/sv.h:1952:31: warning: 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/x86_64-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)
>       |                                     ^~~~~~~~~~
> Krb5.xs:482:24: note: in expansion of macro ‘SvPV’
>   482 |         in_data.data = SvPV(in,in_data.length);
>       |                        ^~~~
> /usr/lib/x86_64-linux-gnu/perl/5.38/CORE/sv_inline.h:908:33: note: expected ‘STRLEN * const’ {aka ‘long unsigned int * const’} but argument is of type ‘unsigned int *’
>   908 |                  STRLEN * const lp,
>       |                  ~~~~~~~~~~~~~~~^~
> Krb5.xs: In function ‘XS_Authen__Krb5_gen_portaddr’:
> Krb5.xs:499:15: error: implicit declaration of function ‘krb5_gen_portaddr’ [-Werror=implicit-function-declaration]
>   499 |         err = krb5_gen_portaddr(context,addr,(krb5_pointer)&port,&RETVAL);
>       |               ^~~~~~~~~~~~~~~~~
> Krb5.xs: In function ‘XS_Authen__Krb5_gen_replay_name’:
> Krb5.xs:526:15: error: implicit declaration of function ‘krb5_gen_replay_name’; did you mean ‘krb5_set_real_time’? [-Werror=implicit-function-declaration]
>   526 |         err = krb5_gen_replay_name(context,addr,uniq,&RETVAL);
>       |               ^~~~~~~~~~~~~~~~~~~~
>       |               krb5_set_real_time
> Krb5.xs: In function ‘XS_Authen__Krb5_mk_priv’:
> /usr/lib/x86_64-linux-gnu/perl/5.38/CORE/sv.h:1952:31: warning: 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/x86_64-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)
>       |                                     ^~~~~~~~~~
> Krb5.xs:541:24: note: in expansion of macro ‘SvPV’
>   541 |         in_data.data = SvPV(in,in_data.length);
>       |                        ^~~~
> /usr/lib/x86_64-linux-gnu/perl/5.38/CORE/sv_inline.h:908:33: note: expected ‘STRLEN * const’ {aka ‘long unsigned int * const’} but argument is of type ‘unsigned int *’
>   908 |                  STRLEN * const lp,
>       |                  ~~~~~~~~~~~~~~~^~
> Krb5.xs: In function ‘XS_Authen__Krb5_rd_priv’:
> /usr/lib/x86_64-linux-gnu/perl/5.38/CORE/sv.h:1952:31: warning: 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/x86_64-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)
>       |                                     ^~~~~~~~~~
> Krb5.xs:556:24: note: in expansion of macro ‘SvPV’
>   556 |         in_data.data = SvPV(in,in_data.length);
>       |                        ^~~~
> /usr/lib/x86_64-linux-gnu/perl/5.38/CORE/sv_inline.h:908:33: note: expected ‘STRLEN * const’ {aka ‘long unsigned int * const’} but argument is of type ‘unsigned int *’
>   908 |                  STRLEN * const lp,
>       |                  ~~~~~~~~~~~~~~~^~
> Krb5.xs: In function ‘XS_Authen__Krb5_get_server_rcache’:
> /usr/lib/x86_64-linux-gnu/perl/5.38/CORE/sv.h:1952:31: warning: 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/x86_64-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)
>       |                                     ^~~~~~~~~~
> Krb5.xs:569:22: note: in expansion of macro ‘SvPV’
>   569 |         rc_data.data=SvPV(piece,rc_data.length);
>       |                      ^~~~
> /usr/lib/x86_64-linux-gnu/perl/5.38/CORE/sv_inline.h:908:33: note: expected ‘STRLEN * const’ {aka ‘long unsigned int * const’} but argument is of type ‘unsigned int *’
>   908 |                  STRLEN * const lp,
>       |                  ~~~~~~~~~~~~~~~^~
> Krb5.xs: In function ‘XS_Authen__Krb5_sendauth’:
> /usr/lib/x86_64-linux-gnu/perl/5.38/CORE/sv.h:1952:31: warning: 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/x86_64-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)
>       |                                     ^~~~~~~~~~
> Krb5.xs:596:24: note: in expansion of macro ‘SvPV’
>   596 |         in_data.data = SvPV(in,in_data.length);
>       |                        ^~~~
> /usr/lib/x86_64-linux-gnu/perl/5.38/CORE/sv_inline.h:908:33: note: expected ‘STRLEN * const’ {aka ‘long unsigned int * const’} but argument is of type ‘unsigned int *’
>   908 |                  STRLEN * const lp,
>       |                  ~~~~~~~~~~~~~~~^~
> Krb5.xs: In function ‘XS_Authen__Krb5__EncTktPart_DESTROY’:
> Krb5.xs:1014:17: error: implicit declaration of function ‘krb5_free_enc_tkt_part’; did you mean ‘krb5_free_enctypes’? [-Werror=implicit-function-declaration]
>  1014 |                 krb5_free_enc_tkt_part(context,etp);
>       |                 ^~~~~~~~~~~~~~~~~~~~~~
>       |                 krb5_free_enctypes
> Krb5.xs: In function ‘XS_Authen__Krb5__Address_new’:
> /usr/lib/x86_64-linux-gnu/perl/5.38/CORE/sv.h:1952:31: warning: 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/x86_64-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)
>       |                                     ^~~~~~~~~~
> Krb5.xs:1029:42: note: in expansion of macro ‘SvPV’
>  1029 |         RETVAL->contents = (krb5_octet *)SvPV(contents,RETVAL->length);
>       |                                          ^~~~
> /usr/lib/x86_64-linux-gnu/perl/5.38/CORE/sv_inline.h:908:33: note: expected ‘STRLEN * const’ {aka ‘long unsigned int * const’} but argument is of type ‘unsigned int *’
>   908 |                  STRLEN * const lp,
>       |                  ~~~~~~~~~~~~~~~^~
> Krb5.xs: In function ‘XS_Authen__Krb5__Address_DESTROY’:
> Krb5.xs:1040:17: error: implicit declaration of function ‘krb5_free_address’; did you mean ‘krb5_free_addresses’? [-Werror=implicit-function-declaration]
>  1040 |                 krb5_free_address(context,addr);
>       |                 ^~~~~~~~~~~~~~~~~
>       |                 krb5_free_addresses
> cc1: some warnings being treated as errors
> make[1]: *** [Makefile:342: Krb5.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/03/13/libauthen-krb5-perl_1.9-6_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240313;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240313&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the pkg-perl-maintainers mailing list