Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17525 - wxPython won't emerge (wxTIFFHandler)
Summary: wxPython won't emerge (wxTIFFHandler)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
: 17902 18274 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-03-14 15:46 UTC by psk
Modified: 2003-03-27 16:05 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description psk 2003-03-14 15:46:26 UTC
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 
Comment 1 psk 2003-03-14 15:46:26 UTC
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...
Comment 2 Alastair Tse (RETIRED) gentoo-dev 2003-03-15 08:13:03 UTC
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
Comment 3 Alastair Tse (RETIRED) gentoo-dev 2003-03-15 10:01:33 UTC
downgrading this because it works for others .. but still something that should be fixed
Comment 4 psk 2003-03-15 11:22:24 UTC
 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
Comment 5 psk 2003-03-15 11:22:24 UTC
 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)



Comment 6 psk 2003-03-15 11:25:30 UTC
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 # 
Comment 7 psk 2003-03-15 11:35:02 UTC
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)
Comment 8 Alastair Tse (RETIRED) gentoo-dev 2003-03-16 10:22:22 UTC
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
Comment 9 psk 2003-03-17 02:05:31 UTC
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
Comment 10 Alastair Tse (RETIRED) gentoo-dev 2003-03-17 08:17:15 UTC
well, i guess its not really a bug then :)
Comment 11 Alastair Tse (RETIRED) gentoo-dev 2003-03-25 20:06:12 UTC
*** Bug 17902 has been marked as a duplicate of this bug. ***
Comment 12 Alastair Tse (RETIRED) gentoo-dev 2003-03-27 16:05:46 UTC
*** Bug 18274 has been marked as a duplicate of this bug. ***