Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944059 - =net-wireless/bluez-5.79 fails with c23/gcc-15.0.0_pre20241117-r2: shell.c:1424:9: error: too many arguments to function 'rl_message'
Summary: =net-wireless/bluez-5.79 fails with c23/gcc-15.0.0_pre20241117-r2: shell.c:14...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Pacho Ramos
URL:
Whiteboard:
Keywords:
: 944068 (view as bug list)
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-19 23:34 UTC by tdr
Modified: 2024-11-24 22:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (tdr-emerge--info.txt,6.30 KB, text/plain)
2024-11-19 23:34 UTC, tdr
Details
build failure log (bluez-5.79.build.log,76.07 KB, text/plain)
2024-11-19 23:35 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2024-11-19 23:34:11 UTC
c23 is more strict than previous standards


Reproducible: Always

Actual Results:  
rc/shared/shell.c: In function 'rl_cleanup':
src/shared/shell.c:1424:9: error: too many arguments to function 'rl_message'
 1424 |         rl_message("");
      |         ^~~~~~~~~~
In file included from src/shared/shell.c:29:
/usr/include/readline/readline.h:410:12: note: declared here
  410 | extern int rl_message ();
      |            ^~~~~~~~~~
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.   -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/elogind -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I./lib  -fPIC -ffunction-sections -fdata-sections      -march=native -O3 -mprefer-vector-width=512 -fno-vect-cost-model -pipe -c -o src/shared/libshared_ell_la-mcp.lo `test -f 'src/shared/mcp.c' || echo './'`src/shared/mcp.c
make[1]: *** [Makefile:8703: src/shared/libshared_mainloop_la-shell.lo] Error 1


works with CFLAGS="${CFLAGS} -std=gnu17" env
also builds with gcc:15.0.0_pre20241110
Comment 1 tdr 2024-11-19 23:34:33 UTC
Created attachment 910409 [details]
emerge --info
Comment 2 tdr 2024-11-19 23:35:10 UTC
Created attachment 910410 [details]
build failure log
Comment 3 immolo 2024-11-20 04:12:05 UTC
*** Bug 944068 has been marked as a duplicate of this bug. ***
Comment 4 Larry the Git Cow gentoo-dev 2024-11-24 22:30:36 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08cc05caea45f6b7c53d95cc5d680055754ef7bb

commit 08cc05caea45f6b7c53d95cc5d680055754ef7bb
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-24 22:29:16 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-24 22:29:16 +0000

    net-wireless/bluez: partly fix C23 compat
    
    Noticed when looking at bug #944059. This issue was already fixed
    by the GCC change referenced in bug #943809 but I already did the work
    to backport these, so let's pull them in.
    
    The issue in bug #944059 is an issue in sys-libs/readline which needs
    to be addressed separately.
    
    Bug: https://bugs.gentoo.org/943809
    Bug: https://bugs.gentoo.org/944059
    Signed-off-by: Sam James <sam@gentoo.org>

 net-wireless/bluez/bluez-5.79.ebuild          |   3 +
 net-wireless/bluez/files/bluez-5.79-c23.patch | 123 ++++++++++++++++++++++++++
 2 files changed, 126 insertions(+)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-24 22:30:49 UTC
The issue is in sys-libs/readline's headers...
Comment 6 Larry the Git Cow gentoo-dev 2024-11-24 22:51:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b9a8501590c4b1fa99ff64229a50618ec060db1

commit 6b9a8501590c4b1fa99ff64229a50618ec060db1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-24 22:50:22 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-24 22:50:22 +0000

    sys-libs/readline: fix compat in headers with C23
    
    HAVE_STDARG_H isn't defined for readline consumers externally so we always
    end up using the ancient non-prototypes. Fix that as all compilers we care
    about since forever in Gentoo will support this path.
    
    This in particular shows up with rl_message in consumers.
    
    Closes: https://bugs.gentoo.org/943820
    Closes: https://bugs.gentoo.org/944059
    Closes: https://bugs.gentoo.org/944300
    Closes: https://bugs.gentoo.org/944344
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-libs/readline/files/readline-8.2-c23.patch |  20 ++
 sys-libs/readline/readline-8.2_p13-r1.ebuild   | 269 +++++++++++++++++++++++++
 2 files changed, 289 insertions(+)