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
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. ***