Package: src:mdk3
Version: 6.0-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
   dh_auto_configure
   dh_auto_build
        make -j2 "INSTALL=install --strip-program=true"
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make -C osdep
make[2]: Entering directory '/<<PKGBUILDDIR>>/osdep'
Building for Linux
make[3]: Entering directory '/<<PKGBUILDDIR>>/osdep'
gcc -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6  -fPIC -I..  -D_FILE_OFFSET_BITS=64 
-D_REVISION=mdk3-v6  -fPIC -I..  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o osdep.o osdep.c
gcc -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6  -fPIC -I..  -D_FILE_OFFSET_BITS=64 
-D_REVISION=mdk3-v6  -fPIC -I..  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o common.o common.c
gcc -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6  -fPIC -I..  -D_FILE_OFFSET_BITS=64 
-D_REVISION=mdk3-v6  -fPIC -I..  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o network.o network.c
gcc -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6  -fPIC -I..  -D_FILE_OFFSET_BITS=64 
-D_REVISION=mdk3-v6  -fPIC -I..  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o linux.o linux.c
gcc -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6  -fPIC -I..  -D_FILE_OFFSET_BITS=64 
-D_REVISION=mdk3-v6  -fPIC -I..  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o linux_tap.o 
linux_tap.c
gcc -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6  -fPIC -I..  -D_FILE_OFFSET_BITS=64 
-D_REVISION=mdk3-v6  -fPIC -I..  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o 
radiotap/radiotap-parser.o radiotap/radiotap-parser.c
linux.c: In function ‘do_linux_open.constprop’:
linux.c:1679:37: warning: ‘%s’ directive output may be truncated writing up to 
255 bytes into a region of size 113 [-Wformat-truncation=]
 1679 |                     "/sys/class/net/%s/device/rtap_iface", 
this_iface->d_name);
      |                                     ^~
In file included from /usr/include/stdio.h:970,
                 from linux.c:34:
In function ‘snprintf’,
    inlined from ‘do_linux_open.constprop’ at linux.c:1678:17:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:68:10: note: 
‘__builtin___snprintf_chk’ output between 34 and 289 bytes into a destination 
of size 128
   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   69 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   70 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
linux.c: In function ‘get_battery_state’:
linux.c:2019:13: warning: argument 1 null where non-null expected [-Wnonnull]
 2019 |             closedir(batteries);
      |             ^~~~~~~~~~~~~~~~~~~
In file included from linux.c:40:
/usr/include/dirent.h:134:12: note: in a call to function ‘closedir’ declared 
‘nonnull’
  134 | extern int closedir (DIR *__dirp) __nonnull ((1));
      |            ^~~~~~~~
linux.c:2027:78: warning: ‘%s’ directive output may be truncated writing up to 
255 bytes into a region of size 109 [-Wformat-truncation=]
 2027 |             snprintf(battery_info, sizeof(battery_info), 
"/proc/acpi/battery/%s/info", this_battery->d_name);
      |                                                                         
     ^~
In function ‘snprintf’,
    inlined from ‘get_battery_state’ at linux.c:2027:13:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:68:10: note: 
‘__builtin___snprintf_chk’ output between 25 and 280 bytes into a destination 
of size 128
   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   69 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   70 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
linux.c: In function ‘get_battery_state’:
linux.c:2039:37: warning: ‘%s’ directive output may be truncated writing up to 
255 bytes into a region of size 109 [-Wformat-truncation=]
 2039 |                 "/proc/acpi/battery/%s/state", this_battery->d_name);
      |                                     ^~
In function ‘snprintf’,
    inlined from ‘get_battery_state’ at linux.c:2038:13:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:68:10: note: 
‘__builtin___snprintf_chk’ output between 26 and 281 bytes into a destination 
of size 128
   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   69 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   70 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
linux.c: In function ‘get_battery_state’:
linux.c:1998:40: warning: ‘%s’ directive output may be truncated writing up to 
255 bytes into a region of size 106 [-Wformat-truncation=]
 1998 |                 "/proc/acpi/ac_adapter/%s/state", this_adapter->d_name);
      |                                        ^~
In function ‘snprintf’,
    inlined from ‘get_battery_state’ at linux.c:1997:13:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:68:10: note: 
‘__builtin___snprintf_chk’ output between 29 and 284 bytes into a destination 
of size 128
   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   69 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   70 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
ar cru libosdep.a  osdep.o common.o network.o linux.o linux_tap.o 
radiotap/radiotap-parser.o common.o
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libosdep.a
touch .os.Linux
make[3]: Leaving directory '/<<PKGBUILDDIR>>/osdep'
make[2]: Leaving directory '/<<PKGBUILDDIR>>/osdep'
cc -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 mdk3.c osdep/libosdep.a -o mdk3 -Wl,-z,relro -Wl,-z,now -lpthread 
-Losdep -losdep
mdk3.c: In function ‘read_line_from_file’:
mdk3.c:755:40: error: passing argument 2 of ‘getline’ from incompatible pointer 
type [-Wincompatible-pointer-types]
  755 |     bytes_read = getline(&ssid_string, &size, ssid_file_fp);
      |                                        ^~~~~
      |                                        |
      |                                        unsigned int *
In file included from /usr/include/stdio.h:966,
                 from mdk3.c:28:
/usr/include/x86_64-linux-gnu/bits/stdio.h:118:36: note: expected ‘size_t *’ 
{aka ‘long unsigned int *’} but argument is of type ‘unsigned int *’
  118 | getline (char **__lineptr, size_t *__n, FILE *__stream)
      |                            ~~~~~~~~^~~
mdk3.c:760:44: error: passing argument 2 of ‘getline’ from incompatible pointer 
type [-Wincompatible-pointer-types]
  760 |         bytes_read = getline(&ssid_string, &size, ssid_file_fp);
      |                                            ^~~~~
      |                                            |
      |                                            unsigned int *
/usr/include/x86_64-linux-gnu/bits/stdio.h:118:36: note: expected ‘size_t *’ 
{aka ‘long unsigned int *’} but argument is of type ‘unsigned int *’
  118 | getline (char **__lineptr, size_t *__n, FILE *__stream)
      |                            ~~~~~~~~^~~
mdk3.c: In function ‘bruteforce_ssid’:
mdk3.c:809:39: warning: cast from pointer to integer of different size 
[-Wpointer-to-int-cast]
  809 |         if (brute_ssid[ssid_len-1] == (int) NULL) {
      |                                       ^
mdk3.c:828:39: warning: cast from pointer to integer of different size 
[-Wpointer-to-int-cast]
  828 |         if (brute_ssid[ssid_len-1] == (int) NULL) {
      |                                       ^
mdk3.c:847:39: warning: cast from pointer to integer of different size 
[-Wpointer-to-int-cast]
  847 |         if (brute_ssid[ssid_len-1] == (int) NULL) {
      |                                       ^
mdk3.c:866:39: warning: cast from pointer to integer of different size 
[-Wpointer-to-int-cast]
  866 |         if (brute_ssid[ssid_len-1] == (int) NULL) {
      |                                       ^
mdk3.c:888:39: warning: cast from pointer to integer of different size 
[-Wpointer-to-int-cast]
  888 |         if (brute_ssid[ssid_len-1] == (int) NULL) {
      |                                       ^
mdk3.c:913:39: warning: cast from pointer to integer of different size 
[-Wpointer-to-int-cast]
  913 |         if (brute_ssid[ssid_len-1] == (int) NULL) {
      |                                       ^
mdk3.c: In function ‘main’:
mdk3.c:3931:5: warning: ignoring return value of ‘setuid’ declared with 
attribute ‘warn_unused_result’ [-Wunused-result]
 3931 |     setuid( getuid() );
      |     ^~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:21: mdk3] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 "INSTALL=install --strip-program=true" returned 
exit code 2
make: *** [debian/rules:6: binary] Error 25
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 via email to