Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ff5Pc-0008RX-P2 for pgsql-bugs@arkaria.postgresql.org; Mon, 16 Jul 2018 15:27:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ff5PX-00041R-W8 for pgsql-bugs@arkaria.postgresql.org; Mon, 16 Jul 2018 15:27:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ff5PX-00041E-Q4 for pgsql-bugs@lists.postgresql.org; Mon, 16 Jul 2018 15:27:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ff5PU-0003NU-0U for pgsql-bugs@lists.postgresql.org; Mon, 16 Jul 2018 15:27:38 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w6GFRTmL022636; Mon, 16 Jul 2018 11:27:29 -0400 From: Tom Lane To: steven.winfield@cantabcapital.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15280: Clang 6.0.1 compiler warning - strlcpy In-reply-to: <153174905252.1395.3143525803051411280@wrigleys.postgresql.org> References: <153174905252.1395.3143525803051411280@wrigleys.postgresql.org> Comments: In-reply-to =?utf-8?q?PG_Bug_reporting_form?= message dated "Mon, 16 Jul 2018 13:50:52 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22634.1531754849.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 16 Jul 2018 11:27:29 -0400 Message-ID: <22635.1531754849@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =3D?utf-8?q?PG_Bug_reporting_form?=3D 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 'strlc= py' > 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=3D82ef7805faffa15= 1e724aa76c245ec590d174580 and we've been patiently waiting for an autoconf release that incorporates it ... regards, tom lane