When i try to emerge wxPython 2.4.0.6 it errors out during compile. Reproducible: Always Steps to Reproduce: 1.emerge wxPython 2. 3. Actual Results: gcc -DNDEBUG -O3 -march=athlon -pipe -O3 -mmmx -m3dnow -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.2 -c src/helpers.cpp -o build-gtk2/temp.linux-i686-2.2/src/helpers.o -I/usr/lib/wx/include/gtk-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include In file included from /usr/include/gtk-2.0/gdk/gdkcolor.h:4, from /usr/include/gtk-2.0/gdk/gdk.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:31, from src/helpers.cpp:26: /usr/include/gtk-2.0/gdk/gdktypes.h:78: conflicting types for `typedef struct _GdkAtom*GdkAtom' /usr/include/wx/defs.h:2055: previous declaration as `typedef gulong GdkAtom' /usr/include/gtk-2.0/gdk/gdktypes.h:104: conflicting types for `typedef struct _GdkDrawable GdkBitmap' /usr/include/wx/defs.h:2057: previous declaration as `typedef struct _GdkWindow GdkBitmap' /usr/include/gtk-2.0/gdk/gdktypes.h:105: conflicting types for `typedef struct _GdkDrawable GdkPixmap' /usr/include/wx/defs.h:2058: previous declaration as `typedef struct _GdkWindow GdkPixmap' /usr/include/gtk-2.0/gdk/gdktypes.h:106: conflicting types for `typedef struct _GdkDrawable GdkWindow' /usr/include/wx/defs.h:2056: previous declaration as `typedef struct _GdkWindow GdkWindow' In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:32, from /usr/include/gtk-2.0/gtk/gtkwidget.h:32, from /usr/include/gtk-2.0/gtk/gtkmisc.h:32, from /usr/include/gtk-2.0/gtk/gtklabel.h:31, from /usr/include/gtk-2.0/gtk/gtkaccellabel.h:34, from /usr/include/gtk-2.0/gtk/gtk.h:33, from src/helpers.cpp:26: /usr/include/gtk-2.0/gtk/gtktypeutils.h:66:1: warning: "GTK_CLASS_TYPE" redefined In file included from /usr/include/wx/wx.h:15, from src/helpers.h:16, from src/helpers.cpp:16: /usr/include/wx/defs.h:2087:1: warning: this is the location of the previous definition In file included from /usr/include/gtk-2.0/gtk/gtkwidget.h:32, from /usr/include/gtk-2.0/gtk/gtkmisc.h:32, from /usr/include/gtk-2.0/gtk/gtklabel.h:31, from /usr/include/gtk-2.0/gtk/gtkaccellabel.h:34, from /usr/include/gtk-2.0/gtk/gtk.h:33, from src/helpers.cpp:26: /usr/include/gtk-2.0/gtk/gtkobject.h:46:1: warning: "GTK_OBJECT_GET_CLASS" redefined In file included from /usr/include/wx/wx.h:15, from src/helpers.h:16, from src/helpers.cpp:16: /usr/include/wx/defs.h:2086:1: warning: this is the location of the previous definition In file included from src/helpers.cpp:28: /usr/include/wx/gtk/win_gtk.h:23:29: gtk/gtkfeatures.h: No such file or directory src/helpers.cpp: In function `long int wxPyGetWinHandle(wxWindow*)': src/helpers.cpp:1551: `GdkWindowPrivate' undeclared (first use this function) src/helpers.cpp:1551: (Each undeclared identifier is reported only once for each function it appears in.) src/helpers.cpp:1551: `bwin' undeclared (first use this function) src/helpers.cpp:1551: parse error before `)' token error: command 'gcc' failed with exit status 1 !!! ERROR: dev-python/wxPython-2.4.0.6 failed. !!! Function src_compile, Line 53, Exitcode 1 !!! build failed Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r0) ================================================================= System uname: 2.4.20-ck4 i686 AMD Duron(tm) Processor GENTOO_MIRRORS=" http://ftp.easynet.nl/mirror/gentoo//" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss 3dnow apm avi crypt encode gif jpeg libg++ mmx motif mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm berkdb slang readline arts bonobo svga tcltk java guile mysql X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome qt opengl -cups dga fbcon -gtk gtk2 -kde -mikmod samba usb" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-O3 -march=athlon -pipe -O3 -mmmx -m3dnow " CXXFLAGS="-O3 -march=athlon -pipe -O3 -mmmx -m3dnow " ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j1" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Created attachment 9665 [details] fix for wxPython 2.4.0.6 The wxPython-2.3.3.1-noglcanvas.diff won't work with 2.4.0.6 source. Archive contains a new patch and a new ebuild. Maybe the patch isn't needed at all - too lazy to check this. If you still have problems, try adding "-gtk2" to your USE variable.
Created attachment 9666 [details] fix for wxPython 2.4.0.6 The wxPython-2.3.3.1-noglcanvas.diff won't work with 2.4.0.6 source. Archive contains a new patch and a new ebuild. Maybe the patch isn't needed at all - too lazy to check this. If you still have problems, try adding "-gtk2" to your USE variable.
Comment on attachment 9666 [details] fix for wxPython 2.4.0.6 The wxPython-2.3.3.1-noglcanvas.diff won't work with 2.4.0.6 source. Archive contains a new patch and a new ebuild. Maybe the patch isn't needed at all - too lazy to check this. If you still have problems, try adding "-gtk2" to your USE variable.
the problem is your wxGTK is compiled by gtk, not gtk2. You'll have to recompile with wxGTK with gtk2 or wxPython without gtk: eg USE="gtk2" emerge wxGTK or USE="-gtk2" emerge wxPython *** This bug has been marked as a duplicate of 17525 ***