[Debian-on-mobile-maintainers] Bug#1070812: eg25-manager: FTBFS with libgpiod/2.1
Gavin Lai (=?UTF-8?Q?=E8=B3=B4=E5=BB=BA=E5=AE=87?=)
gavin09 at gmail.com
Thu May 9 17:44:27 BST 2024
Source: eg25-manager
Version: 0.4.6-3
Severity: important
Dear Maintainer,
I am planning to have a transition for libgpiod.
https://release.debian.org/transitions/html/auto-libgpiod.html
Many APIs were changed in this transition.
I tested libgpiod with eg25-manager 0.4.6-3.
As a result, it seems FTBFS. Please have a check.
Feel free to let me know if any information is needed.
Thanks.
=======
Found ninja-1.11.1 at /usr/bin/ninja
dh_auto_build
cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j2 -v
[1/20] /usr/bin/meson --internal exe --capture doc/eg25-manager.8 -- /usr/bin/sh -c '/usr/bin/scdoc < doc/eg25-manager.8.preprocessed'
[2/20] /usr/bin/meson --internal exe --capture doc/eg25-manager.5 -- /usr/bin/sh -c '/usr/bin/scdoc < doc/eg25-manager.5.preprocessed'
[3/20] /usr/bin/gdbus-codegen --c-generate-autocleanup all --interface-prefix org.ofono. --c-namespace GDBO --body --output src/libgdbofono/gdbo-manager.c ../src/libgdbofono/manager.xml
[4/20] /usr/bin/gdbus-codegen --c-generate-autocleanup all --interface-prefix org.ofono. --c-namespace GDBO --header --output src/libgdbofono/gdbo-manager.h ../src/libgdbofono/manager.xml
[5/20] /usr/bin/gdbus-codegen --c-generate-autocleanup all --interface-prefix org.ofono. --c-namespace GDBO --header --output src/libgdbofono/gdbo-modem.h ../src/libgdbofono/modem.xml
[6/20] /usr/bin/gdbus-codegen --c-generate-autocleanup all --interface-prefix org.ofono. --c-namespace GDBO --body --output src/libgdbofono/gdbo-modem.c ../src/libgdbofono/modem.xml
[7/20] cc -Isrc/libgdbofono/libgdbofono.a.p -Isrc/libgdbofono -I../src/libgdbofono -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu11 '-DEG25_CONFDIR="/etc/eg25-manager"' '-DEG25_DATADIR="/usr/share/eg25-manager"' '-DEG25_VERSION="0.4.6"' -DHAVE_MMGLIB=1 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/eg25-manager-0.4.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ src/libgdbofono/libgdbofono.a.p/meson-generated_.._gdbo-manager.c.o -MF src/libgdbofono/libgdbofono.a.p/meson-generated_.._gdbo-manager.c.o.d -o src/libgdbofono/libgdbofono.a.p/meson-generated_.._gdbo-manager.c.o -c src/libgdbofono/gdbo-manager.c
[8/20] cc -Isrc/eg25-manager.p -Isrc -I../src -Isrc/libgdbofono -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gudev-1.0 -I/usr/include/libusb-1.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmm-glib -I/usr/include/ModemManager -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu11 '-DEG25_CONFDIR="/etc/eg25-manager"' '-DEG25_DATADIR="/usr/share/eg25-manager"' '-DEG25_VERSION="0.4.6"' -DHAVE_MMGLIB=1 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/eg25-manager-0.4.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -MD -MQ src/eg25-manager.p/at.c.o -MF src/eg25-manager.p/at.c.o.d -o src/eg25-manager.p/at.c.o -c ../src/at.c
[9/20] cc -Isrc/libgdbofono/libgdbofono.a.p -Isrc/libgdbofono -I../src/libgdbofono -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu11 '-DEG25_CONFDIR="/etc/eg25-manager"' '-DEG25_DATADIR="/usr/share/eg25-manager"' '-DEG25_VERSION="0.4.6"' -DHAVE_MMGLIB=1 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/eg25-manager-0.4.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ src/libgdbofono/libgdbofono.a.p/meson-generated_.._gdbo-modem.c.o -MF src/libgdbofono/libgdbofono.a.p/meson-generated_.._gdbo-modem.c.o.d -o src/libgdbofono/libgdbofono.a.p/meson-generated_.._gdbo-modem.c.o -c src/libgdbofono/gdbo-modem.c
[10/20] rm -f src/libgdbofono/libgdbofono.a && gcc-ar csrDT src/libgdbofono/libgdbofono.a src/libgdbofono/libgdbofono.a.p/meson-generated_.._gdbo-manager.c.o src/libgdbofono/libgdbofono.a.p/meson-generated_.._gdbo-modem.c.o
[11/20] cc -Isrc/eg25-manager.p -Isrc -I../src -Isrc/libgdbofono -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gudev-1.0 -I/usr/include/libusb-1.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmm-glib -I/usr/include/ModemManager -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu11 '-DEG25_CONFDIR="/etc/eg25-manager"' '-DEG25_DATADIR="/usr/share/eg25-manager"' '-DEG25_VERSION="0.4.6"' -DHAVE_MMGLIB=1 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/eg25-manager-0.4.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -MD -MQ src/eg25-manager.p/config.c.o -MF src/eg25-manager.p/config.c.o.d -o src/eg25-manager.p/config.c.o -c ../src/config.c
[12/20] cc -Isrc/eg25-manager.p -Isrc -I../src -Isrc/libgdbofono -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gudev-1.0 -I/usr/include/libusb-1.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmm-glib -I/usr/include/ModemManager -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu11 '-DEG25_CONFDIR="/etc/eg25-manager"' '-DEG25_DATADIR="/usr/share/eg25-manager"' '-DEG25_VERSION="0.4.6"' -DHAVE_MMGLIB=1 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/eg25-manager-0.4.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -MD -MQ src/eg25-manager.p/manager.c.o -MF src/eg25-manager.p/manager.c.o.d -o src/eg25-manager.p/manager.c.o -c ../src/manager.c
[13/20] cc -Isrc/eg25-manager.p -Isrc -I../src -Isrc/libgdbofono -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gudev-1.0 -I/usr/include/libusb-1.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmm-glib -I/usr/include/ModemManager -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu11 '-DEG25_CONFDIR="/etc/eg25-manager"' '-DEG25_DATADIR="/usr/share/eg25-manager"' '-DEG25_VERSION="0.4.6"' -DHAVE_MMGLIB=1 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/eg25-manager-0.4.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -MD -MQ src/eg25-manager.p/gpio.c.o -MF src/eg25-manager.p/gpio.c.o.d -o src/eg25-manager.p/gpio.c.o -c ../src/gpio.c
FAILED: src/eg25-manager.p/gpio.c.o
cc -Isrc/eg25-manager.p -Isrc -I../src -Isrc/libgdbofono -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gudev-1.0 -I/usr/include/libusb-1.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmm-glib -I/usr/include/ModemManager -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu11 '-DEG25_CONFDIR="/etc/eg25-manager"' '-DEG25_DATADIR="/usr/share/eg25-manager"' '-DEG25_VERSION="0.4.6"' -DHAVE_MMGLIB=1 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/eg25-manager-0.4.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -MD -MQ src/eg25-manager.p/gpio.c.o -MF src/eg25-manager.p/gpio.c.o.d -o src/eg25-manager.p/gpio.c.o -c ../src/gpio.c
../src/gpio.c: In function ‘gpio_sequence_poweron’:
../src/gpio.c:45:5: error: implicit declaration of function ‘gpiod_line_set_value’; did you mean ‘g_key_file_set_value’? [-Werror=implicit-function-declaration]
45 | gpiod_line_set_value(manager->gpio_out[GPIO_OUT_PWRKEY], 1);
| ^~~~~~~~~~~~~~~~~~~~
| g_key_file_set_value
../src/gpio.c: In function ‘gpio_sequence_wake’:
../src/gpio.c:84:9: error: implicit declaration of function ‘gpiod_line_get_value’; did you mean ‘g_key_file_get_value’? [-Werror=implicit-function-declaration]
84 | if (gpiod_line_get_value(manager->gpio_out[GPIO_OUT_DTR])) {
| ^~~~~~~~~~~~~~~~~~~~
| g_key_file_get_value
../src/gpio.c: In function ‘gpio_get_output_line’:
../src/gpio.c:108:17: error: implicit declaration of function ‘gpiod_chip_get_line’; did you mean ‘gpiod_chip_get_info’? [-Werror=implicit-function-declaration]
108 | gpio_line = gpiod_chip_get_line(manager->gpiochip[chip], line);
| ^~~~~~~~~~~~~~~~~~~
| gpiod_chip_get_info
../src/gpio.c:108:15: warning: assignment to ‘struct gpiod_line *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
108 | gpio_line = gpiod_chip_get_line(manager->gpiochip[chip], line);
| ^
../src/gpio.c:112:9: error: implicit declaration of function ‘gpiod_line_request_output’; did you mean ‘gpiod_line_request_get_fd’? [-Werror=implicit-function-declaration]
112 | if (gpiod_line_request_output(gpio_line, "eg25manager", 0) < 0) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| gpiod_line_request_get_fd
../src/gpio.c:113:9: error: implicit declaration of function ‘gpiod_line_release’; did you mean ‘gpiod_line_request_release’? [-Werror=implicit-function-declaration]
113 | gpiod_line_release(gpio_line);
| ^~~~~~~~~~~~~~~~~~
| gpiod_line_request_release
../src/gpio.c: In function ‘gpio_get_input_line’:
../src/gpio.c:124:15: warning: assignment to ‘struct gpiod_line *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
124 | gpio_line = gpiod_chip_get_line(manager->gpiochip[chip], line);
| ^
../src/gpio.c:128:9: error: implicit declaration of function ‘gpiod_line_request_input’; did you mean ‘gpiod_line_request_get_fd’? [-Werror=implicit-function-declaration]
128 | if (gpiod_line_request_input(gpio_line, "eg25manager") < 0) {
| ^~~~~~~~~~~~~~~~~~~~~~~~
| gpiod_line_request_get_fd
../src/gpio.c: In function ‘gpio_init’:
../src/gpio.c:172:36: error: implicit declaration of function ‘gpiod_chip_open_by_label’; did you mean ‘gpiod_chip_info_get_label’? [-Werror=implicit-function-declaration]
172 | manager->gpiochip[i] = gpiod_chip_open_by_label(data.u.s);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| gpiod_chip_info_get_label
../src/gpio.c:172:34: warning: assignment to ‘struct gpiod_chip *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
172 | manager->gpiochip[i] = gpiod_chip_open_by_label(data.u.s);
| ^
../src/gpio.c:188:56: error: implicit declaration of function ‘gpiod_chip_num_lines’; did you mean ‘gpiod_chip_request_lines’? [-Werror=implicit-function-declaration]
188 | if (!line.ok || line.u.i < 0 || line.u.i > gpiod_chip_num_lines(manager->gpiochip[chip.u.i]))
| ^~~~~~~~~~~~~~~~~~~~
| gpiod_chip_request_lines
../src/gpio.c:223:30: warning: assignment to ‘struct gpiod_chip *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
223 | manager->gpiochip[0] = gpiod_chip_open_by_label(GPIO_CHIP1_LABEL);
| ^
../src/gpio.c:227:30: warning: assignment to ‘struct gpiod_chip *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
227 | manager->gpiochip[1] = gpiod_chip_open_by_label(GPIO_CHIP2_LABEL);
| ^
cc1: some warnings being treated as errors
[14/20] cc -Isrc/eg25-manager.p -Isrc -I../src -Isrc/libgdbofono -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gudev-1.0 -I/usr/include/libusb-1.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmm-glib -I/usr/include/ModemManager -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu11 '-DEG25_CONFDIR="/etc/eg25-manager"' '-DEG25_DATADIR="/usr/share/eg25-manager"' '-DEG25_VERSION="0.4.6"' -DHAVE_MMGLIB=1 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/eg25-manager-0.4.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -MD -MQ src/eg25-manager.p/ofono-iface.c.o -MF src/eg25-manager.p/ofono-iface.c.o.d -o src/eg25-manager.p/ofono-iface.c.o -c ../src/ofono-iface.c
ninja: build stopped: subcommand failed.
dh_auto_build: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j2 -v returned exit code 1
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
I: copying local configuration
E: Failed autobuilding of package
I: unmounting dev/ptmx filesystem
I: unmounting dev/pts filesystem
I: unmounting dev/shm filesystem
I: unmounting proc filesystem
I: unmounting sys filesystem
I: cleaning the build env
I: removing directory /var/cache/pbuilder/build/3220922 and its subdirectories
=======
More information about the Debian-on-mobile-maintainers
mailing list