Mac OS X 10.9 (Mavericks) build issues
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
High
|
Johan Engelen |
Bug Description
Mac OS X 10.9 (Mavericks)
MacPorts 2.2.0
Xcode 5.0.1 (Build 5A2053 )
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Uses libc++ without TR1 namespace support
After applying patch suggested by Markus Engel that fixes another libc++ issue (attached), build of r12715 fails as follows:
In file included from selection-
In file included from ./ui/tool/
./ui/tool/
#include <tr1/functional>
Although configure.ac checks for TR1 unordered_set usability and configures appropriately, it does not check for TR1 functional which is used unconditionally in the code. Libc++ is used in this version of Mac OS X which does not include support for TR1 namespace (functionality in std instead).
Any suggestions how best to fix this?
Related branches
tags: | added: build |
Changed in inkscape: | |
milestone: | none → 0.49 |
Changed in inkscape: | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in inkscape: | |
assignee: | nobody → Johan Engelen (johanengelen) |
status: | Triaged → Fix Committed |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
The problem here is that libc++ has been written after c++11 was "released".
You could try this:
#if __cplusplus >= 201103L
#include <functional>
#else
#include <tr1/functional>
#endif
and compile with CXXFLAGS= "-std=c+ +11".