#20279 closed defect (fixed)
pdf2djvu (0.5.9_0) does not compile when upgrading outdated ports
Reported by: | Josef.Buergler@… | Owned by: | blb@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.1 |
Keywords: | mutedrenderer | Cc: | |
Port: | pdf2djvu |
Description (last modified by blb@…)
Dear Developper
When trying to upgrade pdf2djvu I experienced the following problem during compilation of pdf2djvu-0.5.9 (see the output of stdout/stderrd below):
uranus:~ jfb$ sudo port upgrade outdated ---> Fetching fontconfig ---> Attempting to fetch fontconfig-2.7.0.tar.gz from http://arn.se.distfiles.macports.org/fontconfig ---> Verifying checksum(s) for fontconfig ---> Extracting fontconfig ---> Applying patches to fontconfig ---> Configuring fontconfig ---> Building fontconfig ---> Staging fontconfig into destroot ---> Deactivating fontconfig @2.6.0_2+macosx ---> Installing fontconfig @2.7.0_0+macosx ---> Activating fontconfig @2.7.0_0+macosx ---> Cleaning fontconfig ---> Fetching xorg-libX11 ---> Attempting to fetch libX11-1.2.2.tar.bz2 from http://arn.se.distfiles.macports.org/xorg-libX11 ---> Verifying checksum(s) for xorg-libX11 ---> Extracting xorg-libX11 ---> Configuring xorg-libX11 ---> Building xorg-libX11 ---> Staging xorg-libX11 into destroot ---> Deactivating xorg-libX11 @1.2.1_0 ---> Installing xorg-libX11 @1.2.2_0 ---> Activating xorg-libX11 @1.2.2_0 ---> Cleaning xorg-libX11 ---> Building pdf2djvu Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_pdf2djvu/work/pdf2djvu-0.5.9" && make all " returned error 2 Command output: /usr/bin/g++-4.0 -O2 -Wall -I/opt/local/include -I/opt/local/include/poppler -c -o pdf2djvu.o pdf2djvu.cc pdf2djvu.cc: In member function 'void MutedRenderer::drawImage(pdf::gfx::State*, pdf::Object*, pdf::Stream*, int, int, pdf::gfx::ImageColorMap*, int*, pdf::Bool)': pdf2djvu.cc:290: error: no matching function for call to 'MutedRenderer::drawImage(pdf::gfx::State*&, pdf::Object*&, pdf::Stream*&, int&, int&, pdf::gfx::ImageColorMap*&, int*&, pdf::Bool&)' /opt/local/include/poppler/SplashOutputDev.h:150: note: candidates are: virtual void SplashOutputDev::drawImage(GfxState*, Object*, Stream*, int, int, GfxImageColorMap*, GBool, int*, GBool) pdf2djvu.cc: In member function 'void MutedRenderer::drawMaskedImage(pdf::gfx::State*, pdf::Object*, pdf::Stream*, int, int, pdf::gfx::ImageColorMap*, pdf::Stream*, int, int, pdf::Bool)': pdf2djvu.cc:299: error: no matching function for call to 'MutedRenderer::drawMaskedImage(pdf::gfx::State*&, pdf::Object*&, pdf::Stream*&, int&, int&, pdf::gfx::ImageColorMap*&, pdf::Stream*&, int&, int&, pdf::Bool&)' /opt/local/include/poppler/SplashOutputDev.h:156: note: candidates are: virtual void SplashOutputDev::drawMaskedImage(GfxState*, Object*, Stream*, int, int, GfxImageColorMap*, GBool, Stream*, int, int, GBool, GBool) pdf2djvu.cc: In member function 'void MutedRenderer::drawSoftMaskedImage(pdf::gfx::State*, pdf::Object*, pdf::Stream*, int, int, pdf::gfx::ImageColorMap*, pdf::Stream*, int, int, pdf::gfx::ImageColorMap*)': pdf2djvu.cc:309: error: no matching function for call to 'MutedRenderer::drawSoftMaskedImage(pdf::gfx::State*&, pdf::Object*&, pdf::Stream*&, int&, int&, pdf::gfx::ImageColorMap*&, pdf::Stream*&, int&, int&, pdf::gfx::ImageColorMap*&)' /opt/local/include/poppler/SplashOutputDev.h:164: note: candidates are: virtual void SplashOutputDev::drawSoftMaskedImage(GfxState*, Object*, Stream*, int, int, GfxImageColorMap*, GBool, Stream*, int, int, GfxImageColorMap*, GBool) make: *** [pdf2djvu.o] Error 1 ...
The same problem appears if I remove pdf2djvu and try to install it again.
Here are some further information of my setup:
uranus:~ jfb$ uname -a Darwin JFBs-MBP.local 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386 i386
Please let me know, if I can help to resolve this problem!
Change History (4)
comment:1 Changed 15 years ago by blb@…
Description: | modified (diff) |
---|---|
Keywords: | pdf2djvu @0.5.9_0 removed |
Owner: | changed from macports-tickets@… to blb@… |
Port: | pdf2djvu added; pdf2djvu-0.5.9 removed |
Status: | new → assigned |
comment:2 Changed 15 years ago by blb@…
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 Changed 15 years ago by ubanus@…
The patch is wrong, it breaks foreground/background separation. See http://code.google.com/p/pdf2djvu/source/detail?r=bbe0992f11 for the correct solution.
comment:4 Changed 15 years ago by blb@…
pdf2djvu updated to 0.5.11 in r54850 which uses the linked patch; thanks for the catch.
Note: See
TracTickets for help on using
tickets.
Fixed in r53794.