[MacPorts] #35385: ipe-tools @20110916 build failure of pdftoipe due to API change in poppler >= 0.20
MacPorts
noreply at macports.org
Sat Jul 28 07:01:12 PDT 2012
#35385: ipe-tools @20110916 build failure of pdftoipe due to API change in poppler
>= 0.20
-----------------------------------+----------------------------------------
Reporter: Torsten.Maehne@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Keywords: haspatch | Port: ipe-tools
-----------------------------------+----------------------------------------
The source file xmloutputdev.cpp of pdtoipe fails to compile due to an API
changer in the poppler library, which is currently @0.20.2. Here's the
output of the port command when trying to install ipe-tools:
{{{
$ port -v install ipe-tools
...
---> Extracting ipe-tools
---> Extracting svgtoipe-20100608.tar.gz
---> Extracting pdftoipe-20110916-src.tar.gz
---> Extracting figtoipe-20091205.tar.gz
---> Extracting ipe5toxml-20051114.tar.gz
---> Applying patches to ipe-tools
---> Applying patch-pdftoipe-20110916-src-xmloutputdev.cpp.diff
patching file pdftoipe-20110916-src/xmloutputdev.cpp
---> Configuring ipe-tools
---> Building ipe-tools
/usr/bin/clang++ -O2 -Wall -W -o figtoipe figtoipe.cpp -arch x86_64 -lz
/usr/bin/clang -I/opt/local/include -O2 -arch x86_64 -I/opt/local/include
-c -o ipe5toxml.o ipe5toxml.c
/usr/bin/clang -arch x86_64 -o ipe5toxml ipe5toxml.o -lm
/usr/bin/clang++ -O2 -arch x86_64 -Wno-write-strings -I/opt/local/include
-I/opt/local/include/poppler -c -o parseargs.o parseargs.cc
/usr/bin/clang++ -O2 -arch x86_64 -Wno-write-strings -I/opt/local/include
-I/opt/local/include/poppler -c -o xmloutputdev.o xmloutputdev.cpp
xmloutputdev.cpp:33:5: error: no matching function for call to 'error'
error(-1, "Couldn't open output file '%s'", fileName);
^~~~~
/opt/local/include/poppler/Error.h:54:19: note: candidate function not
viable: no known conversion from 'int' to 'ErrorCategory' for 1st
argument;
extern void CDECL error(ErrorCategory category, int pos, const char *msg,
...);
^
1 error generated.
make: *** [xmloutputdev.o] Error 1
Command failed: cd /opt/local/var/macports/build
/_Users_maehne_Build_MacPorts_ports_graphics_ipe-tools/ipe-
tools/work/pdftoipe-20110916-src && CPPFLAGS+='-I/opt/local/include'
CFLAGS+='-I/opt/local/include -O2 -arch x86_64' CXXFLAGS+='-O2 -arch
x86_64' LDFLAGS+='-arch x86_64' CC=/usr/bin/clang CXX=/usr/bin/clang++
CC=/usr/bin/clang++ /usr/bin/make all
Exit code: 2
...
}}}
The issue has been already reported upstream
([http://sourceforge.net/apps/mantisbt/ipe7/view.php?id=112 issue 112])
with an analysis and a proposed patch. I added the patch to the ipe-tools
port.
--
Ticket URL: <https://trac.macports.org/ticket/35385>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list