Bug#1066283: at-spi2-core: FTBFS: ../tests/at-spi2-atk/test-application.c:123:46: error: implicit declaration of function ‘getpid’ [-Werror=implicit-function-declaration]

Lucas Nussbaum lucas at debian.org
Wed Mar 13 11:47:54 GMT 2024


Source: at-spi2-core
Version: 2.51.90-2
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):
> cc -Itests/at-spi2-atk/app-test.p -Itests/at-spi2-atk -I../tests/at-spi2-atk -I. -I.. -Iatk -I../atk -Itests/at-spi2-atk/dummyatk -I../tests/at-spi2-atk/dummyatk -Iatk-adaptor -I../atk-adaptor -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c99 -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -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 '-DTESTS_BUILD_DIR="/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/tests/at-spi2-atk"' '-DTESTS_SRC_DIR="/<<PKGBUILDDIR>>/tests/at-spi2-atk"' '-DTESTS_DATA_DIR="/<<PKGBUILDDIR>>/tests/at-spi2-atk/data"' -MD -MQ tests/at-spi2-atk/app-test.p/test-application.c.o -MF tests/at-spi2-atk/app-test.p/test-application.c.o.d -o tests/at-spi2-atk/app-test.p/test-application.c.o -c ../tests/at-spi2-atk/test-application.c
> ../tests/at-spi2-atk/test-application.c: In function ‘main’:
> ../tests/at-spi2-atk/test-application.c:123:46: error: implicit declaration of function ‘getpid’ [-Werror=implicit-function-declaration]
>   123 |   g_print ("test application %d exiting!\n", getpid ());
>       |                                              ^~~~~~
> cc1: some warnings being treated as errors
> [196/293] /usr/bin/msgfmt -o po/bn/LC_MESSAGES/at-spi2-core.mo ../po/bn.po
> [197/293] /usr/bin/msgfmt -o po/bn_IN/LC_MESSAGES/at-spi2-core.mo ../po/bn_IN.po
> [198/293] cc -Itests/at-spi2-atk/atk-test.p -Itests/at-spi2-atk -I../tests/at-spi2-atk -I. -I.. -Itests/at-spi2-atk/dummyatk -I../tests/at-spi2-atk/dummyatk -Iatk -I../atk -Iatspi -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c99 -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -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 '-DTESTS_BUILD_DIR="/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/tests/at-spi2-atk"' '-DTESTS_SRC_DIR="/<<PKGBUILDDIR>>/tests/at-spi2-atk"' '-DTESTS_DATA_DIR="/<<PKGBUILDDIR>>/tests/at-spi2-atk/data"' -MD -MQ tests/at-spi2-atk/atk-test.p/atk_test_value.c.o -MF tests/at-spi2-atk/atk-test.p/atk_test_value.c.o.d -o tests/at-spi2-atk/atk-test.p/atk_test_value.c.o -c ../tests/at-spi2-atk/atk_test_value.c
> [199/293] cc -Itests/at-spi2-atk/atk-test.p -Itests/at-spi2-atk -I../tests/at-spi2-atk -I. -I.. -Itests/at-spi2-atk/dummyatk -I../tests/at-spi2-atk/dummyatk -Iatk -I../atk -Iatspi -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c99 -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -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 '-DTESTS_BUILD_DIR="/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/tests/at-spi2-atk"' '-DTESTS_SRC_DIR="/<<PKGBUILDDIR>>/tests/at-spi2-atk"' '-DTESTS_DATA_DIR="/<<PKGBUILDDIR>>/tests/at-spi2-atk/data"' -MD -MQ tests/at-spi2-atk/atk-test.p/atk_test_table.c.o -MF tests/at-spi2-atk/atk-test.p/atk_test_table.c.o.d -o tests/at-spi2-atk/atk-test.p/atk_test_table.c.o -c ../tests/at-spi2-atk/atk_test_table.c
> [200/293] cc -Itests/at-spi2-atk/atk-test.p -Itests/at-spi2-atk -I../tests/at-spi2-atk -I. -I.. -Itests/at-spi2-atk/dummyatk -I../tests/at-spi2-atk/dummyatk -Iatk -I../atk -Iatspi -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c99 -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -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 '-DTESTS_BUILD_DIR="/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/tests/at-spi2-atk"' '-DTESTS_SRC_DIR="/<<PKGBUILDDIR>>/tests/at-spi2-atk"' '-DTESTS_DATA_DIR="/<<PKGBUILDDIR>>/tests/at-spi2-atk/data"' -MD -MQ tests/at-spi2-atk/atk-test.p/atk_test_text.c.o -MF tests/at-spi2-atk/atk-test.p/atk_test_text.c.o.d -o tests/at-spi2-atk/atk-test.p/atk_test_text.c.o -c ../tests/at-spi2-atk/atk_test_text.c
> [201/293] /usr/bin/gi-docgen generate --quiet --no-namespace-dir --fatal-warnings --config=doc/libatspi.toml --output-dir=doc/libatspi --content-dir=/<<PKGBUILDDIR>>/doc atspi/Atspi-2.0.gir
> [202/293] /usr/bin/gi-docgen generate --quiet --no-namespace-dir --fatal-warnings --config=doc/atk.toml --output-dir=doc/atk --content-dir=/<<PKGBUILDDIR>>/doc atk/Atk-1.0.gir
> ninja: build stopped: subcommand failed.
> dh_auto_build: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j8 -v returned exit code 1
> make: *** [debian/rules:13: binary] Error 25


The full build log is available from:
http://qa-logs.debian.net/2024/03/13/at-spi2-core_2.51.90-2_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-a11y-devel mailing list