[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)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Aug 25 21:21:02 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192133

--- Comment #3 from cmt at 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.


More information about the freebsd-ports-bugs mailing list