Re: BUG #15280: Clang 6.0.1 compiler warning - strlcpy - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #15280: Clang 6.0.1 compiler warning - strlcpy
Date
Msg-id 22635.1531754849@sss.pgh.pa.us
Whole thread Raw
In response to BUG #15280: Clang 6.0.1 compiler warning - strlcpy  (PG Bug reporting form <noreply@postgresql.org>)
Responses RE: BUG #15280: Clang 6.0.1 compiler warning - strlcpy
List pgsql-bugs
=?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
> While compiling 11beta2 using clang 6.0.1 this warning crops up quite a lot
> in an otherwise quiet build process - so I thought it might be of
> interest:
> pg_rewind.c:724:4: warning: implicitly declaring library function 'strlcpy'
> with type 'unsigned long (char *, const char *, unsigned long)'
> [-Wimplicit-function-declaration]

Yeah, this is a known problem caused by autoconf doing its "is this
function declared" test in a way that clang doesn't play nice with.

There's a fix for this upstream:

http://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=82ef7805faffa151e724aa76c245ec590d174580

and we've been patiently waiting for an autoconf release that
incorporates it ...

            regards, tom lane


pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #15281: Set role does not affect superuser privleges
Next
From: Steven Winfield
Date:
Subject: RE: BUG #15280: Clang 6.0.1 compiler warning - strlcpy