Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 307603 - dev-util/codeblocks- USE="contrib pch" fails with wxGTK-2.8 and glib-2.22
Summary: dev-util/codeblocks- USE="contrib pch" fails with wxGTK-2.8 and glib-2.22
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jurek Bartuszek (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-03 11:56 UTC by Christoph Brill (egore) (RESIGNED)
Modified: 2010-05-06 06:21 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
codeblocks-8.02-gsocket.patch (codeblocks-8.02-gsocket.patch,1.33 KB, patch)
2010-04-17 07:16 UTC, Ryan Hill (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Brill (egore) (RESIGNED) 2010-03-03 11:56:16 UTC
Building codeblock 8.02-r1 I get the following error:

In file included from /usr/include/glib-2.0/gio/gio.h:29,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-2.0/gdk/gdk.h:33,
                 from /usr/include/gtk-2.0/gtk/gtkwidget.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkcontainer.h:36,
                 from /usr/include/wx-2.8/wx/gtk/win_gtk.h:19,
                 from codesnippets.cpp:56:
/usr/include/glib-2.0/gio/giotypes.h:120: Fehler: in Konflikt stehende Deklaration »typedef struct _GSocket GSocket«
/usr/include/wx-2.8/wx/unix/gsockunx.h:41: Fehler: »class GSocket« hat eine vorherige Deklaration als »class GSocket«
In file included from /usr/include/glib-2.0/gio/gio.h:29,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-2.0/gdk/gdk.h:33,
                 from /usr/include/gtk-2.0/gtk/gtkwidget.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkcontainer.h:36,
                 from /usr/include/wx-2.8/wx/gtk/win_gtk.h:19,
                 from codesnippetstreectrl.cpp:53:
/usr/include/glib-2.0/gio/giotypes.h:120: Fehler: in Konflikt stehende Deklaration »typedef struct _GSocket GSocket«
/usr/include/wx-2.8/wx/unix/gsockunx.h:41: Fehler: »class GSocket« hat eine vorherige Deklaration als »class GSocket«

Looks like we need something similar to http://bugs.gentoo.org/show_bug.cgi?id=278778

Reproducible: Always

Steps to Reproduce:
Comment 1 Rafał Mużyło 2010-03-03 15:59:00 UTC
Well, what's your version of glib and wxGTK ?
Comment 2 Christoph Brill (egore) (RESIGNED) 2010-03-03 19:28:21 UTC
Sorry, forgot to mention:
glib-2.22.4 (+fam +xattr)
wxGTK-2.8.10.1-r5 (+X +gnome +gstreamer +opengl +sdl)
Comment 4 cx405 2010-04-03 00:33:23 UTC
I have exactly the same trouble!
AMD64, Gentoo 10.0, stable.

x11-libs/wxGTK 2.8.10.1-r5(2.8)(02:46:12 03.04.2010)(X gstreamer opengl sdl -debug -doc -gnome -odbc -pch)

compiles, but at the point of emerge of dev-util/codeblocks-8.02-r1  USE="contrib pch -debug -static", fails.


:Ryan:
Im unable to open your link..
Comment 5 cx405 2010-04-03 00:35:52 UTC
sys-libs/glibc-2.10.1-r1  USE="gd glibc-omitfp (multilib) nls -debug (-hardened) -profile (-selinux) -vanilla"
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2010-04-03 01:17:43 UTC
jurek, mind if i fix this?
Comment 7 Collin Day 2010-04-14 05:47:42 UTC
(In reply to comment #6)
> jurek, mind if i fix this?
> 

I am having the same problem as well.  I don't suppose you could make us a patch file for the time being that we could out into our own overlay?  It seems like you have the fix.  I personally would appreciate it. :)  Thanks!
Comment 8 Ryan Hill (RETIRED) gentoo-dev 2010-04-17 07:16:09 UTC
Created attachment 228101 [details, diff]
codeblocks-8.02-gsocket.patch

strange, i can't reproduce this any more.  here's the patch anyways.  you'll need to add it after the `cd ${S}` line for it to apply.  if it works for you i'll check it in.
Comment 9 Pavlo Lavrenenko 2010-05-05 13:22:11 UTC
(In reply to comment #8)
> Created an attachment (id=228101) [details]
> codeblocks-8.02-gsocket.patch
> 
> if it works for you i'll check it in.

That works, thanks.
Comment 10 Ryan Hill (RETIRED) gentoo-dev 2010-05-06 06:21:06 UTC
Okay, looks like it also needs USE="pch" to fail.  Fixed.