Subject: Re: [PATCH v3] lib: fix multiple strlcpy definition

From: Stephen Hemminger <[email-masked]>
Date: Wed, 11 Oct 2017 11:03:35 -0700

On Mon,  9 Oct 2017 08:49:44 +0300
Baruch Siach <[email-masked]> wrote:

> Some C libraries, like uClibc and musl, provide BSD compatible
> strlcpy(). Add check_strlcpy() to configure, and avoid defining strlcpy
> and strlcat when the C library provides them.
> 
> This fixes the following static link error with uClibc-ng:
> 
> .../sysroot/usr/lib/libc.a(strlcpy.os): In function `strlcpy':
> strlcpy.c:(.text+0x0): multiple definition of `strlcpy'
> ../lib/libutil.a(utils.o):utils.c:(.text+0x1ddc): first defined here
> collect2: error: ld returned 1 exit status
> 
> Acked-by: Phil Sutter <[email-masked]>
> Signed-off-by: Baruch Siach <[email-masked]>

Thanks for fixing. Most people never use other versions of libc
so things get broken rather often.