Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Aug 2016 15:23:57 +0200
From:      Dimitry Andric <dimitry@andric.com>
To:        Willem Jan Withagen <wjw@digiware.nl>
Cc:        FreeBSD Toolchain <freebsd-toolchain@freebsd.org>
Subject:   Re: name conflict after upgrade to HEAD.
Message-ID:  <2783A1E7-853F-4361-88BF-362B6C5F4764@andric.com>
In-Reply-To: <0777433b-66fd-7a16-c8b5-25f6fee7ad31@digiware.nl>
References:  <0777433b-66fd-7a16-c8b5-25f6fee7ad31@digiware.nl>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <wjw@digiware.nl> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2783A1E7-853F-4361-88BF-362B6C5F4764>