From owner-freebsd-toolchain@freebsd.org Wed Aug 24 13:24:07 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E1F83BC4ED3 for ; Wed, 24 Aug 2016 13:24:07 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A9AE41E5A for ; Wed, 24 Aug 2016 13:24:07 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from [IPv6:2a03:fc02:2:1:6cd3:14de:4a54:ef50] (unknown [IPv6:2a03:fc02:2:1:6cd3:14de:4a54:ef50]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 6896A39CD7; Wed, 24 Aug 2016 15:24:04 +0200 (CEST) Subject: Re: name conflict after upgrade to HEAD. Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_FAA8B0F9-ABD7-48A5-A015-61E2C75B2FF9"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6.1 From: Dimitry Andric In-Reply-To: <0777433b-66fd-7a16-c8b5-25f6fee7ad31@digiware.nl> Date: Wed, 24 Aug 2016 15:23:57 +0200 Cc: FreeBSD Toolchain Message-Id: <2783A1E7-853F-4361-88BF-362B6C5F4764@andric.com> References: <0777433b-66fd-7a16-c8b5-25f6fee7ad31@digiware.nl> To: Willem Jan Withagen X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2016 13:24:08 -0000 --Apple-Mail=_FAA8B0F9-ABD7-48A5-A015-61E2C75B2FF9 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 24 Aug 2016, at 12:14, Willem Jan Withagen wrote: > > While compile Ceph source code I run into this conflict of the usuage of > 'log' > > Now I've fixed it by prefixing the log with ::log on line 845. > Which works for me, but I'm pretty sure that that is not the best solution. ... > > In file included from /usr/include/c++/v1/cmath:301: > /usr/include/c++/v1/math.h:845:37: error: reference to 'log' is ambiguous > log(_A1 __lcpp_x) _NOEXCEPT {return log((double)__lcpp_x);} Can you show the full command line used to build the offending source file? Usually this is caused by an incorrect include directory search order. And most often, that is caused by build systems inserting -isystem into compile command lines. -Dimitry --Apple-Mail=_FAA8B0F9-ABD7-48A5-A015-61E2C75B2FF9 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAle9n/UACgkQsF6jCi4glqMMrgCdFlg7EMEm9a2mybcXAfquAVW3 6RgAoKnBsEFRuYAXcnUw9MnscVLPRVSg =Lc+s -----END PGP SIGNATURE----- --Apple-Mail=_FAA8B0F9-ABD7-48A5-A015-61E2C75B2FF9--