Your message dated Fri, 04 Oct 2024 21:23:46 +0000
with message-id <e1swpm6-002lny...@fasolo.debian.org>
and subject line Bug#1081053: fixed in mdk3 6.0-9
has caused the Debian Bug report #1081053,
regarding mdk3: FTBFS: mdk3.c:755:40: error: passing argument 2 of ‘getline’ 
from incompatible pointer type [-Wincompatible-pointer-types]
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1081053: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1081053
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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.

--- End Message ---
--- Begin Message ---
Source: mdk3
Source-Version: 6.0-9
Done: Sven Geuer <s...@debian.org>

We believe that the bug you reported is fixed in the latest version of
mdk3, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1081...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sven Geuer <s...@debian.org> (supplier of updated mdk3 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 04 Oct 2024 22:58:31 +0200
Source: mdk3
Architecture: source
Version: 6.0-9
Distribution: unstable
Urgency: medium
Maintainer: Debian Security Tools <team+pkg-secur...@tracker.debian.org>
Changed-By: Sven Geuer <s...@debian.org>
Closes: 1081053
Changes:
 mdk3 (6.0-9) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Samuel Henrique ]
   * Update upstream link to point to GitHub archive
 .
   [ Sven Geuer ]
   * d/p/*:
     - Add patch to fix FTBFS with gcc-14 (Closes: #1081053).
     - Add "Forwarded: not-needed" to fix_install.patch and
       makefile_dependency.patch
   * d/control: Bump Standards-Version to 4.7.0.
   * d/copyright: Update debian/* stanza.
   * d/u/metadata: Add upstream metadata file.
Checksums-Sha1:
 0ee3ca629484f24f7e7dd3d96d551b632a6cbe99 1898 mdk3_6.0-9.dsc
 86452d0b5bc6c1de8240af1d72162a081f465e6d 11572 mdk3_6.0-9.debian.tar.xz
 602820856a26f4b4f7d8e0fade1fefd18266389a 5772 mdk3_6.0-9_amd64.buildinfo
Checksums-Sha256:
 7bb83af7c0623f4a0826956e676fe08e68afda70bc60df65b4aea443cddba3a3 1898 
mdk3_6.0-9.dsc
 6b6dc2fae2b08bae787e8a1d568c11ee4a4561fb5ac751735455e4f2e4ef2386 11572 
mdk3_6.0-9.debian.tar.xz
 2ab7c16c93d5fa598cf03985b1e706ac68065367be61a725165f6642a39d7a31 5772 
mdk3_6.0-9_amd64.buildinfo
Files:
 806ce2528b2f53743f1273cc08b3c73d 1898 net optional mdk3_6.0-9.dsc
 9637c74f02c820d39ed8710093a7da4a 11572 net optional mdk3_6.0-9.debian.tar.xz
 cc68d7a4e88fa1e916bc0dcca398bc4f 5772 net optional mdk3_6.0-9_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJDBAEBCgAtFiEEPfXoqkP8n9/QhvGVrfUO2vit1YUFAmcAV1cPHHNnZUBkZWJp
YW4ub3JnAAoJEK31Dtr4rdWFIlsQAIwKM72UzMlKOU77PA2IxsfHGSRxmSFbUpxB
YuRPVjaKU64OLCUFJ7il8psEohj038zs9xPXv3sOgZL4bLaDis5rfqXDmTnMvbam
vl5bfO3kzcQ6BcxygAClixt9quQ5V/HJUviruHinU5WJ5p9Kk3KERFYg/NZEiOtg
moJzUUWcweLeXe7UvZX+ViX5QItrureqP6aRJq8l+TwuC5JZwkVjXASMkT7lZE3K
vlnudYhR/s5DGKYDDharV530e2WT/mUpusuJR6MlXNvdrzRSoW6iWo//r5FTkRQW
rOzaH0jfsAsIUIW6h0T8EhK8Y7xTKVetSvnB6TZ51HV9WrwLQgLqmSh4F7T/wX17
v0wABdMGQtv6b8St2ecovoX1C8L4UhIhLbxdq7Iz5iMyOU7/mozFrTfxQDisf7pc
pyVlh4/mOonmy06KMvUvlmDyKvKQW+TkDKNbO0fWl8K2+GIge96rW3l4TZH7jG3b
hvIU6RZbzZyZrwuJ7waqROJVuzngXBiOx9IIyA6xKfwcXHo9cmGSjaZ/1fhe8d+l
LRNl3f88pqykxRAp35vz8LAjUK28oCjrLVNIPwJJtKsjI/nw+eOjEJ4nVppKnSzq
wlFauuOk8Ua0nSaWXRRq30ikJwbysfxoIHasOv/4+79KuNEpU72YnFIapelKlOme
oEmhftoY
=we14
-----END PGP SIGNATURE-----

Attachment: pgp7xHldnkgOA.pgp
Description: PGP signature


--- End Message ---

Reply via email to