Your message dated Thu, 11 Sep 2025 11:24:22 +0000
with message-id <[email protected]>
and subject line Bug#1113802: fixed in libnss-mysql 1.6.1-5
has caused the Debian Bug report #1113802,
regarding libnss-mysql: FTBFS on GCC-15
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 [email protected]
immediately.)


-- 
1113802: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1113802
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: libnss-mysql
Version: 1.6.1-3
Severity: serious
Tags: ftbfs patch
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: [email protected]

libnss-mysql ftbfs on GCC 15. Setting '-std=gnu17' fixes the issue per the 
patch attached.

Failure log:

[...]
nss_main.c: In function '_nss_mysql_atfork_prepare':
nss_main.c:123:11: error: assignment to 'int (*)(void)' from incompatible 
pointer type 'int (*)(int)' [-Wincompatible-pointer-types]
  123 |   trylock = (int (*)(int))dlsym (RTLD_DEFAULT, "pthread_mutex_trylock");
      |           ^
nss_main.c:125:10: error: too many arguments to function 'trylock'; expected 0, 
have 1
  125 |     if ((*trylock) (&lock) == 0)
      |         ~^~~~~~~~~  ~~~~~
nss_main.c: In function '_nss_mysql_pthread_once_init':
nss_main.c:174:18: error: assignment to 'int (*)(void)' from incompatible 
pointer type 'int (*)(int)' [-Wincompatible-pointer-types]
  174 |   pthread_atfork = (int (*)(int))dlsym (RTLD_DEFAULT, "pthread_atfork");
      |                  ^
nss_main.c:176:6: error: too many arguments to function 'pthread_atfork'; 
expected 0, have 3
  176 |     (*pthread_atfork) (_nss_mysql_atfork_prepare, 
_nss_mysql_atfork_parent,
      |     ~^~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~
nss_main.c: In function '_nss_mysql_init':
nss_main.c:228:16: error: assignment to 'int (*)(void)' from incompatible 
pointer type 'int (*)(int)' [-Wincompatible-pointer-types]
  228 |   pthread_once = (int (*)(int))dlsym (RTLD_DEFAULT, "pthread_once");
      |                ^
nss_main.c:230:6: error: too many arguments to function 'pthread_once'; 
expected 0, have 2
  230 |     (*pthread_once) (&_nss_mysql_once_control, 
_nss_mysql_pthread_once_init);
      |     ~^~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~
mysql.c: In function '_nss_mysql_connect_sql':
mysql.c:221:7: warning: the comparison will always evaluate as 'true' for the 
address of 'port' will never be NULL [-Waddress]
  221 |   if (server->port)
      |       ^~~~~~
In file included from mysql.c:24:
nss_mysql.h:212:8: note: 'port' declared here
  212 |   char port[MAX_VAL_SIZE];      /* SQL port to connect to */
      |        ^~~~
make[3]: *** [Makefile:500: nss_main.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
nss_config.c: In function '_nss_mysql_load_config_file':
nss_config.c:85:11: warning: 'strncpy' output may be truncated copying 128 
bytes from a string of length 1023 [-Wstringop-truncation]
   85 |           strncpy (key, cur, key_size);
      |           ^
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:438: all-recursive] Error 1
>From ed509ca4ef0db29b281c2b7ac8c8fb47a97fe2d9 Mon Sep 17 00:00:00 2001
From: Mateus Rodrigues de Morais <[email protected]>
Date: Tue, 2 Sep 2025 17:10:24 -0300
Subject: [PATCH] d/rules: set std to gnu17

---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 8ce9dd3..277224c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@
 
 # extra hardening and stuff
 export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow qa=+bug
-export DEB_CFLAGS_MAINT_APPEND = -Wall
+export DEB_CFLAGS_MAINT_APPEND = -Wall -std=gnu17
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
-- 
2.48.1


--- End Message ---
--- Begin Message ---
Source: libnss-mysql
Source-Version: 1.6.1-5
Done: Simon Josefsson <[email protected]>

We believe that the bug you reported is fixed in the latest version of
libnss-mysql, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Simon Josefsson <[email protected]> (supplier of updated libnss-mysql 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 [email protected])


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

Format: 1.8
Date: Thu, 11 Sep 2025 12:51:27 +0200
Source: libnss-mysql
Architecture: source
Version: 1.6.1-5
Distribution: unstable
Urgency: medium
Maintainer: Luke Yasuda <[email protected]>
Changed-By: Simon Josefsson <[email protected]>
Closes: 1113802
Changes:
 libnss-mysql (1.6.1-5) unstable; urgency=medium
 .
   * Upgrade watch to v5.
   * Run wrap-and-sort -sabkt.
 .
 libnss-mysql (1.6.1-4) unstable; urgency=medium
 .
   [ Luke Yasuda ]
   * d/control: change my name
 .
   [ Mateus Rodrigues de Morais ]
   * d/rules: set std to gnu17 to fix FTBFS with gcc-15 (Closes: #1113802)
Checksums-Sha1:
 490381c7710122378114e8937718c6c946b2fd47 2194 libnss-mysql_1.6.1-5.dsc
 4d77cb0f028db28f6834b917d9f69080a6bb632f 12636 
libnss-mysql_1.6.1-5.debian.tar.xz
 a09ef12cfef19ddccd9295d0e24c104d6508279e 132056 libnss-mysql_1.6.1-5.git.tar.xz
 3f3df9cedfb9516d188f9642da565e877ee22126 18225 
libnss-mysql_1.6.1-5_source.buildinfo
Checksums-Sha256:
 6d9c7d6a66a9243f5a9688459ee7a9b944540d3ac107d5fdca8e1aff16a88cfb 2194 
libnss-mysql_1.6.1-5.dsc
 a95337d508442c948271ba465b3e90bc186bd4f241aa23eb18c32388b706b9cf 12636 
libnss-mysql_1.6.1-5.debian.tar.xz
 60766b4ff87167b0739b7c77ec63b670c3db36ae21857e14f2780d8477709b01 132056 
libnss-mysql_1.6.1-5.git.tar.xz
 0a14e721cd54d439b98ed80efcbc460f43035fd43c0a96fccc208403e1ddcb16 18225 
libnss-mysql_1.6.1-5_source.buildinfo
Files:
 1e390efce9e3cf1fe620adf09172a2ba 2194 admin optional libnss-mysql_1.6.1-5.dsc
 e13b561d9c35c864105ca5efde59bc63 12636 admin optional 
libnss-mysql_1.6.1-5.debian.tar.xz
 95e39bef70a5bc82dcf52ffc27ba25d2 132056 admin optional 
libnss-mysql_1.6.1-5.git.tar.xz
 ee948e96d5d3c4d4c3136099f609e362 18225 admin optional 
libnss-mysql_1.6.1-5_source.buildinfo
Git-Tag-Info: tag=97f00d14051e309f1a3fd87a5a9ba99ce1ddf5ff 
fp=a3cc9c870b9d310abad4cf2f51722b08fe4745a2
Git-Tag-Tagger: Simon Josefsson <[email protected]>

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

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmjCqpQACgkQYG0ITkaD
wHl+kw//Vdqj9jkWHCpH2x+2V7DOq2IASy1cvyd/32JG19fHxueMYDCAzXt9Du+i
tk9L/5QtXRLSksfpGhU94bCIMvJhn3gf+3e+gsAy3pWUcfbTOC1qf9ylqh5P/nq+
zQmxhbSEKqOGKo8HZFuRBJilh9KVIwler79LHAtIcsSGB+2j2DyRkVUo0WhAPyOa
7nl7Di5m+cFQT/yVnh6dmwPHNPCs/ygVAv2rxHqYtsjPnDfE26XOvLL+2D+/fq1q
799eWqhRjeXem62gz1e/TLdijw/zvo6HkI+IsEA1Hr17j5PMo0yFhfA3sGN7VJwo
UhlxwEePpkugkACwko3EhkoOygo67PskjIiUZZUlOOkUxEvJ1rzrX1dOdcKFYYhl
JmbYkeGzhOJFx7DgnCB98suDcZz3aLbQW00xF9gCVriNFCx0jGMwXAa/gOqyTni/
TCFo5nXz6qS/RJxNS65VTHaITvURf4cqXd+tzE2FG9FjwxVosaGc7UihnnWFyBDb
k4jeo3JCKsyws3YM8Bgs6heFXD7XsRGeE+RqkWU83EQzobmzLg6QPSyY0fzYXREL
wBz3ZRfIETouQAZw/ZE2oscg8RN/8hZQPMOFxwFsR+ChhAfysm20BXjCZr18SBDf
0zbBARH/aLhGVL6D0dV0X2c3kViT9wcsqj5lXClXQjwMhzx5AIo=
=uK8i
-----END PGP SIGNATURE-----

Attachment: pgplsqgFFJ53q.pgp
Description: PGP signature


--- End Message ---

Reply via email to