On 02/20/2017 04:37 PM, Tom Lane wrote:
> Aleksander Alekseev <a.alekseev@postgrespro.ru> writes:
>> In theory - could we just always use our internal strl* implementations?
>
> Hmm, maybe configure's test to see if a declaration has been provided
> is going wrong? I notice that anchovy, which is supposedly current
> Arch Linux, doesn't think the platform has it:
>
> checking whether strlcat is declared... no
> checking whether strlcpy is declared... no
> ...
> checking for strlcat... no
> checking for strlcpy... no
>
> But that's using gcc. Perhaps clang behaves differently?
>
AFAIK it happens because clang treats missing declarations as warnings,
which confuses configure:
https://bugs.llvm.org//show_bug.cgi?id=20820
regards
--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services