Summary: | [gnome-overlay] glib-2.21* + wxGTK-2.8.10.1-r2 clashes on GSocket symbol and breaks wxGTK using applications | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jory A. Pratt <anarchy> |
Component: | Current packages | Assignee: | Gentoo wxWidgets project <wxwidgets> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | Arsen.Shnurkov, boltomli, erkiferenc, gentoo, gnome, ikelos, insanity5902, ivan.diorditsa, kanelxake, netcelli, proaudio, uzytkownik2 |
Priority: | High | ||
Version: | 2008.0 | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://trac.wxwidgets.org/ticket/10883 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 305331 | ||
Attachments: |
wxGTK-2.8.10.1-gsockets-r61009.patch
wxGTK-2.6.4.0-gsocket.patch audacity-1.3.8-gsocket.patch |
Description
Jory A. Pratt
2009-07-23 00:14:52 UTC
PORTDIR_OVERLAY="/home/gentoo /home/gnome /home/mozilla" Right. You are using experimental GTK+ from gnome-overlay? It's a development release, but we do accept patches. quoting mraudsepp.. wxGTK uses GSocket symbol in its cross-platform wxSocket implementation, and that clashes with a struct name in new glib (the new network handling stuff I think) fixed in wxWidgets SVN, no release with the fix, not exactly in a hurry to patch it in a revbump due to it being a development version of glib still.. *** Bug 278938 has been marked as a duplicate of this bug. *** This is also preventing Audacity from compiling. I don't know if it is safe to assume all wx based applications will fail, or if audacity is doing something else? From the looks of it, all wx based applications will fail --- /usr/include/glib-2.0/gio/giotypes.h:120: error: conflicting declaration 'typedef struct _GSocket GSocket' /usr/include/wx-2.8/wx/unix/gsockunx.h:41: error: 'class GSocket' has a previous declaration as 'class GSocket' Created attachment 199169 [details, diff]
wxGTK-2.8.10.1-gsockets-r61009.patch
grabbed this from their svn, wxGTK-2.8.10.1-r1 compiled fine with this.
Created attachment 199170 [details, diff] wxGTK-2.6.4.0-gsocket.patch and here's for 2.6 (http://cvs.fedoraproject.org/viewvc/devel/compat-wxGTK26/wxGTK-2.6.4-gsocket-conflict.patch) Created attachment 199224 [details, diff] audacity-1.3.8-gsocket.patch Here is the patch for audacity, which will fix the OP problem. grabbed from http://osdir.com/ml/fedora-extras-commits/2009-07/msg06497.html I had to make one change, I renamed the glib GSocket as in the wxGTK patch for 2.8 for it to work. *** Bug 279328 has been marked as a duplicate of this bug. *** *** Bug 279708 has been marked as a duplicate of this bug. *** (In reply to comment #5) > Created an attachment (id=199169) [edit] > wxGTK-2.8.10.1-gsockets-r61009.patch > > grabbed this from their svn, wxGTK-2.8.10.1-r1 compiled fine with this. > Patch solved the problem :D *** Bug 279939 has been marked as a duplicate of this bug. *** Great. With these patches I successfully compiled both wxGTK-2.8.10.1 and audacity-1.3.8. Thx. Comment on attachment 199170 [details, diff]
wxGTK-2.6.4.0-gsocket.patch
doesn't work w/ the current glib version
the 2.8 patch works just as fine on 2.6. i'm going to apply the wxGTK patch if leio has no objections. how many other apps are we talking about patching here? Not sure, and my lack of wxGTK doesn't help :/ I am not sure what audacity does differently. But I tried a few other apps that depend on wxGTK (xchm and filezilla) both compiled fine. bochs compiled fine (with wxGTK patched). Fixed in wxGTK-2.6.4.0-r6 and wxGTK-2.8.10.1-r2. I've mailed audacity upstream about the patch. Fedora's version works fine for me without the extra change, so I'm applying that. If upstream has a better fix later, I'll update it. Thanks for the legwork. If you encounter other packages failing to compile, please file separate bugs. sorry 2.8.10.1-r3 *** Bug 305835 has been marked as a duplicate of this bug. *** |