Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 412365

Summary: x11-misc/parcellite with >=dev-libs/glib-2.31 - /usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly."
Product: Gentoo Linux Reporter: Elis Axelsson <elis.axelsson>
Component: Current packagesAssignee: Desktop Misc. Team <desktop-misc>
Status: RESOLVED FIXED    
Severity: normal CC: manday
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: http://sourceforge.net/tracker/?func=detail&atid=1097277&aid=3518845&group_id=235597
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 406437    
Attachments: build.log of the failed build
Patch that fixes the compilation issue with parcellite and >=glib-2.32.0

Description Elis Axelsson 2012-04-17 16:11:51 UTC
Any version of x11-misc/parcellite in the tree fails to build with >=dev-libs/glib-2.32.0.

Reproducible: Always

Steps to Reproduce:
1. Get >=dev-libs/glib-2.32.0
2. emerge x11-misc/parcellite
Actual Results:  
Build failure

Expected Results:  
Successful build
Comment 1 Elis Axelsson 2012-04-17 16:13:30 UTC
Created attachment 309281 [details]
build.log of the failed build
Comment 2 Daniel Kuehn (RETIRED) gentoo-dev 2012-04-17 16:16:07 UTC
I can reproduce the error building with glib-2.32.1

A simple fix in keybinder.h from <glib/gtypes.h> to <glib.h> was needed to make parcellite compile and install successfully.
Comment 3 Daniel Kuehn (RETIRED) gentoo-dev 2012-04-17 16:22:30 UTC
Created attachment 309283 [details, diff]
Patch that fixes the compilation issue with parcellite and >=glib-2.32.0
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-04-25 11:26:07 UTC
*** Bug 413459 has been marked as a duplicate of this bug. ***
Comment 5 Jean-Claude Gervais 2012-04-29 23:53:41 UTC
Same problem trying to build epdfview-0.1.8 on x86

i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../..    -DDATADIR='"/usr/share/epdfview"' -I../../src -pthread -I/usr/include/gtk-2.0 -I/usr/lib/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/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/libdrm   -Os -march=core2 -pipe -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 StockIcons.cxx:23:
/usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2012-04-30 12:12:17 UTC
(In reply to comment #5)
> Same problem trying to build epdfview-0.1.8 on x86
> 
> i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../..   
> -DDATADIR='"/usr/share/epdfview"' -I../../src -pthread
> -I/usr/include/gtk-2.0 -I/usr/lib/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/lib/glib-2.0/include -I/usr/include/pixman-1
> -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/libdrm   -Os
> -march=core2 -pipe -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 StockIcons.cxx:23:
> /usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can
> be included directly."

And why do you think this has anything do with parcellite? epdfview is a different application. file a new bug.
Comment 7 Elis Axelsson 2012-05-04 07:09:51 UTC
Patch is accepted upstream.

http://sourceforge.net/tracker/?func=detail&atid=1097277&aid=3518845&group_id=235597
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2012-05-04 07:30:54 UTC
patch added to portage for version 1.0.2_rc5, thanks guys

(one bug, one package)