If wxGTK (x11-libs/wxGTK-2.6.0-r1) isn't built with the tiff USE flag enabled, the compilation of wxpython (dev-python/wxpython-2.6.0.0-r1) fails to build with the following error: running build_ext building '_core_' extension creating build-gtk2.unicode/temp.linux-x86_64-2.3 creating build-gtk2.unicode/temp.linux-x86_64-2.3/src creating build-gtk2.unicode/temp.linux-x86_64-2.3/src/gtk x86_64-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=athlon64 -O2 -pipe -fno-ident -fPIC -DSWIG_TYPE_TABLE=_wxPython_table -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -Iinclude -Isrc -I/usr/lib64/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/python2.3 -c src/gtk/_core_wrap.cpp -o build-gtk2.unicode/temp.linux-x86_64-2.3/src/gtk/_core_wrap.o src/gtk/_core_wrap.cpp:2493: error: `wxIMAGE_OPTION_BITSPERSAMPLE' was not declared in this scope src/gtk/_core_wrap.cpp:2494: error: `wxIMAGE_OPTION_SAMPLESPERPIXEL' was not declared in this scope src/gtk/_core_wrap.cpp:2495: error: `wxIMAGE_OPTION_COMPRESSION' was not declared in this scope src/gtk/_core_wrap.cpp:2496: error: `wxIMAGE_OPTION_IMAGEDESCRIPTOR' was not declared in this scope src/gtk/_core_wrap.cpp: In function `PyObject* _wrap_new_TIFFHandler(PyObject*, PyObject*, PyObject*)': src/gtk/_core_wrap.cpp:14435: error: `wxTIFFHandler' undeclared (first use this function) src/gtk/_core_wrap.cpp:14435: error: (Each undeclared identifier is reported only once for each function it appears in.) src/gtk/_core_wrap.cpp:14435: error: `result' undeclared (first use this function) src/gtk/_core_wrap.cpp:14443: error: expected primary-expression before ')' token src/gtk/_core_wrap.cpp:14443: error: expected `;' before "new" src/gtk/_core_wrap.cpp: In function `void* _p_wxTIFFHandlerTo_p_wxImageHandler(void*)': src/gtk/_core_wrap.cpp:46831: error: `wxTIFFHandler' undeclared (first use this function) src/gtk/_core_wrap.cpp:46831: error: expected primary-expression before "void" src/gtk/_core_wrap.cpp:46831: error: expected `)' before "void" src/gtk/_core_wrap.cpp: In function `void* _p_wxTIFFHandlerTo_p_wxObject(void*)': src/gtk/_core_wrap.cpp:46990: error: `wxTIFFHandler' undeclared (first use this function) src/gtk/_core_wrap.cpp:46990: error: expected primary-expression before "void" src/gtk/_core_wrap.cpp:46990: error: expected `)' before "void" error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1 Reproducible: Always Steps to Reproduce: 1. USE="-tiff" emerge =x11-libs/wxGTK-2.6.0-r1 2. emerge =dev-python/wxpython-2.6.0.0-r1 $ emerge --info Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.12-rc2 x86_64) ================================================================= System uname: 2.6.12-rc2 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.12 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.8 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16-r1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -fno-ident" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe -fno-ident" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo" LANG="en_GB.utf8" LC_ALL="en_GB.utf8" LDFLAGS="-Wl,-O1" LINGUAS="en_GB" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X alsa apache2 avi cdr crypt dvd dvdr flac gpm gtk gtk2 imagemagick imlib jpeg mng mpeg msn mysql ncurses nls nptl offensive oggvorbis opengl pam pdflib php png python readline samba truetype unicode xine xpm xv xvid zlib linguas_en_GB userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET
I can reproduce the bug. After adding tiff USE-flag and re-emerging wxGTK, the problem disappears, thanks.
confirmed on x86. since wxpython doesn't use a configure script and doesn't have an option for tiff that can be passed to setup.py i'm not sure how this could be fixed.
This is fixed in wxGTK-2.6.1 / wxpython-2.6.1.0 (which were just added to portage), by reverting to the previous ebuilds' behaviour (tiff/gif/png enabled by default unless compiling wxbase only). Thanks.
Same bug on 2.8 version of wxpython.
No there isn't. wxpython-2.8.11.0 has >=x11-libs/wxGTK-${PV}:2.8[opengl?,tiff,X].