Robin,
Try using nm to list the symbols in
/usr/lib/wxPython/lib/libwx_gtkd-2.4.so and grep for IsOwnGtkWindow and
see what you get. I expect that it will be something like
_ZN8wxWindow14IsOwnGtkWindowEP10_GdkWindow. If so then we need to look
at differences between compile command-line options and such for wxGTK
and wxPython and figure out why different symbol names are being
generated for the same method...
Okay, in my nm output from /usr/lib/wxPython/liblibwx-gtkd-2.4 I get the
following line:
0026fdd8 T _ZN8wxWindow14IsOwnGtkWindowEP10_GdkWindow
At the risk of wasting your reading time, I am going to go ahead and
reinstall again, and document exactly what I am doing, even tho I am
just following the instructions in the README.1st.txt file. Maybe I am
missing something.
rm -rf /usr/lib/wxPython/
rm -rf /usr/lib/python2.2/site-packages/wxPython/
rm -rf /usr/lib/python2.2/site-packages/wx/
rm -rf <mypath>/wxPythonSrc-2.4.1.2/build
Ensured there were no libgtk or lib_gtk with wx in their names or
anything else close to a wx lib in /usr/lib.
Made sure no wx related entries in /etc/ld.so.conf
These next bits are straight from the instructions:
Made the wxPythonSrc-2.4.1.2/ build directory and went there.
exported WXPREF=/usr/lib/wxPython
../configure --with-gtk --prefix=$WXPREF --enable-rpath=$WXPREF/lib
--with-opengl --enable-geometry --enable-optimise --enable-debug_flag
Did make and make install
changed to the wxPythonSrc-2.4.1.2/wxPython directory and did
python setup.py WX_CONFIG=$WXPREF/bin/wx-config build install
And then I went to my download of the wxPython-2.4.1.2 demos, ran python
demo.py and got the same spew, the salient line of which was again:
ImportError: /usr/lib/python2.2/site-packages/wxPython/wxc.so: undefined
symbol: _ZN8wxWindow14IsOwnGtkWindowEP12_GdkDrawable
the output from nm /usr/lib/python2.2/site-packages/wxPython/wxc.so
grep IsOwnGtkWindow :
U _ZN8wxButton14IsOwnGtkWindowEP12_GdkDrawable
U _ZN8wxWindow14IsOwnGtkWindowEP12_GdkDrawable
Which is interesting because it is different than the last time I did
this. I suspect I forgot previously to rm the site-packages/wx dir on
that particular attempt.
Just for completeness, since this is already an epic debug, here are the
nm outputs of the two libs that I think might be in question other than
wxc.so:
nm /usr/lib/wxPython/lib/libwx_gtkd-2.4.so | grep IsOwnGtkWindow
0021baa8 T _ZN10wxCheckBox14IsOwnGtkWindowEP10_GdkWindow
00222d50 T _ZN10wxComboBox14IsOwnGtkWindowEP10_GdkWindow
0024a71c T _ZN10wxNotebook14IsOwnGtkWindowEP10_GdkWindow
0024ec28 T _ZN10wxRadioBox14IsOwnGtkWindowEP10_GdkWindow
00259784 T _ZN10wxSpinCtrl14IsOwnGtkWindowEP10_GdkWindow
0025fd34 T _ZN10wxTextCtrl14IsOwnGtkWindowEP10_GdkWindow
00252d20 T _ZN11wxScrollBar14IsOwnGtkWindowEP10_GdkWindow
00258518 T _ZN12wxSpinButton14IsOwnGtkWindowEP10_GdkWindow
0024fa80 T _ZN13wxRadioButton14IsOwnGtkWindowEP10_GdkWindow
002616b8 T _ZN14wxToggleButton14IsOwnGtkWindowEP10_GdkWindow
0021afd8 T _ZN8wxButton14IsOwnGtkWindowEP10_GdkWindow
002573f8 T _ZN8wxSlider14IsOwnGtkWindowEP10_GdkWindow
0026fdd8 T _ZN8wxWindow14IsOwnGtkWindowEP10_GdkWindow
0023ea34 T _ZN9wxListBox14IsOwnGtkWindowEP10_GdkWindow
nm /usr/lib/wxPython/lib/libwx_gtkd_gl-2.4.so.0.0.0 | grep
IsOwnGtkWindow
U _ZN8wxWindow14IsOwnGtkWindowEP10_GdkWindow
Thanks again for helping me try to get this sorted.
jpw
···
--
John P. Withers <withers@rampeffect.com>