[Bug 2056751] Re: Error compiling with glibc2.35 in Ubuntu22.04.3 LTS

Simon Chopin 2056751 at bugs.launchpad.net
Tue Mar 12 10:56:29 UTC 2024


To be more precise: I can't reproduce it using gcc or clang, no matter
the fortify level, and the upstream fix
https://sourceware.org/git/?p=glibc.git;a=commit;h=5a5f94af0542f9a35aaa7992c18eb4e2403a29b9
mentions that you can only trigger it on older releases that aren't
available in Jammy.

As a policy we don't backport fixes without a proper test plan.

** Changed in: glibc (Ubuntu)
       Status: New => Incomplete

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

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

Status in glibc package in Ubuntu:
  Incomplete

Bug description:
  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.

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




More information about the foundations-bugs mailing list