gnu/65641: Use of llabs() in C++ fails as ambiguous

David Schultz das at FreeBSD.ORG
Sat Jan 12 13:09:28 PST 2008


On Sat, Jan 12, 2008, Pieter de Goeje wrote:
> The following reply was made to PR gnu/65641; it has been noted by GNATS.
> 
> From: Pieter de Goeje <pieter at degoeje.nl>
> To: bug-followup at freebsd.org, lennox at cs.columbia.edu
> Cc:  
> Subject: Re: gnu/65641: Use of llabs() in C++ fails as ambiguous
> Date: Sat, 12 Jan 2008 19:27:23 +0100
> 
>  Test program works fine on FreeBSD 7. It seems the problem was fixed in GCC 
>  4.2.

The GNU C++ header files include the corresponding C header files
with some magic to make symbols appear in the correct namespace.
Often this doesn't have exactly the correct effect, or stuff leaks
into the global namespace. However, much of this is hard to fix,
and when you do fix it, broken apps that depended on the namespace
leakage break. This is probably related to your problem, and if so,
it's a glibstdc++ problem, not a gcc problem. In any case, it seems
to have been fixed in more recent versions of FreeBSD...


More information about the freebsd-bugs mailing list