[MacPorts] #46790: pdf2htmlex @0.11+: build fails after upgrade to poppler 0.31.0, cannot initialize a parameter of type 'PSOutputDev *' with an rvalue of type 'bool'
#46790: pdf2htmlex @0.11+: build fails after upgrade to poppler 0.31.0, cannot initialize a parameter of type 'PSOutputDev *' with an rvalue of type 'bool' ----------------------+------------------------ Reporter: devans@… | Owner: iapain@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: pdf2htmlex ----------------------+------------------------ Build fails as follows {{{ [ 16%] Building CXX object CMakeFiles/pdf2htmlEX.dir/src/HTMLRenderer/font.cc.o /usr/bin/clang++ -pipe -Os -arch x86_64 -stdlib=libc++ -Wall -stdlib=libc++ -std=c++0x -O2 -DNDEBUG -arch x86_64 -mmacosx-version- min=10.9 -I/opt/local/var/macports/build/_opt_macports_trunk_dports_textproc_pdf2htmlex/pdf2htmlex/work /pdf2htmlEX-43e3174cbc/src -I/opt/local/include/poppler -I/opt/local/include/fontforge -I/opt/local/include -o CMakeFiles/pdf2htmlEX.dir/src/HTMLRenderer/font.cc.o -c /opt/local/var/macports/build/_opt_macports_trunk_dports_textproc_pdf2htmlex/pdf2htmlex/work /pdf2htmlEX-43e3174cbc/src/HTMLRenderer/font.cc In file included from /opt/local/var/macports/build/_opt_macports_trunk_dports_textproc_pdf2htmlex/pdf2htmlex/work /pdf2htmlEX-43e3174cbc/src/HTMLRenderer/font.cc:21: In file included from /opt/local/var/macports/build/_opt_macports_trunk_dports_textproc_pdf2htmlex/pdf2htmlex/work /pdf2htmlEX-43e3174cbc/src/HTMLRenderer/HTMLRenderer.h:27: /opt/local/var/macports/build/_opt_macports_trunk_dports_textproc_pdf2htmlex/pdf2htmlex/work /pdf2htmlEX-43e3174cbc/src/StringFormatter.h:37:12: warning: class 'GuardedPointer' was previously declared as a struct [-Wmismatched-tags] friend class GuardedPointer; ^ /opt/local/var/macports/build/_opt_macports_trunk_dports_textproc_pdf2htmlex/pdf2htmlex/work /pdf2htmlEX-43e3174cbc/src/StringFormatter.h:19:12: note: previous use is here struct GuardedPointer ^ /opt/local/var/macports/build/_opt_macports_trunk_dports_textproc_pdf2htmlex/pdf2htmlex/work /pdf2htmlEX-43e3174cbc/src/StringFormatter.h:37:12: note: did you mean struct here? friend class GuardedPointer; ^~~~~ struct In file included from /opt/local/var/macports/build/_opt_macports_trunk_dports_textproc_pdf2htmlex/pdf2htmlex/work /pdf2htmlEX-43e3174cbc/src/HTMLRenderer/font.cc:21: In file included from /opt/local/var/macports/build/_opt_macports_trunk_dports_textproc_pdf2htmlex/pdf2htmlex/work /pdf2htmlEX-43e3174cbc/src/HTMLRenderer/HTMLRenderer.h:33: /opt/local/var/macports/build/_opt_macports_trunk_dports_textproc_pdf2htmlex/pdf2htmlex/work /pdf2htmlEX-43e3174cbc/src/BackgroundRenderer/BackgroundRenderer.h:18:1: warning: class 'Param' was previously declared as a struct [-Wmismatched- tags] class Param; ^ /opt/local/var/macports/build/_opt_macports_trunk_dports_textproc_pdf2htmlex/pdf2htmlex/work /pdf2htmlEX-43e3174cbc/src/Param.h:16:8: note: previous use is here struct Param ^ /opt/local/var/macports/build/_opt_macports_trunk_dports_textproc_pdf2htmlex/pdf2htmlex/work /pdf2htmlEX-43e3174cbc/src/BackgroundRenderer/BackgroundRenderer.h:18:1: note: did you mean struct here? class Param; ^~~~~ struct /opt/local/var/macports/build/_opt_macports_trunk_dports_textproc_pdf2htmlex/pdf2htmlex/work /pdf2htmlEX-43e3174cbc/src/HTMLRenderer/font.cc:890:49: error: cannot initialize a parameter of type 'PSOutputDev *' with an rvalue of type 'bool' if(auto * font_loc = font->locateFont(xref, gFalse)) ^~~~~~ /opt/local/include/poppler/goo/gtypes.h:36:16: note: expanded from macro 'gFalse' #define gFalse false ^~~~~ /opt/local/include/poppler/GfxFont.h:243:51: note: passing argument to parameter 'ps' here GfxFontLoc *locateFont(XRef *xref, PSOutputDev *ps); ^ /opt/local/var/macports/build/_opt_macports_trunk_dports_textproc_pdf2htmlex/pdf2htmlex/work /pdf2htmlEX-43e3174cbc/src/HTMLRenderer/font.cc:945:56: error: cannot initialize a parameter of type 'PSOutputDev *' with an rvalue of type 'bool' GfxFontLoc * localfontloc = font->locateFont(xref, gFalse); ^~~~~~ /opt/local/include/poppler/goo/gtypes.h:36:16: note: expanded from macro 'gFalse' #define gFalse false ^~~~~ /opt/local/include/poppler/GfxFont.h:243:51: note: passing argument to parameter 'ps' here GfxFontLoc *locateFont(XRef *xref, PSOutputDev *ps); ^ 2 warnings and 2 errors generated. make[2]: *** [CMakeFiles/pdf2htmlEX.dir/src/HTMLRenderer/font.cc.o] Error 1 make[2]: Leaving directory `/opt/local/var/macports/build/_opt_macports_trunk_dports_textproc_pdf2htmlex/pdf2htmlex/work /pdf2htmlEX-43e3174cbc' }}} Full build log attached. -- Ticket URL: <https://trac.macports.org/ticket/46790> MacPorts <https://www.macports.org/> Ports system for OS X
#46790: pdf2htmlex @0.11+: build fails after upgrade to poppler 0.31.0, cannot initialize a parameter of type 'PSOutputDev *' with an rvalue of type 'bool' -------------------------+---------------------- Reporter: devans@… | Owner: iapain@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: pdf2htmlex | -------------------------+---------------------- Comment (by devans@…): See upstream [https://github.com/coolwanglu/pdf2htmlEX/issues/471 issue 471]. -- Ticket URL: <https://trac.macports.org/ticket/46790#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#46790: pdf2htmlex @0.11+: build fails after upgrade to poppler 0.31.0, cannot initialize a parameter of type 'PSOutputDev *' with an rvalue of type 'bool' -------------------------+---------------------- Reporter: devans@… | Owner: iapain@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: pdf2htmlex | -------------------------+---------------------- Comment (by mojca@…): I think that we should also test the latest git commit, just to make sure that the problem hasn't been fixed yet (I'm currently on a very limited bandwidth and cannot do much at the moment; plus I think that this requires C++11 which adds a few more complications on my old OS). -- Ticket URL: <https://trac.macports.org/ticket/46790#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#46790: pdf2htmlex @0.11+: build fails after upgrade to poppler 0.31.0, cannot initialize a parameter of type 'PSOutputDev *' with an rvalue of type 'bool' -------------------------+---------------------- Reporter: devans@… | Owner: iapain@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: pdf2htmlex | -------------------------+---------------------- Comment (by devans@…): I tried building version 0.12 but it requires fontforge 2.0 so no soap until that is accomplished (#43844). But I doubt it has been fixed upstream yet since the problem seems to be with API changes introduced in poppler 0.31.0 just a few days ago and there has been no upstream commits since then. -- Ticket URL: <https://trac.macports.org/ticket/46790#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#46790: pdf2htmlex @0.11+: build fails after upgrade to poppler 0.31.0, cannot initialize a parameter of type 'PSOutputDev *' with an rvalue of type 'bool' -------------------------+---------------------- Reporter: devans@… | Owner: iapain@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: pdf2htmlex | -------------------------+---------------------- Comment (by mojca@…): Ah, yes, I remember now. I know I had a reason for not upgrading the port to the latest version, but I thought it was because of C++11. Now I remember that I wasn't able to upgrade it due to the lack of FontForge. -- Ticket URL: <https://trac.macports.org/ticket/46790#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#46790: pdf2htmlex @0.11+: build fails after upgrade to poppler 0.31.0, cannot initialize a parameter of type 'PSOutputDev *' with an rvalue of type 'bool' -------------------------+---------------------- Reporter: devans@… | Owner: iapain@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: pdf2htmlex | -------------------------+---------------------- Comment (by devans@…): Fix committed in r132692 that patches pdf2htmlex to conform to new API changes introduced in poppler 0.31.0. Builds without error and binary works as expected for all platforms but SL where build still fails. I believe this is a pre-existing issue that is unrelated to this ticket. -- Ticket URL: <https://trac.macports.org/ticket/46790#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#46790: pdf2htmlex @0.11+: build fails after upgrade to poppler 0.31.0, cannot initialize a parameter of type 'PSOutputDev *' with an rvalue of type 'bool' -------------------------+---------------------- Reporter: devans@… | Owner: iapain@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: pdf2htmlex | -------------------------+---------------------- Changes (by devans@…): * status: new => closed * resolution: => fixed -- Ticket URL: <https://trac.macports.org/ticket/46790#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts