[MacPorts] #34378: Building kdelibs4 with Clang 3.2 fails

MacPorts noreply at macports.org
Wed May 9 07:51:30 PDT 2012


#34378: Building kdelibs4 with Clang 3.2 fails
-------------------------------------------+--------------------------------
 Reporter:  fraser.hutchison@…             |       Owner:  macports-tickets@…                   
     Type:  defect                         |      Status:  new                                  
 Priority:  Normal                         |   Milestone:                                       
Component:  ports                          |     Version:  2.0.4                                
 Keywords:                                 |        Port:                                       
-------------------------------------------+--------------------------------
 From main.log after a failed attempt to install Kdevelop:


 {{{
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.2/kjs/wtf/HashSet.h:184:23:
 error: use 'template' keyword to treat 'find' as a dependent template name
 :info:build         return m_impl.find<T, Adapter>(value);
 :info:build                       ^
 :info:build                       template
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.2/kjs/wtf/HashSet.h:193:23:
 error: use 'template' keyword to treat 'find' as a dependent template name
 :info:build         return m_impl.find<T, Adapter>(value);
 :info:build                       ^
 :info:build                       template
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/kdelibs4/work/kdelibs-4.8.2/kjs/wtf/HashSet.h:201:23:
 error: use 'template' keyword to treat 'contains' as a dependent template
 name
 :info:build         return m_impl.contains<T, Adapter>(value);
 :info:build                       ^
 :info:build                       template
 :info:build 3 errors generated.
 }}}


 The issue can be fixed easily by modifying
 ..../kdelibs-4.8.2/kjs/wtf/HashSet.h at the indicated points by adding
 "template" e.g. changing to:


 {{{
 return m_impl.template find<T, Adapter>(value);

 }}}

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


More information about the macports-tickets mailing list