On Wed, Aug 2, 2023 at 7:14 AM Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
On Wed, Aug 02, 2023 at 06:47:58AM -0500, Richard Shaw wrote:
> I was poking around trying to fix the FTBFS problem with direwolf and it
> looks simple enough. As it has built before for years I assume it's related
> to GCC 13.
>
> Here's the error:
> /builddir/build/BUILD/direwolf-1.6/src/direwolf.h:303:56: error: expected
> declaration specifiers or '...' before string constant
> 303 | #define strlcpy(dst,src,siz)
> strlcpy_debug(dst,src,siz,__FILE__,__func__,__LINE__)
> | ^~~~~~~~
I think this is the new glibc 2.38 support of strlcpy.
You need to modify direwolf.h to take the path of the other systems
#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__APPLE__)
e.g. by replacing it with #if 1
For an upstream patch it would be better to check for the
__GLIBC_PREREQ macro and __GLIBC_PREREQ(2, 38)), but the current glibc
header in rawhide still claims to be 2.37.
That got it. Thanks!
Richard
_______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue