I emerged wxGTK-2.4.2. -> OK Try to emerge wxPython -> compilation errors (see below) Tried with USE="-gtk gtk2" and USE="gtk -gtk2": Same problem USE="gtk -gtk2" emerge wxPython Calculating dependencies ...done! >>> emerge (1 of 1) dev-python/wxPython-2.4.2.4 to / >>> md5 src_uri ;-) wxPythonSrc-2.4.2.4.tar.gz >>> Unpacking source... >>> Unpacking wxPythonSrc-2.4.2.4.tar.gz to /var/tmp/portage/wxPython-2.4.2.4/work >>> Source unpacked. Found wx-config: /usr/bin/wxgtk-2.4-config Preparing CORE... Preparing GLCANVAS... Preparing OGL... Preparing STC... Preparing XRC... Preparing GIZMOS... Preparing DLLWIDGET... running build running build_py creating build creating build/lib.linux-i686-2.2 creating build/lib.linux-i686-2.2/wxPython copying wxPython/frames.py -> build/lib.linux-i686-2.2/wxPython copying wxPython/cmndlgs.py -> build/lib.linux-i686-2.2/wxPython copying wxPython/calendar.py -> build/lib.linux-i686-2.2/wxPython copying wxPython/wx.py -> build/lib.linux-i686-2.2/wxPython ....... copying wx/tools/XRCed/xxx.py -> build/lib.linux-i686-2.2/wx/tools/XRCed copying wx/tools/XRCed/params.py -> build/lib.linux-i686-2.2/wx/tools/XRCed copying wx/tools/XRCed/__init__.py -> build/lib.linux-i686-2.2/wx/tools/XRCed copying wx/tools/XRCed/encode_bitmaps.py -> build/lib.linux-i686-2.2/wx/tools/XRCed running build_ext building 'wxc' extension creating build/temp.linux-i686-2.2 creating build/temp.linux-i686-2.2/src creating build/temp.linux-i686-2.2/src/gtk gcc -DNDEBUG -O2 -mcpu=i686 -pipe -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.2 -c src/gtk/controls.cpp -o build/temp.linux-i686-2.2/src/gtk/controls.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-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include gcc -DNDEBUG -O2 -mcpu=i686 -pipe -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.2 -c src/gtk/image.cpp -o build/temp.linux-i686-2.2/src/gtk/image.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-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include gcc -DNDEBUG -O2 -mcpu=i686 -pipe -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.2 -c src/gtk/frames.cpp -o build/temp.linux-i686-2.2/src/gtk/frames.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-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include gcc -DNDEBUG -O2 -mcpu=i686 -pipe -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.2 -c src/gtk/events.cpp -o build/temp.linux-i686-2.2/src/gtk/events.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-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include src/gtk/events.cpp: In function `PyObject* _wrap_wxKeyEvent_KeyCode(PyObject*, PyObject*, PyObject*)': src/gtk/events.cpp:3588: let op: `KeyCode' is deprecated (declared at /usr/local/include/wx/event.h:878) gcc -DNDEBUG -O2 -mcpu=i686 -pipe -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.2 -c src/gtk/windows3.cpp -o build/temp.linux-i686-2.2/src/gtk/windows3.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-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include gcc -DNDEBUG -O2 -mcpu=i686 -pipe -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.2 -c src/gtk/wx.cpp -o build/temp.linux-i686-2.2/src/gtk/wx.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-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include gcc -DNDEBUG -O2 -mcpu=i686 -pipe -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.2 -c src/gtk/sizers.cpp -o build/temp.linux-i686-2.2/src/gtk/sizers.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-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include src/gtk/sizers.cpp: In function `PyObject* _wrap_wxSizerItem_GetOption(PyObject*, PyObject*, PyObject*)': src/gtk/sizers.cpp:661: let op: `GetOption' is deprecated (declared at /usr/local/include/wx/sizer.h:96) src/gtk/sizers.cpp: In function `PyObject* _wrap_wxSizerItem_SetOption(PyObject*, PyObject*, PyObject*)': src/gtk/sizers.cpp:775: let op: `SetOption' is deprecated (declared at /usr/local/include/wx/sizer.h:95) src/gtk/sizers.cpp: In function `PyObject* wxSizer_GetChildren(wxSizer*)': src/gtk/sizers.cpp:1705: let op: `operator 5' is deprecated (declared at /usr/local/include/wx/list.h:408) gcc -DNDEBUG -O2 -mcpu=i686 -pipe -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.2 -c src/gtk/misc2.cpp -o build/temp.linux-i686-2.2/src/gtk/misc2.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-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include src/gtk/misc2.cpp: In function `wxIcon* wxFileType_GetIcon(wxFileType*)': src/gtk/misc2.cpp:8625: error: no matching function for call to `wxFileType:: GetIcon(wxIcon*)' /usr/local/include/wx/mimetype.h:214: error: candidates are: bool wxFileType::GetIcon(wxIconLocation*) const src/gtk/misc2.cpp: In function `PyObject* wxFileType_GetIconInfo(wxFileType*)': src/gtk/misc2.cpp:8668: error: no matching function for call to `wxFileType:: GetIcon(wxIcon*, wxString*, int*)' /usr/local/include/wx/mimetype.h:214: error: candidates are: bool wxFileType::GetIcon(wxIconLocation*) const src/gtk/misc2.cpp: In function `PyObject* _wrap_wxFileHistory_GetNoHistoryFiles(PyObject*, PyObject*, PyObject*)': src/gtk/misc2.cpp:10333: let op: `GetNoHistoryFiles' is deprecated (declared at /usr/local/include/wx/docview.h:596) error: command 'gcc' failed with exit status 1 !!! ERROR: dev-python/wxPython-2.4.2.4 failed. !!! Function src_compile, Line 85, Exitcode 1 !!! build failed Reproducible: Always Steps to Reproduce: root@voyager root # emerge --info Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r6, 2.4.20-gentoo-r8) ================================================================= System uname: 2.4.20-gentoo-r8 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz Gentoo Base System version 1.4.3.11 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=i686 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" 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/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg kde libg++ mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline arts tetex svga tcltk X sdl gpm tcpd pam libwww ssl python imlib oggvorbis gnome gtk qt motif opengl 3dnow acpi alsa apache2 bonobo cdr curl dga directfb dvd esd evo fbcon gb gd ggi gphoto2 gstreamer gtk2 gtkhtml guile imap innodb java lcms ldap libgda maildir mcal memlimit mmx mozilla mysql odbc pcmcia pda ppds perl plotutils pnp postgres samba scanner slp sse tiff trusted usb wmf wxwindows xosd zeo" root@voyager root # qpkg -i -I python dev-lang/python-2.1.3-r1 * A really great language [ http://www.python.org ] dev-lang/python-2.2.3-r4 * A really great language [ http://www.python.org ] dev-python/egenix-mx-base-2.0.4 * egenix utils for Python. [ http://www.egenix.com/ ] dev-python/PyXML-0.8.2 * A collection of libraries to process XML with Python. [ http://pyxml.sourceforge.net/ ] dev-python/pyvorbis-1.3 * Python bindings for the ogg.vorbis library [ http://www.andrewchatham.com/pyogg/ ] dev-python/pygtk-2.0.0 * GTK+2 bindings for Python [ http://www.daa.com.au/~james/pygtk/ ] dev-python/python-fchksum-1.7.1 * Python module to find the checksum of files [ http://www.azstarnet.com/~donut/programs/fchksum.html ] dev-python/PyOpenGL-2.0.0.44 * Python OpenGL bindings [ http://pyopengl.sourceforge.net/ ] dev-python/pygtk-1.99.13-r1 * GTK+2 bindings for Python [ http://www.daa.com.au/~james/pygtk/ ] dev-python/pyogg-1.3 * Python bindings for the ogg library [ http://www.andrewchatham.com/pyogg/ ] root@voyager root # qpkg -i -I gtk dev-cpp/gtkmm-1.2.9-r2 * C++ interface for GTK+ [ http://gtkmm.sourceforge.net/ ] x11-libs/wxGTK-2.4.2 * GTK+ version of wxWindows, a cross-platform C++ GUI toolkit. [ http://www.wxwindows.org/ ] x11-libs/gtkglarea-1.99.0 * GL extensions for gtk+ [ http://www.gnome.org/ ] x11-libs/gtk+-2.2.4-r1 * Gimp ToolKit + [ http://www.gtk.org/ ] x11-libs/gtk+-1.2.10-r10 * The GIMP Toolkit [ http://www.gtk.org/ ] x11-libs/gtksourceview-0.6.0 * GTK text widget with syntax highlighting and other features typical for a source editor [ http://www.gnome.org/ ] x11-themes/gtk-engines-2.2.0 * GTK+1 and GTK+2 Theme Engines from GNOME including Pixmap, Metal, Raleigh, Redmond95, Raleigh and Notif [ ] x11-themes/gtk-engines-metal-2.2.0 * Metallic theme engine for GTK+ [ ] x11-themes/gtk-engines-thinice-2.0.2-r1 * GTK+1 and GTK+2 ThinIce Theme Engine [ http://thinice.sourceforge.net/ ] x11-themes/gtk-engines-pixbuf-2.2.0 * Pixbuf-based theme engine for GTK+ [ ] x11-themes/gtk-engines-redmond95-2.2.0 * Windows-like theme engine for GTK+ [ ] app-text/gtkspell-2.0.4 * spell library for GTK2 [ http://gtkspell.sourceforge.net/ ] dev-perl/gtk-perl-0.7008-r9 * Perl bindings for GTK [ http://www.perl.org/ ] dev-util/gtk-doc-1.0 * GTK+ Documentation Generator [ http://www.gtk.org/ ] dev-python/pygtk-2.0.0 * GTK+2 bindings for Python [ http://www.daa.com.au/~james/pygtk/ ] dev-python/pygtk-1.99.13-r1 * GTK+2 bindings for Python [ http://www.daa.com.au/~james/pygtk/ ] gnome-extra/libgtkhtml-2.4.0 * a Gtk+ based HTML rendering library [ http://www.gnome.org/ ] gnome-extra/libgtkhtml-3.0.9 * Lightweight HTML Rendering/Printing/Editing Engine [ http://www.gnome.org/ ] root@voyager root # qpkg -i -I wxGTK x11-libs/wxGTK-2.4.2 * GTK+ version of wxWindows, a cross-platform C++ GUI toolkit. [ http://www.wxwindows.org/ ]
you've got a version of wxGTK in /usr/local, remove that and it should fix your compile problems.
not gentoo