poppler 0.20 breaks build
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Inkscape |
Fix Released
|
High
|
Luca Bruno | ||
| inkscape (Debian) |
Fix Released
|
Unknown
|
|||
| inkscape (Fedora) |
Fix Released
|
Undecided
|
|||
| inkscape (Ubuntu) |
Fix Released
|
High
|
Andy Whitcroft | ||
Bug Description
Poppler 0.20 has some changes that break compilation. On the redhat bugtracker there is a patch that seems to fix the compilation problems. https:/
* Note that this patch is for inkscape-0.48.2-5 in Fedora, and needs checking for compatibility with lp:inkscape
Description of problem:
inkscape fails when built with new poppler-0.20.0.
Version-Release number of selected component (if applicable):
inkscape-0.48.2-5
Additional info:
This patch should fix the problem:
https:/
Created attachment 587053
Patch
Patch modified to apply cleanly on top of existing fedora package patches.
Confirmed in trunk PPA for Ubuntu Quantal (Poppler 0.20.0).
From build log [1]:
CXX extension/
extension/
extension/
extension/
See upstream Inkscape bug: https:/
This bug was fixed in the package inkscape - 0.48.3.1-1ubuntu2
---------------
inkscape (0.48.3.1-1ubuntu2) quantal; urgency=low
* Follow ABI changes for libpoppler25 (poppler 0.20.0-0ubuntu1).
(LP: #1005565)
-- Andy Whitcroft <email address hidden> 2012年6月11日 19:22:46 +0100
- Conditional patch for poppler 0.20 Edit (21.0 KiB, text/plain)
As we're using older poppler libs on various architecture (prominently 0.12 in windows devlibs), I'd suggest going for conditional building instead.
The attached patch works both with newer and older poppler version, and it's up for review.
If no objections received, I'm going to commit this to trunk in a couple of days.
Luca,
Patch works on Quantal. I was working on very similar patch and you beat me to adding the "or" for the color space stuff (my build was still failing at that point). :)
Luca,
as far as I understand your patch targets only autotools. What about CMake?
Luca Bruno wrote:
> As we're using older poppler libs on various architecture
> (prominently 0.12 in windows devlibs), I'd suggest going for
> conditional building instead.
>
> The attached patch works both with newer and older poppler version,
> and it's up for review. If no objections received, I'm going to
> commit this to trunk in a couple of days.
The changes to 'src/extension/
@declara91 I still hate having 3 build mechanisms, but I'm patching cmake and btool too right now, for the sake of completeness
@suv-lp looking at http://
0.48.2-8
- fix icon/desktop-file scriptlets (#739375)
- drop .desktop vendor (f18+)
- inkscape doesn't build with poppler-0.20.0 (#822413)
boo, patch doesn't seem to work as advertised, looking closer now.
Hrm, seems to build ok locally on my f17 x86_64 box with poppler-0.20.0-1 installed. Something odd going on. (f18 gcc/glibc differences?, missing builddep?)
From the build failure, it looks like the first argument to the function "error" is being eaten somewhere, maybe something defining "error" as a macro?
OK, the version of the patch from https:/
Fixed in bzr revision 11518.
Since another bug-fix release (0.48.4) is planned, this needs to be backported to the 0.48.x branch AFAIU.
Backported to 0.48.x branch, commit 9905.
Apparently the changes were introduced in Poppler 0.18 (at least it doesn't compile on Crunchbang 11, based on Debian Wheezy, Poppler 0.18.4-3).
I'm going to try with a modified configure.ac with a test on 0.18.0 instead of 0.20.0.
> Apparently the changes were introduced in Poppler 0.18 (at least it doesn't compile
> on Crunchbang 11, based on Debian Wheezy, Poppler 0.18.4-3).
Current trunk compiles fine for me both with poppler 0.18.4 and with poppler 2.20.3 (no poppler-specific local changes to configure.ac) on OS X 10.7.4 (dependencies installed in separate MacPorts trees).
Trunk Build breaks with poppler-0.20.5-1 and before that on 0.20.4-1.
Given: poppler-0.20.5-1, poppler-
In file included from /usr/include/
/usr/include/
/home/mdriftmey
/home/mdriftmey
/home/mdriftmey
/home/mdriftmey
In file included from /usr/include/
/usr/include/
/home/mdriftmey
/home/mdriftmey
/home/mdriftmey
/home/mdriftmey
In file included from /usr/include/
/usr/include/
make[2]: *** [src/CMakeFiles
make[1]: *** [src/CMakeFiles
make: *** [all] Error 2
mdriftmeyer@
> Trunk Build breaks with poppler-0.20.5-1 and before that on 0.20.4-1.
Not confirmed: current trunk builds ok with poppler 0.20.3, 0.20.4 and 0.20.5, tested on
- OS X 10.7.4 (poppler 0.20.3, 0.20.5 via MacPorts)
- Ubuntu 12.10 (poppler 0.20.4)
Marc J. Driftmeyer wrote on 2012年11月15日:
> mdriftmeyer@
If you are trying to build with 'cmake', please file a separate report (and mention 'cmake'): the official build system for Inkscape is based on Autotools (autogen.sh; configure && make).