[MacPorts] #35933: phash @0.9.3 Build error - preprocessing template from CImg.h header
#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
#35933: phash @0.9.3 Build error - preprocessing template from CImg.h header -------------------------------+-------------------------------------------- Reporter: angleto@… | Owner: ivan@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: phash -------------------------------+-------------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => ivan@… * port: => phash -- Ticket URL: <https://trac.macports.org/ticket/35933#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35933: pHash: CImg.h: error: declaration of 't' shadows template parameter -------------------------------+-------------------------------------------- Reporter: angleto@… | Owner: ivan@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: pHash -------------------------------+-------------------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) * port: phash => pHash Comment: [ticket:35937 Upgrading CImg to 1.5.1] seems to fix this. -- Ticket URL: <https://trac.macports.org/ticket/35933#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35933: pHash: CImg.h: error: declaration of 't' shadows template parameter -------------------------------+-------------------------------------------- Reporter: angleto@… | Owner: ivan@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: pHash -------------------------------+-------------------------------------------- Comment(by angleto@…): Replying to [comment:2 ryandesign@…]:
[ticket:35937 Upgrading CImg to 1.5.1] seems to fix this.
I confirm, it works using CImg 1.5.1 If somebody need it, I attached above the portfile for building CImg 1.5.1 -- Ticket URL: <https://trac.macports.org/ticket/35933#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35933: pHash: CImg.h: error: declaration of 't' shadows template parameter --------------------------------+------------------------------------------- Reporter: angleto@… | Owner: ivan@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: pHash | --------------------------------+------------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: r97590 (maintainer timeout) -- Ticket URL: <https://trac.macports.org/ticket/35933#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts