Hi all,
I need to have a working wxPython on OpenBSD. As WxPython is not
available as binary for OpenBSD, I needed to recompile it from sources.
So I installed glib-1.2.10, gtk+-1.2.10p1, pkg-config and finally
wxWidgets-base-2.4.2.
The I compiled WxPython sources as explained in the documentation. Due
to some compilation problem, I had to remove BUILD_GLCANVAS, BUILD_STC,
BUILD_GIZMOS, BUILD_ANIMATE. Finally, everything compiled fine.
Then, to test, I tried to run demo (python2.3 demo.py). But the result
is that a lot of unresolved symbols are found. Here is the log:
···
*******
python2.3:/usr/local/lib/libwx_base-2.6.so: undefined symbol '_ZSt4cerr'
python2.3: /usr/local/lib/libwx_base-2.6.so: can't resolve reference
'_ZSt4cerr'
python2.3:/usr/local/lib/libwx_base-2.6.so: undefined symbol
'_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_'
python2.3: /usr/local/lib/libwx_base-2.6.so: can't resolve reference
'_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_'
python2.3:/usr/local/lib/libwx_gtk2_core-2.6.so: undefined symbol
'_ZNSt15basic_streambufIcSt11char_traitsIcEE5imbueERKSt6locale'
python2.3: /usr/local/lib/libwx_gtk2_core-2.6.so: can't resolve
reference '_ZNSt15basic_streambufIcSt11char_traitsIcEE5imbueERKSt6locale'
python2.3:/usr/local/lib/libwx_gtk2_core-2.6.so: undefined symbol
'_ZNSt15basic_streambufIcSt11char_traitsIcEE5imbueERKSt6locale'
....
....
lazy binding failed!
Segmentation fault (core dumped)
*******
What does miss on my system ? What did I forget ?
Thank you for any help or advice.
--
Alain Paschoud, Fastcom Technology, Lausanne
Phone : +41 21 619 06 79
Looks like symbols from the C++ runtime (libstdc++).
Have you verified that everything was built using g++, (not gcc), and that libstdc++ is installed? At least on Fedora Core Linux, libstdc++ is in a separate package from g++.
What do go get running ldd on the wxWidgets .so? e.g.
ldd /usr/local/lib/libwx_base-2.6.so
Everything on the (very long) list should exist on your machine.
Cheers,
Mike
Alain Paschoud wrote:
···
Hi all,
I need to have a working wxPython on OpenBSD. As WxPython is not
available as binary for OpenBSD, I needed to recompile it from sources.
So I installed glib-1.2.10, gtk+-1.2.10p1, pkg-config and finally
wxWidgets-base-2.4.2.
The I compiled WxPython sources as explained in the documentation. Due
to some compilation problem, I had to remove BUILD_GLCANVAS, BUILD_STC,
BUILD_GIZMOS, BUILD_ANIMATE. Finally, everything compiled fine.
Then, to test, I tried to run demo (python2.3 demo.py). But the result
is that a lot of unresolved symbols are found. Here is the log:
*******
python2.3:/usr/local/lib/libwx_base-2.6.so: undefined symbol '_ZSt4cerr'
python2.3: /usr/local/lib/libwx_base-2.6.so: can't resolve reference
'_ZSt4cerr'
python2.3:/usr/local/lib/libwx_base-2.6.so: undefined symbol
'_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_'
python2.3: /usr/local/lib/libwx_base-2.6.so: can't resolve reference
'_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_'
python2.3:/usr/local/lib/libwx_gtk2_core-2.6.so: undefined symbol
'_ZNSt15basic_streambufIcSt11char_traitsIcEE5imbueERKSt6locale'
python2.3: /usr/local/lib/libwx_gtk2_core-2.6.so: can't resolve
reference '_ZNSt15basic_streambufIcSt11char_traitsIcEE5imbueERKSt6locale'
python2.3:/usr/local/lib/libwx_gtk2_core-2.6.so: undefined symbol
'_ZNSt15basic_streambufIcSt11char_traitsIcEE5imbueERKSt6locale'
....
lazy binding failed!
Segmentation fault (core dumped)
*******
What does miss on my system ? What did I forget ?
Thank you for any help or advice.