[Poppler-bugs] [Bug 22090] New: poppler glib breaks due to hardcoding G_DISABLE_SINGLE_INCLUDES

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jun 4 11:54:27 PDT 2009


http://bugs.freedesktop.org/show_bug.cgi?id=22090

           Summary: poppler glib breaks due to hardcoding
                    G_DISABLE_SINGLE_INCLUDES
           Product: poppler
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: medium
         Component: glib frontend
        AssignedTo: poppler-bugs at lists.freedesktop.org
        ReportedBy: chpe at gnome.org


poppler-glib depends on glib >= 2.6. configure always adds
-DG_DISABLE_SINGLUE_INCLUDES to the CFLAGS used to compile poppler-glib.
However, when compiling e.g. with glib 2.18 with gtk 2.12 (which is the
combination that's used in maemo5 beta SDK), this breaks poppler-glib
compilation due to the headers of this gtk version not being prepared for
G_DISABLE_SINGLUE_INCLUDES while the glib version is:

In file included from /usr/include/gtk-2.0/gdk/gdkspawn.h:26,
                 from /usr/include/gtk-2.0/gdk/gdk.h:52,
                 from ../../../sources/poppler-0.11.0/glib/poppler-page.h:27,
                 from ../../../sources/poppler-0.11.0/glib/poppler.h:121,
                 from ../../../sources/poppler-0.11.0/glib/poppler-action.h:23,
                 from poppler-enums.c:9:
/usr/include/glib-2.0/glib/gspawn.h:22:2: error: #error "Only <glib.h> can be
included directly."


The fix is to not add this define unless the glib version is >= 2.18 and the
gtk+ version >= 2.14 (IIRC; someone should double-check this).


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list