configure.ac: check for stdarg.h
PATCH 1/1 configure.ac: check for stdarg.h
Currently, there is the following compile error while building with -std=gnu23, which is now default for GCC 15:
src/shared/shell.c: In function 'rl_cleanup':src/shared/shell.c:1435:9: error: too many arguments to function 'rl_message'; expected 0, have 2
1435 | rl_message("%s", "");
| ^~~~~~~~~~ ~~~~
In file included from src/shared/shell.c:29:
/usr/include/readline/readline.h:410:12: note: declared here
410 | extern int rl_message ();
| ^~~~~~~~~~This adds a check for stdarg.h inside the configure script so that HAVE_STDARG_H gets defined and the correct prototype is picked from readline.h.
--- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
configure.ac +1 -1
@@ -70,7 +70,7 @@ AC_CHECK_LIB(pthread, pthread_create, dummy=yes, AC_CHECK_LIB(dl, dlopen, dummy=yes, AC_MSG_ERROR(dynamic linking loader is required)) -AC_CHECK_HEADERS(stdio.h string.h linux/types.h linux/if_alg.h linux/uinput.h linux/uhid.h sys/random.h) +AC_CHECK_HEADERS(stdarg.h stdio.h string.h linux/types.h linux/if_alg.h linux/uinput.h linux/uhid.h sys/random.h) # basename may be only available in libgen.h with the POSIX behavior, # not desired here
Signature · 1 line
2.50.0
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=974481
---Test result---
Test Summary:
CheckPatch PENDING 0.19 seconds GitLint PENDING 0.25 seconds BuildEll PASS 20.28 seconds BluezMake PASS 2844.23 seconds MakeCheck PASS 20.38 seconds MakeDistcheck PASS 198.97 seconds CheckValgrind PASS 278.16 seconds CheckSmatch PASS 304.32 seconds bluezmakeextell PASS 127.90 seconds IncrementalBuild PENDING 0.24 seconds ScanBuild PASS 914.31 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series Output:
---
Regards,
Linux Bluetooth