[Bug 216609] devel/py-ice: fails to build with libc++ 4.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jan 30 21:17:59 UTC 2017


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

--- Comment #18 from Michael Gmelin <grembo at FreeBSD.org> ---
This is the reason why this worked using --std=c++11:

>From /usr/include/sys/cdefs.h
...
/* C++11 exposes a load of C99 stuff */
#if defined(__cplusplus) && __cplusplus >= 201103L
#define __LONG_LONG_SUPPORTED
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS
#endif
#ifndef __STDC_CONSTANT_MACROS
#define __STDC_CONSTANT_MACROS
#endif
#endif
...

Therefore, instead of using your patch, I changed the platform detection
mechanism in IceUtil/Config.h to only use __WORDSIZE if C++11 or newer is used
and fall-back to other detection mechanism in case it isn't. This should give
users of the library a better experience (otherwise every custom project using
the library would have to define __STDC_LIMIT_MACROS on build to get consistent
results).

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


More information about the freebsd-ports-bugs mailing list