Skip to content

error: conflicting declaration ‘typedef struct _GSocket GSocket’ #67

conradwt opened this Issue Feb 4, 2010 · 3 comments

2 participants

conradwt commented Feb 4, 2010

Hi, The e-texteditor fails to build on Ubuntu 9.10. Thus, I'm getting the following error message:

$ make DEBUG=1
[CC] BundleItemEditorCtrl.cpp
In file included from /usr/include/glib-2.0/gio/gio.h:28,
from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from /usr/include/gtk-2.0/gdk/gdk.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:32,
from key_hook.h:13,
from EditorCtrl.h:29,
from BundleItemEditorCtrl.h:4,
from BundleItemEditorCtrl.cpp:1:
/usr/include/glib-2.0/gio/giotypes.h:120: error: conflicting declaration ‘typedef struct _GSocket GSocket’
/home/conradwt/c.dir/projects/e/external/out.debug/include/wx-2.8/wx/unix/gsockunx.h:41: error: ‘class GSocket’ has a previous declaration as ‘class GSocket’
make: *** [.objs.debug/BundleItemEditorCtrl.o] Error 1


I have the same problem (Ubuntu 9.10 AMD64). A little googling has shown this is a fix unfortunately it's already in external/patches/wxWidgets-gsock.patch and has already been applied to external/wxwidgets/src/gtk/gsockgtk.cpp.

I also tried this dirty hack mentioned here and that seemed to alleviate the pain when it got me to this issue I applied the patch mentioned in there but the GSocket problem came back with a vengeance so this is no fix at all.

Currently not sure how to proceed to get this built.


Noticed that I had external/wxwidgets/src/gtk1 as well as external/wxwidgets/src/gtk so I modified the gsockgtk.cpp file to undef GSocket but that hasn't worked either. Any suggestions?


azuwis posted a fix for this one here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.