[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1066523: lprng: FTBFS: auth/krb5_auth.c:55:24: error: implicit declaration of function ‘krb5_read_message’; did you mean ‘krb5_chpw_message’? [-Werror=implicit-function-declaration]



Source: lprng
Version: 3.8.B-7
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas@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):
> gcc -DHAVE_CONFIG_H -I. -I..  -I./include "-DLOCALEDIR=\"/usr/share/locale\"" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o lpq.o `test -f 'common/lpq.c' || echo './'`common/lpq.c
> auth/krb5_auth.c: In function ‘server_krb5_auth’:
> auth/krb5_auth.c:55:24: error: implicit declaration of function ‘krb5_read_message’; did you mean ‘krb5_chpw_message’? [-Werror=implicit-function-declaration]
>    55 | #  define read_message krb5_read_message
>       |                        ^~~~~~~~~~~~~~~~~
> auth/krb5_auth.c:284:34: note: in expansion of macro ‘read_message’
>   284 |                 while( (retval = read_message(context,&sock,&inbuf)) == 0 ){
>       |                                  ^~~~~~~~~~~~
> auth/krb5_auth.c: In function ‘server_krb5_status’:
> auth/krb5_auth.c:56:25: error: implicit declaration of function ‘krb5_write_message’; did you mean ‘krb5_chpw_message’? [-Werror=implicit-function-declaration]
>    56 | #  define write_message krb5_write_message
>       |                         ^~~~~~~~~~~~~~~~~~
> auth/krb5_auth.c:386:37: note: in expansion of macro ‘write_message’
>   386 |                         if((retval= write_message(context,&sock,&outbuf))){
>       |                                     ^~~~~~~~~~~~~
> auth/krb5_auth.c: In function ‘client_krb5_auth’:
> auth/krb5_auth.c:642:17: warning: ‘krb5_get_in_tkt_with_keytab’ is deprecated [-Wdeprecated-declarations]
>   642 |                 if((retval = krb5_get_in_tkt_with_keytab(context, options, addrs,
>       |                 ^~
> In file included from /usr/include/krb5.h:8,
>                  from auth/krb5_auth.c:34:
> /usr/include/krb5/krb5.h:5146:1: note: declared here
>  5146 | krb5_get_in_tkt_with_keytab(krb5_context context, krb5_flags options,
>       | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> common/lpq.c: In function ‘Term_clear’:
> common/lpq.c:472:17: warning: ignoring return value of ‘setuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>   472 |                 setuid( OriginalRUID );
>       |                 ^~~~~~~~~~~~~~~~~~~~~~
> gcc -DHAVE_CONFIG_H -I. -I..  -I./include "-DLOCALEDIR=\"/usr/share/locale\"" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o lprm.o `test -f 'common/lprm.c' || echo './'`common/lprm.c
> common/linelist.c: In function ‘Build_printcap_info’:
> common/linelist.c:1552:65: warning: ‘%s’ directive argument is null [-Wformat-overflow=]
>  1552 |                         DEBUG4("Build_printcap_info: old keyid '%s', new '%s'",
>       |                                                                 ^~
> common/linelist.c:1552:65: warning: ‘%s’ directive argument is null [-Wformat-overflow=]
> gcc -DHAVE_CONFIG_H -I. -I..  -I./include "-DLOCALEDIR=\"/usr/share/locale\"" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o lpstat.o `test -f 'common/lpstat.c' || echo './'`common/lpstat.c
> gcc -DHAVE_CONFIG_H -I. -I..  -I./include "-DLOCALEDIR=\"/usr/share/locale\"" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o lpf.o `test -f 'common/lpf.c' || echo './'`common/lpf.c
> gcc -DHAVE_CONFIG_H -I. -I..  -I./include "-DLOCALEDIR=\"/usr/share/locale\"" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o lpbanner.o `test -f 'common/lpbanner.c' || echo './'`common/lpbanner.c
> gcc -DHAVE_CONFIG_H -I. -I..  -I./include "-DLOCALEDIR=\"/usr/share/locale\"" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o lpd.o `test -f 'common/lpd.c' || echo './'`common/lpd.c
> gcc -DHAVE_CONFIG_H -I. -I..  -I./include "-DLOCALEDIR=\"/usr/share/locale\"" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o lpd_worker.o `test -f 'common/lpd_worker.c' || echo './'`common/lpd_worker.c
> common/lpbanner.c: In function ‘safefprintf’:
> common/lpbanner.c:1709:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>  1709 |         write(fd, buf, strlen(buf));
>       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> common/lpd.c: In function ‘Lock_lpd_pid’:
> common/lpd.c:813:9: warning: ignoring return value of ‘fchown’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>   813 |         fchown( lockfd, DaemonUID, DaemonGID );
>       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> common/lpd.c: In function ‘sigchld_handler’:
> common/lpd.c:1053:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>  1053 |         write(Lpd_request,"\n", 1);
>       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
> gcc -DHAVE_CONFIG_H -I. -I..  -I./include "-DLOCALEDIR=\"/usr/share/locale\"" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o lpd_jobs.o `test -f 'common/lpd_jobs.c' || echo './'`common/lpd_jobs.c
> gcc -DHAVE_CONFIG_H -I. -I..  -I./include "-DLOCALEDIR=\"/usr/share/locale\"" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o lpd_control.o `test -f 'common/lpd_control.c' || echo './'`common/lpd_control.c
> cc1: some warnings being treated as errors
> gcc -DHAVE_CONFIG_H -I. -I..  -I./include "-DLOCALEDIR=\"/usr/share/locale\"" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o sendmail.o `test -f 'common/sendmail.c' || echo './'`common/sendmail.c
> make[3]: *** [Makefile:1390: krb5_auth.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/03/13/lprng_3.8.B-7_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.


Reply to: