Public bug reported: I got a elfutils-0.178
glibc provides two different signatures for strerror_r. One is GNU-specific and it is not portable. The other is int strerror_r(int errnum, char *buf, size_t buflen); /* XSI-compliant */ char *strerror_r(int errnum, char *buf, size_t buflen); /* GNU-specific */ man strerror(3) says: The XSI-compliant strerror_r() is preferred for portable applications. It returns the error string in the user-supplied buffer buf of length buflen. musl implements strerror_r as XSI-compliant version while elfutils uses GNU-specific variant. The solution should not simply ignore strerror_r return value as it would break build when -Werror=unused-result is set. An alternative is to do something like: https://github.com/luizluca/openwrt/blob/a79698fefdd9dacb84865c870bf75aee978c005d/package/libs/elfutils/patches/100 -musl-compat.patch#L51 ** Affects: elfutils (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to elfutils in Ubuntu. https://bugs.launchpad.net/bugs/1857099 Title: strerror_r used as non-portable format Status in elfutils package in Ubuntu: New Bug description: I got a elfutils-0.178 glibc provides two different signatures for strerror_r. One is GNU-specific and it is not portable. The other is int strerror_r(int errnum, char *buf, size_t buflen); /* XSI-compliant */ char *strerror_r(int errnum, char *buf, size_t buflen); /* GNU-specific */ man strerror(3) says: The XSI-compliant strerror_r() is preferred for portable applications. It returns the error string in the user-supplied buffer buf of length buflen. musl implements strerror_r as XSI-compliant version while elfutils uses GNU-specific variant. The solution should not simply ignore strerror_r return value as it would break build when -Werror=unused-result is set. An alternative is to do something like: https://github.com/luizluca/openwrt/blob/a79698fefdd9dacb84865c870bf75aee978c005d/package/libs/elfutils/patches/100 -musl-compat.patch#L51 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/elfutils/+bug/1857099/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp