[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20171011110335.1e2a793c@xeon-e3>
Date: Wed, 11 Oct 2017 11:03:35 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: Baruch Siach <baruch@...s.co.il>
Cc: netdev@...r.kernel.org, Phil Sutter <phil@....cc>
Subject: Re: [PATCH v3] lib: fix multiple strlcpy definition
On Mon, 9 Oct 2017 08:49:44 +0300
Baruch Siach <baruch@...s.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 <phil@....cc>
> Signed-off-by: Baruch Siach <baruch@...s.co.il>
Thanks for fixing. Most people never use other versions of libc
so things get broken rather often.
Powered by blists - more mailing lists