Re: Direwolf FTBFS: Need C help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-- 
Miroslav Lichvar
_______________________________________________
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




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux