[MacPorts] #35933: phash @0.9.3 Build error - preprocessing template from CImg.h header

MacPorts noreply at macports.org
Sun Sep 2 12:02:04 PDT 2012


#35933: phash @0.9.3 Build error - preprocessing template from CImg.h header
-------------------------------+--------------------------------------------
 Reporter:  angleto@…          |       Owner:  macports-tickets@…                   
     Type:  defect             |      Status:  new                                  
 Priority:  Normal             |   Milestone:                                       
Component:  ports              |     Version:  2.1.2                                
 Keywords:                     |        Port:                                       
-------------------------------+--------------------------------------------
 pHash does not build on macos 10.8.1 because of template preprocessing
 error.

 The error is the following:

 {{{
 :info:build mv -f .deps/ph_fft.Tpo .deps/ph_fft.Plo
 :info:build In file included from pHash.cpp:25:
 :info:build In file included from ./pHash.h:46:
 :info:build /opt/local/include/CImg.h:24833:18: error: declaration of 't'
 shadows template parameter
 :info:build       for (float t = 0; t<1; t+=_precision) {
 :info:build                  ^
 :info:build /opt/local/include/CImg.h:24809:23: note: template parameter
 is declared here
 :info:build     template<typename t>
 :info:build                       ^
 :info:build In file included from cimgffmpeg.cpp:26:
 :info:build In file included from ./cimgffmpeg.h:33:
 :info:build /opt/local/include/CImg.h:24833:18: error: declaration of 't'
 shadows template parameter
 :info:build       for (float t = 0; t<1; t+=_precision) {
 :info:build                  ^
 :info:build /opt/local/include/CImg.h:24809:23: note: template parameter
 is declared here
 :info:build     template<typename t>
 :info:build                       ^
 :info:build In file included from audiophash.cpp:25:
 :info:build In file included from ./audiophash.h:33:
 :info:build In file included from ./pHash.h:46:
 :info:build /opt/local/include/CImg.h:24833:18: error: declaration of 't'
 shadows template parameter
 :info:build       for (float t = 0; t<1; t+=_precision) {
 :info:build                  ^
 :info:build /opt/local/include/CImg.h:24809:23: note: template parameter
 is declared here
 :info:build     template<typename t>
 ...
 }}}

 There is a new minor release of of pHash (0.9.4) which could have solved
 the problem, but I did't try.

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


More information about the macports-tickets mailing list