gcc -fno-strict-aliasing -DNDEBUG -mcpu=athlon-xp -march=athlon-xp -O2 -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.3 -c src/gtk/controls2.cpp -o build-gtk2/temp.linux-i686-2.3/src/gtk/controls2.o -I/usr/lib/wx/include/gtk2-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/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include src/gtk/controls2.cpp: In function `PyObject* _wrap_wxTreeEvent_SetItem(PyObject*, PyObject*, PyObject*)': src/gtk/controls2.cpp:6390: error: `SetItem' undeclared (first use this function) src/gtk/controls2.cpp:6390: error: (Each undeclared identifier is reported only once for each function it appears in.) src/gtk/controls2.cpp: In function `PyObject* _wrap_wxTreeEvent_SetOldItem(PyObject*, PyObject*, PyObject*)': src/gtk/controls2.cpp:6426: error: `SetOldItem' undeclared (first use this function) src/gtk/controls2.cpp: In function `PyObject* _wrap_wxTreeEvent_SetPoint(PyObject*, PyObject*, PyObject*)': src/gtk/controls2.cpp:6462: error: `SetPoint' undeclared (first use this function) src/gtk/controls2.cpp: In function `PyObject* _wrap_wxTreeEvent_SetKeyEvent(PyObject*, PyObject*, PyObject*)': src/gtk/controls2.cpp:6498: error: `SetKeyEvent' undeclared (first use this function) src/gtk/controls2.cpp: In function `PyObject* _wrap_wxTreeEvent_SetLabel(PyObject*, PyObject*, PyObject*)': src/gtk/controls2.cpp:6533: error: `SetLabel' undeclared (first use this function) src/gtk/controls2.cpp: In function `PyObject* _wrap_wxTreeEvent_SetEditCanceled(PyObject*, PyObject*, PyObject*)': src/gtk/controls2.cpp:6568: error: `SetEditCanceled' undeclared (first use this function) 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
didi root # emerge info Portage 2.0.49-r20 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.4.24) ================================================================= System uname: 2.4.24 i686 AMD Athlon(tm) XP 2200+ Gentoo Base System version 1.4.3.12 distcc 2.12 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -march=athlon-xp -O2 -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /lib/modules /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -march=athlon-xp -O2 -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache fixpackages sandbox" GENTOO_MIRRORS="http://intern.gate.wg/ http://intern.gate.wg/olddistfiles ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo ftp://gentoo.linux.no/pub/gentoo/ http://gentoo.inode.at/ http://gentoo.linux.no/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://gentoo.inode.at/source/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage/" USE="3dnow X aalib alsa apache2 apm arts avi berkdb bonobo cdr crypt cups dga directfb dvd dvdr encode esd fbcon foomaticdb gd gd-external gdbm ggi gif gnome gpg gphoto2 gpm gtk gtk2 gtkhtml guile imlib jpeg kde libg++ libwww lirc mad matroska mikmod mozilla mpeg mysql ncures ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tetex truetype vorbis x86 xml2 xmms xv zlib"
Did you install wxGTK manually or use the portage version?
only the portage version
can you try using some lower cflags, like removing all the -D and -mcpu fields?
nope, same problem with CFLAGS="-march=athlon-xp -O2 -pipe" :-/
can you please attach the full build log? thanks
Created attachment 25798 [details] a log from emerge
I got this same error with version 2.4.1.2. Maybe this additional info helps. gcc -fno-strict-aliasing -DNDEBUG -march=athlon -O3 -pipe -fomit-frame-pointer -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.3 -c src/gtk/controls2.cpp -o build-gtk2/temp.linux-i686-2.3/src/gtk/controls2.o -I/usr/lib/wx/include/gtk2-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/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include src/gtk/controls2.cpp: In function `PyObject* _wrap_wxTreeEvent_SetItem(PyObject*, PyObject*, PyObject*)': src/gtk/controls2.cpp:6390: error: `SetItem' undeclared (first use this function) src/gtk/controls2.cpp:6390: error: (Each undeclared identifier is reported only once for each function it appears in.) src/gtk/controls2.cpp: In function `PyObject* _wrap_wxTreeEvent_SetOldItem(PyObject*, PyObject*, PyObject*)': src/gtk/controls2.cpp:6426: error: `SetOldItem' undeclared (first use this function) src/gtk/controls2.cpp: In function `PyObject* _wrap_wxTreeEvent_SetPoint(PyObject*, PyObject*, PyObject*)': src/gtk/controls2.cpp:6462: error: `SetPoint' undeclared (first use this function) src/gtk/controls2.cpp: In function `PyObject* _wrap_wxTreeEvent_SetKeyEvent(PyObject*, PyObject*, PyObject*)': src/gtk/controls2.cpp:6498: error: `SetKeyEvent' undeclared (first use this function) src/gtk/controls2.cpp: In function `PyObject* _wrap_wxTreeEvent_SetLabel(PyObject*, PyObject*, PyObject*)': src/gtk/controls2.cpp:6533: error: `SetLabel' undeclared (first use this function) src/gtk/controls2.cpp: In function `PyObject* _wrap_wxTreeEvent_SetEditCanceled(PyObject*, PyObject*, PyObject*)': src/gtk/controls2.cpp:6568: error: `SetEditCanceled' undeclared (first use this function) error: command 'gcc' failed with exit status 1 !!! ERROR: dev-python/wxPython-2.4.1.2 failed. !!! Function src_compile, Line 70, Exitcode 1 !!! build failed garnet root # emerge info Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-gentoo-r5)================================================================= System uname: 2.4.22-gentoo-r5 i686 AMD Athlon(tm) processor Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="3dnow X alsa apm arts avi berkdb bonobo crypt cups dvd encode esd evo foomaticdb gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile imap imlib java jpeg kde ldap libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline scanner sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml xml2 xmms xv zlib"
Mine finally compiled. Not sure why. Changes I made since I last tried: I switched from my own hpoj build to the ebuild one. Because of this I had to unmerge ucd-snmp and use net-snmp instead. I also deleted my entire /usr/local directory since I no longer needed it. I expect there was some conflict between /usr/local and /usr stuff.
Hey Tom, I remembered that I installed wxGTK one time from source (not from portage) I searched in /usr/local for 'wx' and removed the files. All works well now :) mfg Dietrich