Bug#1081108: xcb: FTBFS: xcb.c:1353:1: error: return type defaults to ‘int’ [-Wimplicit-int]
Package: src:xcb
Version: 2.4-8
Severity: serious
Tags: ftbfs
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
debian/rules binary
dh binary
dh_update_autotools_config
dh_autoreconf
debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
xmkmf -a
imake -DUseInstalled -I/usr/lib/X11/config
make Makefiles
make[2]: Entering directory '/<<PKGBUILDDIR>>'
make[2]: Nothing to be done for 'Makefiles'.
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make includes
make[2]: Entering directory '/<<PKGBUILDDIR>>'
make[2]: Nothing to be done for 'includes'.
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make depend
make[2]: Entering directory '/<<PKGBUILDDIR>>'
gccmakedep -- -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DATHENA -- xcb.c
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
# CCOPTIONS is used to pass CFLAGS, CPPFLAGS when compiling .c files,
# EXTRA_LOAD_FLAGS when linking the program.
dh_auto_build -- \
CCOPTIONS="-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIE -Wdate-time -D_FORTIFY_SOURCE=2" \
EXTRA_LOAD_FLAGS="-I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIE -Wl,-z,relro -Wl,-z,now -fPIE -pie"
make -j2 "INSTALL=install --strip-program=true" "CCOPTIONS=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIE -Wdate-time -D_FORTIFY_SOURCE=2" "EXTRA_LOAD_FLAGS=-I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIE -Wl,-z,relro -Wl,-z,now -fPIE -pie"
make[2]: Entering directory '/<<PKGBUILDDIR>>'
gcc -g -O2 -fno-strict-aliasing -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIE -Wdate-time -D_FORTIFY_SOURCE=2 -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DATHENA -Wdate-time -D_FORTIFY_SOURCE=2 -c -o xcb.o xcb.c
In file included from /usr/include/ctype.h:25,
from xcb.c:36:
/usr/include/features.h:197:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
197 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
xcb.c:1353:1: error: return type defaults to ‘int’ [-Wimplicit-int]
1353 | main (argc, argv)
| ^~~~
make[2]: *** [<builtin>: xcb.o] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 "INSTALL=install --strip-program=true" "CCOPTIONS=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIE -Wdate-time -D_FORTIFY_SOURCE=2" "EXTRA_LOAD_FLAGS=-I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIE -Wl,-z,relro -Wl,-z,now -fPIE -pie" returned exit code 2
make[1]: *** [debian/rules:13: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:24: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202409/
About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large from AWS, using sbuild and a
reduced chroot with only build-essential packages.
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.
Thanks.
Reply to: