mainSavannah Administration - Support: sr #111310, libnss-mysql: FTBFS with gcc-15

 
 

sr #111310: libnss-mysql: FTBFS with gcc-15

Submitter:  Luke Yasuda <jing>
Submitted:  Thu 04 Sep 2025 02:57:14 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Confirmed
Privacy:  Public Assigned to:  rwp
Operating System:  None Open/Closed:  Open
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Thu 04 Sep 2025 02:59:08 PM UTC, comment #1: 

well in case debian's bug tracker craps itself (which happens from time to time), let me paste the build log here

[...]
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

Luke Yasuda <jing>
Site Administrator
Thu 04 Sep 2025 02:57:14 PM UTC, original submission:  

Debian bug: https://bugs.debi ... t.cgi?bug=1113802

the bug reporter (Mateus Rodrigues de Morais (with a canonical address)) suggested that we add -std=gnu17 to CFLAGS globally. It's a solution, but not a pretty one. A better solution would be to fix the -Wincompatible-pointer-types.

-----
to Simon: due to some life events I can't use my jing.rocks mail server to send emails now (but can receive emails "with luck"). I will also need some time (a few months?) before I can work on the debian packaging of libnss-mysql

Luke Yasuda <jing>
Site Administrator

 

Attached Files

Attached Files

(Note: upload size limit is set to 16MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by jing
  • -email is unavailable- added by jing (Submitted the item)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    History

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-09-04 jing Carbon-Copy- Added jas
    2025-09-04 jing Attached File- Added 0001-d-rules-set-std-to-gnu17.patch, #57618

    Back to the top

    Powered by Savane 3.16.
    Corresponding source code