Source: mcpp Version: 2.7.2-5 Severity: serious Justification: FTBFS Tags: trixie sid ftbfs User: lu...@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): > /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > -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 system.lo system.c > libtool: compile: gcc -DHAVE_CONFIG_H -I. -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 > expand.c -fPIC -DPIC -o .libs/expand.o > libtool: compile: gcc -DHAVE_CONFIG_H -I. -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 > support.c -fPIC -DPIC -o .libs/support.o > libtool: compile: gcc -DHAVE_CONFIG_H -I. -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 > directive.c -fPIC -DPIC -o .libs/directive.o > libtool: compile: gcc -DHAVE_CONFIG_H -I. -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 > eval.c -fPIC -DPIC -o .libs/eval.o > libtool: compile: gcc -DHAVE_CONFIG_H -I. -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 > mbchar.c -fPIC -DPIC -o .libs/mbchar.o > libtool: compile: gcc -DHAVE_CONFIG_H -I. -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 > system.c -fPIC -DPIC -o .libs/system.o > libtool: compile: gcc -DHAVE_CONFIG_H -I. -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 > main.c -fPIC -DPIC -o .libs/main.o > support.c: In function ‘get_ch’: > support.c:1590:19: warning: passing argument 1 of ‘free’ discards ‘const’ > qualifier from pointer target type [-Wdiscarded-qualifiers] > 1590 | free( file->src_dir); > | ~~~~^~~~~~~~~ > In file included from configed.H:374, > from system.H:45, > from support.c:76: > /usr/include/stdlib.h:568:25: note: expected ‘void *’ but argument is of type > ‘const char *’ > 568 | extern void free (void *__ptr) __THROW; > | ~~~~~~^~~~~ > support.c:1596:19: warning: passing argument 1 of ‘free’ discards ‘const’ > qualifier from pointer target type [-Wdiscarded-qualifiers] > 1596 | free( file->src_dir); /* Free src_dir */ > | ~~~~^~~~~~~~~ > /usr/include/stdlib.h:568:25: note: expected ‘void *’ but argument is of type > ‘const char *’ > 568 | extern void free (void *__ptr) __THROW; > | ~~~~~~^~~~~ > support.c:1599:22: warning: assignment discards ‘const’ qualifier from > pointer target type [-Wdiscarded-qualifiers] > 1599 | cur_fullname = infile->full_fname; > | ^ > support.c: In function ‘get_file’: > support.c:2308:21: warning: passing argument 1 of ‘strcpy’ discards ‘const’ > qualifier from pointer target type [-Wdiscarded-qualifiers] > 2308 | strcpy( file->src_dir, src_dir); > | ~~~~^~~~~~~~~ > In file included from /usr/include/features.h:490, > from > /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, > from /usr/include/limits.h:26, > from /usr/lib/gcc/x86_64-linux-gnu/13/include/limits.h:205, > from /usr/lib/gcc/x86_64-linux-gnu/13/include/syslimits.h:7, > from /usr/lib/gcc/x86_64-linux-gnu/13/include/limits.h:34, > from configed.H:305: > /usr/include/x86_64-linux-gnu/bits/string_fortified.h:77:1: note: expected > ‘char * restrict’ but argument is of type ‘const char *’ > 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) > | ^~~~~ > expand.c: In function ‘replace’: > expand.c:713:21: warning: assignment to ‘char *’ from incompatible pointer > type ‘LOCATION *’ {aka ‘struct location *’} [-Wincompatible-pointer-types] > 713 | m_inf->args = m_inf->loc_args = NULL; /* Default args */ > | ^ > expand.c: In function ‘rescan’: > expand.c:1975:41: warning: assignment discards ‘const’ qualifier from pointer > target type [-Wdiscarded-qualifiers] > 1975 | mgc_cleared = remove_magics( > | ^ > system.c: In function ‘norm_path’: > system.c:2510:20: error: implicit declaration of function ‘readlink’ > [-Werror=implicit-function-declaration] > 2510 | if ((len = readlink( slbuf1, slbuf2, PATHMAX)) > 0) { > | ^~~~~~~~ > system.c: In function ‘do_once’: > system.c:4245:20: warning: assignment discards ‘const’ qualifier from pointer > target type [-Wdiscarded-qualifiers] > 4245 | once_end->name = fullname; > | ^ > system.c: In function ‘do_options’: > system.c:452:5: warning: ignoring return value of ‘getcwd’ declared with > attribute ‘warn_unused_result’ [-Wunused-result] > 452 | getcwd( cur_work_dir, PATHMAX); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > libtool: compile: gcc -DHAVE_CONFIG_H -I. -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 > main.c -o main.o >/dev/null 2>&1 > libtool: compile: gcc -DHAVE_CONFIG_H -I. -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 > mbchar.c -o mbchar.o >/dev/null 2>&1 > libtool: compile: gcc -DHAVE_CONFIG_H -I. -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 > directive.c -o directive.o >/dev/null 2>&1 > libtool: compile: gcc -DHAVE_CONFIG_H -I. -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 > eval.c -o eval.o >/dev/null 2>&1 > cc1: some warnings being treated as errors > make[4]: *** [Makefile:590: system.lo] Error 1 The full build log is available from: http://qa-logs.debian.net/2024/03/13/mcpp_2.7.2-5_unstable.log All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240313;users=lu...@debian.org or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240313&fusertaguser=lu...@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.