Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Aug 2014 21:21:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 192133] graphics/Coin: build with GCC 4.8 fails with /usr/local/lib/gcc48/include/c++/cstdlib:174:20: error: declaration of C function 'long long int std::abs(long long int)' conflicts with abs(long long __x)
Message-ID:  <bug-192133-13-OLBYa8PU49@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-192133-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-192133-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192133

--- Comment #3 from cmt@burggraben.net ---
Created attachment 146273
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=146273&action=edit
patch for graphics/Coin

Coin mixes stdlib.h and cstdlib (the C++ variant of stdlib.h) quite freely, but
that does not work out with recent compilers - it results in conflicts as seen
in the build log (the only place I could find in Coin where stdlib.h is needed
is src/xml/expat/expat.h, which is used from "real C" and thus cannot use C++
headers).
Instead of going through >100 files including stdlib.h and creating one-line
patches for around 70 of them (some are documentation/examples only or
otherwise unused in our build), I opted for using post-patch to fix the include
lines.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192133-13-OLBYa8PU49>