[MacPorts] #40919: povray: error: unknown type name 'shared_ptr'

MacPorts noreply at macports.org
Fri Oct 25 12:14:37 PDT 2013


#40919: povray: error: unknown type name 'shared_ptr'
--------------------------------+--------------------------------
  Reporter:  murrayeisenberg@…  |      Owner:  macports-tickets@…
      Type:  defect             |     Status:  new
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:  2.2.0
Resolution:                     |   Keywords:  mavericks
      Port:  povray             |
--------------------------------+--------------------------------

Comment (by julian.panetta@…):

 This actually doesn't seem to be povray's fault. I think it's a weird
 namespace-related bug in the new /usr/bin/clang++. Povray brings
 shared_ptr into the global namespace, but for some reason clang++ doesn't
 see it when it's referenced from within the "pov" and "pov_frontend"
 namespaces.

 I was able to get around the problem by replacing (work
 directory)/source/vfe/unix/syspovconfig.h:143
 {{{
 using boost::shared_ptr;
 }}}

 with
 {{{
 using boost::shared_ptr;
 namespace pov {
     using boost::shared_ptr;
 }
 namespace pov_frontend {
     using boost::shared_ptr;
 }

 }}}

 This is of course a hack, but it seems to work as a temporary fix. Using a
 different compiler would probably also work.

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


More information about the macports-tickets mailing list