[PATCH] Fix binutils build on hppa64-hpux with gcc-16

Jan Beulich jbeulich@suse.com
Mon Dec 1 07:56:12 GMT 2025
On 30.11.2025 18:27, John David Anglin wrote:
> --- a/bfd/configure.ac
> +++ b/bfd/configure.ac
> @@ -205,6 +205,11 @@ ZW_GNU_GETTEXT_SISTER_DIR
>  AC_SUBST(HDEFINES)
>  AC_PROG_INSTALL
>  
> +# Check for presense of long long
> +AC_CHECK_TYPE([long long],
> +  [AC_DEFINE(HAVE_LONG_LONG, 1, [Define if you have the `long long' type.])],
> +    [])

Why would this be needed? C99 guarantees existence of long long, doesn't it?

> --- a/bfd/sysdep.h
> +++ b/bfd/sysdep.h
> @@ -36,6 +36,7 @@
>  #include <stdlib.h>
>  #include <stddef.h>
>  #include <string.h>
> +#include <strings.h>

Iirc this isn't a standard header, and hence can't be included without being
sure it exists. Given the patch description it's also not clear to me what
the #include would be needed for.

Jan


More information about the Binutils mailing list