[MacPorts] #42302: pficommon: Fails to build on OS X 10.9 Mavericks

MacPorts noreply at macports.org
Tue Jan 28 15:30:41 PST 2014


#42302: pficommon: Fails to build on OS X 10.9 Mavericks
----------------------+-----------------------
 Reporter:  raimue@…  |      Owner:  hum@…
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:  2.2.1
 Keywords:            |       Port:  pficommon
----------------------+-----------------------
 The problem is most probably related to C++11 support and libc++. The
 tr1/* headers do not exist, instead the files should be searched directly.

 {{{
 .../work/pficommon-
 692f8f25e8cfdf7fa7054ebb1d3ec8cb3287c5ea/src/concurrent/../lang/function.h:35:10:
 fatal error: 'tr1/functional' file not found
 #include <tr1/functional>
          ^
 1 error generated.
 }}}

 I guess the proper solution for this would be something like this:

 {{{
 #if __cplusplus >= 201103L
 #include <functional>
 #else
 #include <tr1/functional>
 #endif
 }}}

 And then declare `configure.cxxflags-append -std=c++11` in the Portfile.

-- 
Ticket URL: <https://trac.macports.org/ticket/42302>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list