copying wxPython/tools/XRCed/xxx.py -> build-gtk2/lib.linux-i686-2.2/wxPython/tools/XRCed running build_ext building 'wxc' extension creating build-gtk2/temp.linux-i686-2.2 creating build-gtk2/temp.linux-i686-2.2/src creating build-gtk2/temp.linux-i686-2.2/src/gtk gcc -DNDEBUG -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.2 -c src/gtk/streams.cpp -o build-gtk2/temp.linux-i686-2.2/src/gtk/streams.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 gcc -DNDEBUG -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.2 -c src/gtk/controls2.cpp -o build-gtk2/temp.linux-i686-2.2/src/gtk/controls2.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 gcc -DNDEBUG -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.2 -c src/gtk/image.cpp -o build-gtk2/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-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 src/gtk/image.cpp: Dans function
copying wxPython/tools/XRCed/xxx.py -> build-gtk2/lib.linux-i686-2.2/wxPython/tools/XRCed running build_ext building 'wxc' extension creating build-gtk2/temp.linux-i686-2.2 creating build-gtk2/temp.linux-i686-2.2/src creating build-gtk2/temp.linux-i686-2.2/src/gtk gcc -DNDEBUG -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.2 -c src/gtk/streams.cpp -o build-gtk2/temp.linux-i686-2.2/src/gtk/streams.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 gcc -DNDEBUG -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.2 -c src/gtk/controls2.cpp -o build-gtk2/temp.linux-i686-2.2/src/gtk/controls2.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 gcc -DNDEBUG -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.2 -c src/gtk/image.cpp -o build-gtk2/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-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 src/gtk/image.cpp: Dans function « void* SwigwxTIFFHandlerTowxImageHandler(void*) »: src/gtk/image.cpp:1217: « wxTIFFHandler » non déclaré (première utilisation dans cette fonction) src/gtk/image.cpp:1217: (Chaque identificateur non déclaré est rapporté seulement une seule fois pour la fonction dans laquelle il apparaît.) src/gtk/image.cpp:1217: « src » non déclaré (première utilisation dans cette fonction) src/gtk/image.cpp:1219: erreur d'analyse syntaxique avantle jeton « ) » src/gtk/image.cpp: Dans function « void* SwigwxTIFFHandlerTowxObject(void*) »: src/gtk/image.cpp:1227: erreur d'analyse syntaxique avantle jeton « ) » src/gtk/image.cpp: Dans function « PyObject* _wrap_new_wxTIFFHandler(PyObject*, PyObject*, PyObject*) »: src/gtk/image.cpp:1235: « _result » non déclaré (première utilisation dans cette fonction) src/gtk/image.cpp:1244: erreur d'analyse syntaxique avantle jeton « ) » src/gtk/image.cpp:1244: erreur d'analyse syntaxique avantle jeton « ( » error: command 'gcc' failed with exit status 1 !!! ERROR: dev-python/wxPython-2.4.0.2 failed. !!! Function src_compile, Line 53, Exitcode 1 !!! build failed Reproducible: Always Steps to Reproduce: Actual Results: emerge failure Expected Results: emerge succes I've tryed without optimisations 'CFLAGS="" CXXFLAGS="" emerge wxpython), the result is the same. Here are my system info : emerge info Portage 2.0.47-r8 (default-x86-1.4, gcc-3.2.2, glibc-2.2.5-r4,2.3.2-r0) ================================================================= System uname: 2.4.20-ac1 i686 AMD Athlon(tm) XP 1700+ GENTOO_MIRRORS="http://gentoo.linux.no/" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/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" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 apm cups quicktime slang tetex aalib guile ruby esd cdr scanner 3dnow alsa acpi arts avi berkdb bonobo crypt dga directfb doc dvb dvd encode evo fbcon flash gb gd gdbm ggi gif gnome gpm gtk gtk2 gtkhtml icc innodb imap imlib ipv6 java jpeg lcms libwww libg++ kde maildir mbox mikmod mmx motif mpeg nas ncurses nls nocardbus mozilla mozirc mysql oav oggvorbis opengl oss pam -pcmcia pda pdflib perl pic png pnp python qt qtmt readline sdl snmp socks5 spell sse ssl svga tcltk tcpd truetype usb X xml xml2 xmms xv zlib" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -mcpu=i686 -O3 -z combreloc -pipe --force-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4" CXXFLAGS="-march=i686 -mcpu=i686 -O3 -z combreloc -pipe --force-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -malign-functions=4" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache" Hope this help...
it works for me, sorry ... can you tell me the output of : # wxgtk2u-2.4-config --cxxflags -I/usr/lib/wx/include/gtk2u-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES and fgrep -r wxTIFFHandler /usr/include/wx/gtk2u-2.4 thanks
downgrading this because it works for others .. but still something that should be fixed
wxgtk2u-2.4-config --cxxflags -I/usr/lib/wx/include/gtk2u-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -bash: wxgtk2u-2.4-config: command not found icyskeria root # locate wxgtk /usr/bin/wxgtk-2.4-config icyskeria root # wxgtk-2.4-config --cxxflags -I/usr/lib/wx/include/gtk2u-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/lib/wx/include/gtk-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES Usage: wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--static] [--libs] [--gl-libs] [--cppflags] [--cflags] [--cxxflags] [--ldflags] [--rezflags] [--cc] [--cxx] [--ld] [--inplace] wx-config returns configuration information about the installed version of wxWindows. It may be used to query its version and installation directories and also retrieve the C and C++ compilers and linker which were used for its building and the corresponding flags. The --inplace flag allows wx-config to be used from the wxWindows build directory and output flags to use the uninstalled version of the headers and libs in the build directory. (Currently configure must be invoked via a full path name for this to work correctly.) icyskeria root # fgrep -r wxTIFFHandler /usr/include/wx/gtk2u-2.4 grep: /usr/include/wx/gtk2u-2.4: Aucun fichier ou r
wxgtk2u-2.4-config --cxxflags -I/usr/lib/wx/include/gtk2u-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -bash: wxgtk2u-2.4-config: command not found icyskeria root # locate wxgtk /usr/bin/wxgtk-2.4-config icyskeria root # wxgtk-2.4-config --cxxflags -I/usr/lib/wx/include/gtk2u-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/lib/wx/include/gtk-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES Usage: wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--static] [--libs] [--gl-libs] [--cppflags] [--cflags] [--cxxflags] [--ldflags] [--rezflags] [--cc] [--cxx] [--ld] [--inplace] wx-config returns configuration information about the installed version of wxWindows. It may be used to query its version and installation directories and also retrieve the C and C++ compilers and linker which were used for its building and the corresponding flags. The --inplace flag allows wx-config to be used from the wxWindows build directory and output flags to use the uninstalled version of the headers and libs in the build directory. (Currently configure must be invoked via a full path name for this to work correctly.) icyskeria root # fgrep -r wxTIFFHandler /usr/include/wx/gtk2u-2.4 grep: /usr/include/wx/gtk2u-2.4: Aucun fichier ou répertoire de ce type (no such file or directory)
Additionnal info emerge -s wx Searching... [ Results for search key : wx ] [ Applications found : 2 ] * dev-python/wxPython Latest version available: 2.4.0.2 Latest version installed: [ Not Installed ] Size of downloaded files: 11,425 kB Homepage: http://www.wxpython.org/ Description: A blending of the wxWindows C++ class library with Python. * x11-libs/wxGTK Latest version available: 2.4.0 Latest version installed: 2.4.0 Size of downloaded files: 5,175 kB Homepage: http://www.wxwindows.org/ Description: GTK+ version of wxWindows, a cross-platform C++ GUI toolkit. icyskeria root # qpkg -fp wxgtk2u-2.4-config icyskeria root # qpkg -fp wxgtk x11-libs/wxGTK * icyskeria root #
More info (sorry about the multiple messages) fgrep -r wxTIFFHandler /usr/include/wx/ /usr/include/wx/imagtiff.h:// wxTIFFHandler /usr/include/wx/imagtiff.h:class WXDLLEXPORT wxTIFFHandler: public wxImageHandler /usr/include/wx/imagtiff.h: inline wxTIFFHandler() /usr/include/wx/imagtiff.h: DECLARE_DYNAMIC_CLASS(wxTIFFHandler)
it looks like your wxGTK is not compiled with gtk2 support. to confirm can you do: cat /var/db/pkg/x11-libs/wxGTK/USE now, if there isn't gtk2 in there, it means you didn't compile wxGTK with gtk2 support. there are 2 solutions if that is the case: 1. recompile wxGTK with gtk2 support USE="gtk2" emerge wxGTK 2. recompile wxPython without gtk2 support USE="-gtk2" emerge wxPython please note, wxGTK/Python GTK+2 support is still experimental
Yes, it was the pb. It's compiling perfectly now (as I like to play, I've choosen gtk2 option) Thx a lot for all Philippe
well, i guess its not really a bug then :)
*** Bug 17902 has been marked as a duplicate of this bug. ***
*** Bug 18274 has been marked as a duplicate of this bug. ***