[wxPython] Problems building wxPython on Solaris 2.6

When trying to build wxPython, I get the following error:

···

-------------------------------------------------------
building 'wxc' extension
skipping src/helpers.cpp (build/temp.solaris-2.6-sun4u-2.1/src/helpers.o
up-to-date)
skipping src/libpy.c (build/temp.solaris-2.6-sun4u-2.1/src/libpy.o
up-to-date)
gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DW
XP_USE_THREAD=1 -Isrc -I/usr/local/include/python2.1 -c src/gtk/wx.cpp -o
build/temp.solaris-2.6-sun4u-2.1/src/gtk/wx.o -I/usr/local/include -I/usr/lo
cal/lib/wx/include -D__USE_WXCONFIG__ -DGTK_NO_CHECK_CASTS -D__WXGTK__ -fper
missive -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 -I/usr/lo
cal/lib/glib/include -I/usr/openwin/include
src/gtk/wx.cpp: In function `struct PyObject * ptrset(PyObject *, PyObject
*, int, char *)':
src/gtk/wx.cpp:381: warning: unused variable `struct PyObject * obj'
src/gtk/wx.cpp: In function `struct PyObject * ptradd(PyObject *, int)':
src/gtk/wx.cpp:467: warning: `struct PyObject * obj' might be used
uninitialized in this function
src/gtk/wx.cpp: In function `void initwxc(...)':
src/gtk/wx.cpp:1886: `wxFRAME_NO_TASKBAR' undeclared (first use this
function)
src/gtk/wx.cpp:1886: (Each undeclared identifier is reported only once
src/gtk/wx.cpp:1886: for each function it appears in.)
src/gtk/wx.cpp:1887: `wxFRAME_EX_CONTEXTHELP' undeclared (first use this
function)
src/gtk/wx.cpp:1914: `wxADJUST_MINSIZE' undeclared (first use this function)
src/gtk/wx.cpp:1985: `wxLC_HRULES' undeclared (first use this function)
src/gtk/wx.cpp:1986: `wxLC_VRULES' undeclared (first use this function)
src/gtk/wx.cpp:2091: `wxCHANGE_DIR' undeclared (first use this function)
src/gtk/wx.cpp:2319: `wxCURSOR_ARROWWAIT' undeclared (first use this
function)
src/gtk/wx.cpp:2419: `wxEVT_MOUSEWHEEL' undeclared (first use this function)
src/gtk/wx.cpp:2500: `wxEVT_HELP' undeclared (first use this function)
src/gtk/wx.cpp:2501: `wxEVT_DETAILED_HELP' undeclared (first use this
function)
src/gtk/wx.cpp: At top level:
src/gtk/wx.cpp:61: warning: `struct PyObject * t_output_helper(PyObject *,
PyObject *)' defined but not used
error: command 'gcc' failed with exit status 1
-------------------------------------------------------

Robin suggested that I build wxGTK with the --enable-permissive flag, or at
least hack setup.py or
/usr/local/bin/wx-config. I tried hacking wx-config first, then I just
rebuilt wxGTK completely.

Still no go.

If I comment out the offending lines in wx.cpp I can get it to compile, but
events.cpp was the next to fail.

Do I need to get SWIG and have setup.py regenerate the code?

Does anyone have any ideas?

-Mark

Robin suggested that I build wxGTK with the --enable-permissive flag, or

at

least hack setup.py or
/usr/local/bin/wx-config. I tried hacking wx-config first, then I just
rebuilt wxGTK completely.

Still no go.

But it fixed the problems you had with the Xlib headers. The errors below
are a different problem.

src/gtk/wx.cpp:1887: `wxFRAME_EX_CONTEXTHELP' undeclared (first use this
function)
src/gtk/wx.cpp:1914: `wxADJUST_MINSIZE' undeclared (first use this

function)

src/gtk/wx.cpp:1985: `wxLC_HRULES' undeclared (first use this function)
src/gtk/wx.cpp:1986: `wxLC_VRULES' undeclared (first use this function)
src/gtk/wx.cpp:2091: `wxCHANGE_DIR' undeclared (first use this function)
src/gtk/wx.cpp:2319: `wxCURSOR_ARROWWAIT' undeclared (first use this
function)
src/gtk/wx.cpp:2419: `wxEVT_MOUSEWHEEL' undeclared (first use this

function)

src/gtk/wx.cpp:2500: `wxEVT_HELP' undeclared (first use this function)
src/gtk/wx.cpp:2501: `wxEVT_DETAILED_HELP' undeclared (first use this
function)

These errors make it look like you have a different version number of wxGTK
than wxPython. They need to be the same.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!