Public bug reported:

When compiling code on Ubuntu 22.04.3 LTS, a glibc2.35 error message
appears as follows:

/usr/include/x86_64-linux-gnu/bits/string_fortified.h:110: error: macro
"__fortified_attr_access" requires 3 arguments, but only 1 given

The cause is an error with __fortified_attr_access at line 110 in
string_fortified.h, which should be modified to:

> @@ -107,7 +107,7 @@ __NTH (stpncpy (char *__dest, const char *__src, size_t 
> __n))
>   # else
>   extern char *__stpncpy_chk (char *__dest, const char *__src, size_t __n,
>                               size_t __destlen) __THROW
> -  __fortified_attr_access ((__write_only__, 1, 3))
> +  __fortified_attr_access (__write_only__, 1, 3)
>     __attr_access ((__read_only__, 2));
>   extern char *__REDIRECT_NTH (__stpncpy_alias, (char *__dest, const char 
> *__src,
>                                                  size_t __n), stpncpy);

It has been noted that this error has been corrected in newer versions
of glibc. It is recommended to update to the latest version of glibc.

** Affects: glibc (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2056751

Title:
  Error compiling with glibc2.35 in Ubuntu22.04.3 LTS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2056751/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to