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

MacPorts noreply at macports.org
Wed Nov 6 11:16:11 PST 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 benjamin.seppke@…):

 I think that this is not a bug of clang. Clang brings (since it is C++11
 compliant) with its own shared_ptr implementation. This makes the symbol
 "shared_ptr" problematic. I think, that we really should patch the errors,
 where the occur: As far as I can see it, it appears only at single
 "shared_ptr" definitions. This patch worked for me - maybe we can add it
 to the post-configure step of the portfile:

 find . -type f -exec gsed 's/\tshared_ptr/\tboost::shared_ptr/g' -i.back
 '{}' +

 This replaces all ambigous "<tab>shared_ptr" definitions by the resolvable
 "<tab>boost::shared_ptr" type. The <tab> inside the replacements takes
 care that no boost::boost::shared_ptr's are produced.

 Best wishes

 Benjamin

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


More information about the macports-tickets mailing list