After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 646947 - [regression] build failure
[regression] build failure
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: General
2.6.11
Other Linux
: Normal critical
: 2.8
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2011-04-06 19:28 UTC by David Ronis
Modified: 2011-04-21 03:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David Ronis 2011-04-06 19:28:07 UTC
I'm trying to build gimp-2.6.11 in a gnome-3 environment.  The build dies with:

file_pdf-file-pdf.o: In function `get_thumbnail':
/home/ronis/Project/notar/GNOME/garnome/fifth-toe/gimp/work/main.d/gimp-2.6.11/plug-ins/common/file-pdf.c:718: undefined reference to `poppler_page_render_to_pixbuf'
file_pdf-file-pdf.o: In function `load_image':
/home/ronis/Project/notar/GNOME/garnome/fifth-toe/gimp/work/main.d/gimp-2.6.11/plug-ins/common/file-pdf.c:632: undefined reference to `poppler_page_render_to_pixbuf'


I'm using poppler-0.17.0 which may be the problem.
Comment 1 Michael Natterer 2011-04-08 18:39:58 UTC
Can you provide a patch that replaces the function call with
whatever new poppler us providing, conditionally for the poppler
version that removed the old function?
Comment 2 Nils Philippsen 2011-04-20 12:58:48 UTC
I got a bug report in Fedora about the same issue (just in 2.6.11):

https://bugzilla.redhat.com/show_bug.cgi?id=698157

I've looked into this a bit and found poppler_page_render() which renders to a cairo surface which might do what we want.
Comment 3 Mukund Sivaraman 2011-04-20 13:27:14 UTC
commit 9b3e1c91fd2eac69da6947ec9c7fbf10096ba237
Author: Mukund Sivaraman <muks@banu.com>
Date:   Wed Apr 20 18:55:44 2011 +0530

    file-pdf-load: Don't use deprecated API (bug #646947)
Comment 4 Mukund Sivaraman 2011-04-21 03:59:23 UTC
commit 7bdadd80ba479d6ff904e276d805e16f6b940ee2
Author: Mukund Sivaraman <muks@banu.com>
Date:   Thu Apr 21 07:48:25 2011 +0530

    file-pdf-load: Use better API + cleanups
    
    * fixes issues with poppler 0.17 completely
    * uses new libgimp API to pass surfaces instead of pixbufs
    * uses GTK+ 3 API to convert surfaces to pixbufs where available

commit 79f29530bdc61c4cfecfe81314a8dc8616a8b4bd
Author: Mukund Sivaraman <muks@banu.com>
Date:   Thu Apr 21 06:55:21 2011 +0530

    Bump poppler required version to 0.12.4
    
    The calls that return cairo surfaces are now required, so the
    version bump is required.