[Audacity-devel] Audacity, developmental glib, and wxGTK
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Ryan H. <dir...@ge...> - 2009-08-05 23:33:03
|
Developmental versions of glib (2.21+) introduce a GSocket struct that conflicts with GSocket in wxGTK's src/unix/gsocket.cpp [1]. This was fixed in wxGTK with this [2] patch. On a system that has developmental versions of glib and wxGTK-2.8, audacity-1.3.8 will fail to build with this error: x86_64-unknown-linux-gnu-g++ -c -O2 -g -march=core2 -msse4.1 -fomit-frame-pointer -pipe -I../lib-src/portmixer/include -I../lib-src/portaudio-v19/include -O2 -g -march=core2 -msse4.1 -fomit-frame-pointer -pipe -Wall -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I../lib-src/FileDialog -O2 -g -march=core2 -msse4.1 -fomit-frame-pointer -pipe -Wall -I/var/tmp/portage/media-sound/audacity-1.3.8/work/audacity-src-1.3.8/lib-src/lib-widget-extra -I../lib-src/libresample/include -I../lib-src/sbsms/include -I../lib-src/libnyquist -I/usr/include/taglib -fno-strict-aliasing -I./include -I. -DLIBDIR=\"/usr/lib64\" -D__STDC_CONSTANT_MACROS -Wall -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 AudacityApp.cpp -o AudacityApp.o 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/gtk.h:33, from AudacityApp.cpp:335: /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[1]: Leaving directory `/var/tmp/portage/media-sound/audacity-1.3.8/work/audacity-src-1.3.8/src' make: *** [audacity] Error 2 Fedora has patched their copy of audacity like so [3], and I'm planning on applying the same patch to Gentoo's ebuild. I just thought I'd bring this to your attention as I haven't seen it mentioned on this list. Thanks. [1] http://trac.wxwidgets.org/ticket/10883 [2] http://trac.wxwidgets.org/changeset/61009 or http://bugs.gentoo.org/attachment.cgi?id=199169 if wxWidget's trac is down yet again. [3] http://cvs.fedoraproject.org/viewvc/devel/audacity/audacity-1.3.8-gsocket-conflict.patch http://bugs.gentoo.org/278778 -- gcc-porting, Character is what you are in the dark. treecleaner, wxwidgets @ gentoo EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662 |