x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -DDATADIR='"/usr/share/epdfview"' -I../../src -pthread -D_REENTRANT -DQT_SHARED -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng15 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/libdrm -I/usr/include/qt4/QtCore -O2 -march=core2 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 -pipe -Wall -ggdb -Wall -Wno-long-long -DNDEBUG -DG_DISABLE_ASSERT -c -o libshell_gtk_a-StockIcons.o `test -f 'StockIcons.cxx' || echo './'`StockIcons.cxx x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -DDATADIR='"/usr/share/epdfview"' -I../../src -pthread -D_REENTRANT -DQT_SHARED -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng15 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/libdrm -I/usr/include/qt4/QtCore -O2 -march=core2 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 -pipe -Wall -ggdb -Wall -Wno-long-long -DNDEBUG -DG_DISABLE_ASSERT -c -o libshell_gtk_a-PrintView.o `test -f 'PrintView.cxx' || echo './'`PrintView.cxx In file included from StockIcons.h:21:0, from FindView.cxx:23: /usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly." In file included from StockIcons.h:21:0, from StockIcons.cxx:23: /usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly." In file included from StockIcons.h:21:0, from MainView.cxx:24: /usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
Patch available at: http://trac.emma-soft.com/epdfview/changeset/369
+ 16 Apr 2012; Daniel Pielmeier <billie@gentoo.org> epdfview-0.1.8-r1.ebuild, + +files/epdfview-0.1.8-glib-2.31-build-fix.patch: + Fix bug building with glib-2.31. Thanks to Peter Alfredsen in bug #412105.
*** Bug 417901 has been marked as a duplicate of this bug. ***
(In reply to comment #2) > + 16 Apr 2012; Daniel Pielmeier <billie@gentoo.org> > epdfview-0.1.8-r1.ebuild, > + +files/epdfview-0.1.8-glib-2.31-build-fix.patch: > + Fix bug building with glib-2.31. Thanks to Peter Alfredsen in bug #412105. The same issue exists with epdfview-0.1.8 and dev-libs/glib-2.32.3 (yes, I realize that is not a stable version)... glad to report that epdfview-0.1.8-r1 builds correctly on this glib version, also. Thanks.
*** Bug 425800 has been marked as a duplicate of this bug. ***