Please refer: https://bugs.gentoo.org/935812
Build fails on musl with implicit declaration of function basename error
May be related that https://gitlab.freedesktop.org/xorg/lib/libxaw/-/commit/d0fcbd9722ad691ca0b5873c98e8e9c236fa718b changed the definition of XawListChange in <X11/Xaw/List.h> from _Xconst char * to String *, where String is defined as const if _CONST_X_STRINGis defined.
May be related that https://gitlab.freedesktop.org/xorg/lib/libxaw/-/commit/d0fcbd9722ad691ca0b5873c98e8e9c236fa718b changed the definition of XawListChange in <x11 xaw="" list.h=""> from _Xconst char * to String *, where String is defined as const if _CONST_X_STRINGis defined.</x11>
Got almost the same error with the patch in your comment. https://paste.gentoo.zip/oALV47cL I think the issue is that on your system, _Xconst is not properly defined to const like it should be. I've to check why this might be the case.
Commit e792e4 breaks build with GCC 14 and 15
Fix building with GCC 14
rwpng.c: error: passing argument 3 of png_get_IHDR from incompatible pointer type
Build failure with Clang 16 (and GCC 14) and other libc's (musl)
Please refer https://bugs.gentoo.org/897870 for more information and a complete build log.
Fix incompatible integer to pointer conversion on non glibc systems
[PATCH] Fix type specifier missing and undeclared function call with
Fix parameter c was not declared, defaults to int with clang 16