/var/tmp/portage/x11-libs/wxGTK-2.8.11.0/work/wxPython-src-2.8.11.0/wxgtk_build/bk-deps i686-pc-linux-gnu-g++ -c -o coredll_imagpng.o -D__WXGTK__ -DWXBUILDING -I/var/tmp/portage/x11-libs/wxGTK-2.8.11.0/work/wxPython-src-2.8.11.0/src/regex -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/var/tmp/portage/x11-libs/wxGTK-2.8.11.0/work/wxPython-src-2.8.11.0/wxgtk_build/lib/wx/include/gtk2-unicode-release-2.8 -I/var/tmp/portage/x11-libs/wxGTK-2.8.11.0/work/wxPython-src-2.8.11.0/include -pthread -DQT_SHARED -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/libdrm -I/usr/include/qt4/QtCore -pthread -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=barcelona -O2 -pipe -fno-strict-aliasing /var/tmp/portage/x11-libs/wxGTK-2.8.11.0/work/wxPython-src-2.8.11.0/src/common/imagpng.cpp /var/tmp/portage/x11-libs/wxGTK-2.8.11.0/work/wxPython-src-2.8.11.0/src/common/imagpng.cpp: In member function ‘virtual bool wxPNGHandler::LoadFile(wxImage*, wxInputStream&, bool, int)’: /var/tmp/portage/x11-libs/wxGTK-2.8.11.0/work/wxPython-src-2.8.11.0/src/common/imagpng.cpp:532:30: error: ‘voidp’ was not declared in this scope /var/tmp/portage/x11-libs/wxGTK-2.8.11.0/work/wxPython-src-2.8.11.0/src/common/imagpng.cpp:589:40: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ /var/tmp/portage/x11-libs/wxGTK-2.8.11.0/work/wxPython-src-2.8.11.0/src/common/imagpng.cpp:596:28: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ /var/tmp/portage/x11-libs/wxGTK-2.8.11.0/work/wxPython-src-2.8.11.0/src/common/imagpng.cpp:597:28: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ /var/tmp/portage/x11-libs/wxGTK-2.8.11.0/work/wxPython-src-2.8.11.0/src/common/imagpng.cpp:598:28: error: invalid use of incomplete type ‘struct png_info’ /usr/include/libpng15/png.h:670:16: error: forward declaration of ‘struct png_info’ make: *** [coredll_imagpng.o] Error 1 The voidp error from line 532 can be fixed with the patch from http://trac.wxwidgets.org/ticket/12896 The remaining errors seem to be still unfixed (or related to another package failing with libpng-1.5).
Created attachment 262897 [details, diff] wx-png-1.5-2.diff The linked upstream fix is incomplete, this one works against 2.8.11.0 (upstream already changed that code piece a while back, so it's not neccessary to push this upstream, but it's not yet in a release).
2.8.12.0 should be out next week.
...and this patch still applies in full. what branch were you looking at? I'll see if I can still get this in.
oh and thanks for the patch!
Okay, it's in 2.8.12, but there won't be a wxpython release for a while so I'll apply this to 2.8.11.0 in the meantime.