libXfont2 strlcat/strlcpy patch

Roman Gilg subdiff at gmail.com
Sun Nov 3 17:08:00 UTC 2019


On Wed, Oct 23, 2019 at 5:33 PM Alan Coopersmith
<alan.coopersmith at oracle.com> wrote:
>
> On 10/23/19 12:48 AM, Michael Joost wrote:
> > Hi Alan,
> >
> > regarding your recent patch in xorg/libXfont2 (strlcat/strlcpy fallbacks) I ran into a problem on Linux while having libbsd installed. The configure correctly detects libbsd and those functions, however, the macro HAVE_LIBBSD is never defined in this process. The compile then fails with "implicit declaration" error, as the libbsd includes are not loaded from replace.h. When defining this macro manually, everything is fine.
> > I think HAVE_LIBBSD should be defined by configure when it has found -lbsd.
>
> Hmm, I see what you mean, but I've not heard of problems from any other Linux
> users/distro builders, so perhaps something else is masking it for them?
>
> I'm cc'ing the list to see if those who work on Linux see the problem, or
> want to provide a patch that they can test more easily than I can.

Hi,

I don't know what needs to be done here, but just wanted to say that I
experienced strlcat, strlcpy problems when compiling libXfont master
branch on Arch as well.

I can not build it from commit 2178c7445a on.

Cheers
Roman

> --
>         -Alan Coopersmith-               alan.coopersmith at oracle.com
>          Oracle Solaris Engineering - https://blogs.oracle.com/alanc
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: https://lists.x.org/mailman/listinfo/xorg-devel


More information about the xorg-devel mailing list