Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278778 - [gnome-overlay] glib-2.21* + wxGTK-2.8.10.1-r2 clashes on GSocket symbol and breaks wxGTK using applications
Summary: [gnome-overlay] glib-2.21* + wxGTK-2.8.10.1-r2 clashes on GSocket symbol and ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo wxWidgets project
URL: http://trac.wxwidgets.org/ticket/10883
Whiteboard:
Keywords:
: 278938 279328 279708 279939 305835 (view as bug list)
Depends on:
Blocks: 305331
  Show dependency tree
 
Reported: 2009-07-23 00:14 UTC by Jory A. Pratt
Modified: 2010-02-19 13:54 UTC (History)
12 users (show)

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


Attachments
wxGTK-2.8.10.1-gsockets-r61009.patch (wxGTK-2.8.10.1-gsockets-r61009.patch,558 bytes, patch)
2009-07-25 21:28 UTC, Ryan
Details | Diff
wxGTK-2.6.4.0-gsocket.patch (wxGTK-2.6.4.0-gsocket.patch,718 bytes, patch)
2009-07-25 21:38 UTC, Ryan Hill (RETIRED)
Details | Diff
audacity-1.3.8-gsocket.patch (audacity-1.3.8-gsocket.patch,720 bytes, patch)
2009-07-26 15:32 UTC, Ryan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jory A. Pratt gentoo-dev 2009-07-23 00:14:52 UTC
n file included from AudioIO.h:25,
                 from AudacityApp.cpp:61:
/var/tmp/portage/media-sound/audacity-1.3.8/work/audacity-src-1.3.8/lib-src/portsmf/allegro.h:531: warning: ignoring #pragma warning 
/var/tmp/portage/media-sound/audacity-1.3.8/work/audacity-src-1.3.8/lib-src/portsmf/allegro.h:532: warning: ignoring #pragma warning 
/var/tmp/portage/media-sound/audacity-1.3.8/work/audacity-src-1.3.8/lib-src/portsmf/allegro.h:534: warning: ignoring #pragma warning 
/var/tmp/portage/media-sound/audacity-1.3.8/work/audacity-src-1.3.8/lib-src/portsmf/allegro.h:585: warning: ignoring #pragma warning 
/var/tmp/portage/media-sound/audacity-1.3.8/work/audacity-src-1.3.8/lib-src/portsmf/allegro.h:587: warning: ignoring #pragma warning 
/var/tmp/portage/media-sound/audacity-1.3.8/work/audacity-src-1.3.8/lib-src/portsmf/allegro.h:593: warning: ignoring #pragma warning 
/var/tmp/portage/media-sound/audacity-1.3.8/work/audacity-src-1.3.8/lib-src/portsmf/allegro.h:594: warning: ignoring #pragma warning 
/var/tmp/portage/media-sound/audacity-1.3.8/work/audacity-src-1.3.8/lib-src/portsmf/allegro.h:596: warning: ignoring #pragma warning 
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 AudacityApp.cpp:334:
/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'
make[1]: *** [AudacityApp.o] Error 1
make: *** [audacity] Error 2


Portage 2.1.6.13 (default/linux/amd64/2008.0/no-multilib, gcc-4.4.0, glibc-2.10.1-r0, 2.6.30-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r3-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 22 Jul 2009 13:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.8.5-r3, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -msse3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O2 -Wl,--as-needed -Wl,--enable-new-dtags -Wl,--sort-common -Wl,-zcombreloc -Wl,--hash-style=both"
MAKEOPTS="-j3 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/gentoo /home/gnome /home/mozilla"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 amrnb amrwb aspell audit berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups custom-optimization dbus dri dvd dvdr encode faad fam ffmpeg fortran gdbm glitz gnome gnome-keyring gstreamer gtk hal iconv isdnlog java java6 jpeg laptop libproxy mad midi mjpeg mmx mp3 mpeg mudflap nautilus ncurses networkmanager nptl nptlonly opengl openmp pam pcre perl pic png policykit pppd python readline reflection ruby session spell spl sse sse2 ssl svg sysfs tcpd threads tiff truetype twolame unicode usb vdpau vorbis x264 xinerama xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" NETBEANS_MODULES="apisupport cnd harness ide java nb websvccommon xml ruby dlight webcommon" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2009-07-23 07:43: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.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2009-07-23 08:41:30 UTC
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..
Comment 3 Mart Raudsepp gentoo-dev 2009-07-24 16:17:32 UTC
*** Bug 278938 has been marked as a duplicate of this bug. ***
Comment 4 Ryan 2009-07-25 20:04:21 UTC
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'

Comment 5 Ryan 2009-07-25 21:28:56 UTC
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.
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2009-07-25 21:38:34 UTC
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)
Comment 7 Ryan 2009-07-26 15:32:47 UTC
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.
Comment 8 Ryan Hill (RETIRED) gentoo-dev 2009-07-29 07:22:41 UTC
*** Bug 279328 has been marked as a duplicate of this bug. ***
Comment 9 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-07-31 05:10:36 UTC
*** Bug 279708 has been marked as a duplicate of this bug. ***
Comment 10 Davide 2009-08-01 06:25:17 UTC
(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
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2009-08-01 18:00:55 UTC
*** Bug 279939 has been marked as a duplicate of this bug. ***
Comment 12 Ivan Diorditsa 2009-08-01 20:59:01 UTC
Great. With these patches I successfully compiled both wxGTK-2.8.10.1 and audacity-1.3.8. Thx.
Comment 13 Ryan Hill (RETIRED) gentoo-dev 2009-08-02 06:05:12 UTC
Comment on attachment 199170 [details, diff]
wxGTK-2.6.4.0-gsocket.patch

doesn't work w/ the current glib version
Comment 14 Ryan Hill (RETIRED) gentoo-dev 2009-08-04 07:47:52 UTC
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?
Comment 15 Ryan 2009-08-04 13:33:30 UTC
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.
Comment 16 Maciej Piechotka 2009-08-04 13:39:33 UTC
bochs compiled fine (with wxGTK patched).
Comment 17 Ryan Hill (RETIRED) gentoo-dev 2009-08-06 05:10:08 UTC
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.
Comment 18 Ryan Hill (RETIRED) gentoo-dev 2009-08-06 05:10:41 UTC
sorry 2.8.10.1-r3
Comment 19 Pacho Ramos gentoo-dev 2010-02-19 13:54:14 UTC
*** Bug 305835 has been marked as a duplicate of this bug. ***