On Mon,  9 Oct 2017 08:49:44 +0300
Baruch Siach <bar...@tkos.co.il> 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 <p...@nwl.cc>
> Signed-off-by: Baruch Siach <bar...@tkos.co.il>

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

Reply via email to