Bug 2336029
| Summary: | abook fails to build with GCC 15 ("mbswidth.c:66:5: error: conflicting types for ‘wcwidth’; have ‘int(void)’") | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Dave Malcolm <dmalcolm> |
| Component: | abook | Assignee: | Dominik 'Rathann' Mierzejewski <dominik> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | athoscribeiro, dominik |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | abook-0.6.1-28.fc42 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-01-09 12:58:57 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2333037 | ||
|
Description
Dave Malcolm
2025-01-06 22:41:46 UTC
The issue was that configure check was failing to detect wcwidth() declaration due to missing #include <wchar.h>:
...
checking whether wcwidth is declared... no
...
which resulted in the wrong wcwidth prototype
After patching configure.ac with:
diff -up abook-0.6.1/configure.ac.orig abook-0.6.1/configure.ac
--- abook-0.6.1/configure.ac.orig 2015-10-04 04:37:39.000000000 +0200
+++ abook-0.6.1/configure.ac 2025-01-09 12:32:06.449796137 +0100
@@ -61,7 +61,7 @@ AC_CHECK_HEADER(wchar.h,[
AC_DEFINE(HAVE_WCHAR_H, 1, [Define if you have the <wchar.h> header file.])],
[ac_have_wchar_h=no])
AC_CHECK_FUNCS(mbtowc wcwidth mbrtowc mbsinit,,ac_widec_funcs=no)
-AC_CHECK_DECLS(wcwidth)
+AC_CHECK_DECLS([wcwidth], [], [], [[#include <wchar.h>]])
AC_CHECK_TYPE(wchar_t,,ac_widec_funcs=no)
if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
wcwidth declaration is detected and build with -std=gnu23 succeeeds.
FEDORA-2025-1bc6fd32b9 (abook-0.6.1-28.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2025-1bc6fd32b9 FEDORA-2025-1bc6fd32b9 (abook-0.6.1-28.fc42) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report. |