The ebuild for wxPython cannot be emerged. I got this output : gcc -DNDEBUG -mcpu=athlon -march=athlon -mmmx -m3dnow -O3 -pipe -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -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.3 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_REENTRANT -fno-rtti -fno-exceptions -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -mcpu=athlon -march=athlon -mmmx -m3dnow -O3 -pipe src/gtk/image.cpp: In function `void* SwigwxTIFFHandlerTowxImageHandler(void*)': src/gtk/image.cpp:896: `wxTIFFHandler' undeclared (first use this function) src/gtk/image.cpp:896: (Each undeclared identifier is reported only once for each function it appears in.) src/gtk/image.cpp:896: `src' undeclared (first use this function) src/gtk/image.cpp:898: parse error before `)' token src/gtk/image.cpp: In function `void* SwigwxTIFFHandlerTowxObject(void*)': src/gtk/image.cpp:906: parse error before `)' token src/gtk/image.cpp: In function `PyObject* _wrap_new_wxTIFFHandler(PyObject*, PyObject*, PyObject*)': src/gtk/image.cpp:914: `_result' undeclared (first use this function) src/gtk/image.cpp:923: parse error before `)' token src/gtk/image.cpp:923: parse error before `(' token error: command 'gcc' failed with exit status 1 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 32, Exitcode 1 !!! (no error message) !!! emerge aborting on /usr/portage/dev-python/wxPython/wxPython-2.3.2.1-r1.ebuild
Created attachment 2115 [details] wxPython emerge output this is the output when i tried to emerge the second time. I don't think it's a gcc problem as I tried it using a system using 2.96 also with same results. I also have Python-2.1 on my system
What version of gcc are you using?
gcc version tried = 3.1 and 2.96
I can confirm this on my gcc3 system, though emerging twice gives the same result (void* SwigwxTIFFHandlerTowxImageHandler(void*)). Seems to me it's a problem with wxPython itself, maybe it should go upstream. I just hope it gets noticed as there are quite a bit of unassigned bugs on sf.net/projects/wxPython.
I have a post submitted to the wx-dev list and am waiting for a response. Of the research I have done so far, it looks like things SHOULD be working properly as the stated functions are declared in <wx/imagtiff.h> which is included by <wx/image.h> which is in the src/gtk/image.cpp file which is failing compile. For some reason the compiler isn't including these files otherwise the functions would already by declared. As I do more research and find a solution I will post on this bug report.
Make sure that wxGTK has been compiled with tiff support. Add tiff to your use variables in /etc/make.conf and then re-emerge wxGTK. That should get rid of the error you mention here with the wxPython compile. I am currently testing the ebuild with tiff support enabled. I will post on this bug report when I finish.
wxPython-2.3.2.1-r1 has been updated and it should now compile without error. GLCANVAS and GIZMOS extensions are now forced to not install as they are failing compiles currently. The new ebuild should be available on rsync servers within 24 hours. Please report back on this bug report if compilation was successful. When either or both of the extensions are fixed, wxPython will move to -r2 as additional support is added into the ebuild.
both the GLCANVAS and GIZMOS extensions have been enabled. wxPython-2.3.2.1-r2 contains the fixes. PyOpenGL is now a required dependancy for opengl support. The new ebuilds for PyOpenGL and wxPython should be available in portage within 24 hours. emerge rsync emerge wxPython Please report back on this bug with your experiences with the new ebuilds.
many reports of compilation success. closing bug report.