wx undefined symbol

PAILLEAU Eric eric.pailleau@REDACTED
Tue Feb 15 22:40:40 CET 2011


Hello,
After struggling a bit with WX on my linux box, and finally discovered
there was an wx unicode version of devel lib in addition to main one.
(configure seem to need this one...)
I reach finally to compile my R14B01 with WX.

A tear drop from my eyes, what a pleasure...

Las... by trying the wx:demo() (but same problem with any wx function) I
get :
__________________________________________________________________________
Erlang R14B01 (erts-5.8.2) [source] [smp:2:2] [rq:2] [async-threads:0]
[hipe] [kernel-poll:false]

Eshell V5.8.2  (abort with ^G)
1> wx:demo().

=ERROR REPORT==== 15-Feb-2011::22:22:29 ===
WX Failed loading "wxe_driver"@"/usr/local/lib/erlang/lib/wx-0.98.8/priv"
{error,{{load_driver,"undefined symbol:
_ZN12wxEvtHandler10QueueEventEP7wxEvent"},
        [{wxe_server,start,0},
         {wx,new,1},
         {demo,init,1},
         {wx_object,init_it,6},
         {proc_lib,init_p_do_apply,3}]}}
2>
___________________________________________________________________________

the wxe_driver.so in /usr/local/lib/erlang/lib/wx-0.98.8 is the one I
compile with success as far its mtime is the same of my compilation.

$> file /usr/local/lib/erlang/lib/wx-0.98.8/priv/wxe_driver.so
/usr/local/lib/erlang/lib/wx-0.98.8/priv/wxe_driver.so: ELF 32-bit LSB
shared object, Intel 80386, version 1 (SYSV), dynamically linked, not
stripped

$> ldd /usr/local/lib/erlang/lib/wx-0.98.8/priv/wxe_driver.so

        linux-gate.so.1 =>  (0xffffe000)


        libwx_gtk2u_stc-2.8.so.0 => /usr/lib/libwx_gtk2u_stc-2.8.so.0
(0xb7669000)

        libwx_gtk2u_xrc-2.8.so.0 => /usr/lib/libwx_gtk2u_xrc-2.8.so.0
(0xb75d9000)

        libwx_gtk2u_html-2.8.so.0 => /usr/lib/libwx_gtk2u_html-2.8.so.0
(0xb753f000)

        libwx_gtk2u_adv-2.8.so.0 => /usr/lib/libwx_gtk2u_adv-2.8.so.0
(0xb7481000)

        libwx_gtk2u_core-2.8.so.0 => /usr/lib/libwx_gtk2u_core-2.8.so.0
(0xb7114000)

        libwx_baseu-2.8.so.0 => /usr/lib/libwx_baseu-2.8.so.0
(0xb6fc2000)

        libwx_gtk2u_gl-2.8.so.0 => /usr/lib/libwx_gtk2u_gl-2.8.so.0
(0xb6fb6000)

        libwx_gtk2u_aui-2.8.so.0 => /usr/lib/libwx_gtk2u_aui-2.8.so.0
(0xb6f4a000)

        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb6e5a000)


        libm.so.6 => /lib/i686/libm.so.6 (0xb6e31000)


        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6e14000)


        libpthread.so.0 => /lib/i686/libpthread.so.0 (0xb6dfa000)


        libc.so.6 => /lib/i686/libc.so.6 (0xb6c99000)


        /lib/ld-linux.so.2 (0xb78cd000)


        libwx_baseu_xml-2.8.so.0 => /usr/lib/libwx_baseu_xml-2.8.so.0
(0xb6c8e000)

        libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb687e000)

        libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb67dc000)

        libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0
(0xb67c1000)

        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb677f000)

        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb66bb000)


        libX11.so.6 => /usr/lib/libX11.so.6 (0xb6588000)


        libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0xb64d0000)


        libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb6488000)


        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb6482000)

        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb647e000)


        libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0xb6477000)


        libSM.so.6 => /usr/lib/libSM.so.6 (0xb646d000)


        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb6442000)


        libjpeg.so.7 => /usr/lib/libjpeg.so.7 (0xb640c000)


        libtiff.so.3 => /usr/lib/libtiff.so.3 (0xb63aa000)


        libz.so.1 => /lib/libz.so.1 (0xb6396000)


        libdl.so.2 => /lib/libdl.so.2 (0xb6391000)


        libGL.so.1 => /usr/lib/libGL.so.1 (0xb6321000)


        libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb62f9000)


        libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0
(0xb62ed000)

        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb62e6000)


        libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb62c8000)


        libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb6249000)


        libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0xb61a1000)


        libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0
(0xb6177000)

        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb6142000)


        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb613d000)

        libXi.so.6 => /usr/lib/libXi.so.6 (0xb6132000)


        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb6129000)


        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb611e000)


        libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0xb611a000)


        libXext.so.6 => /usr/lib/libXext.so.6 (0xb6108000)


        libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xb6104000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb60fa000)
        libpcre.so.0 => /lib/libpcre.so.0 (0xb60cb000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb60ad000)
        libaudio.so.2 => /usr/lib/libaudio.so.2 (0xb6094000)
        libdirectfb-1.2.so.0 => /usr/lib/libdirectfb-1.2.so.0 (0xb6012000)
        libggi.so.2 => /usr/lib/libggi.so.2 (0xb5f73000)
        libaa.so.1 => /usr/lib/libaa.so.1 (0xb5f57000)
        librt.so.1 => /lib/i686/librt.so.1 (0xb5f4d000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0xb5f32000)
        libjbig.so.1 => /usr/lib/libjbig.so.1 (0xb5f25000)
        libdrm.so.2 => /usr/lib/libdrm.so.2 (0xb5f19000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb5e97000)
        libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0xb5e2e000)
        libresolv.so.2 => /lib/libresolv.so.2 (0xb5e17000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb5cd7000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb5cd3000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb5ccc000)
        libXt.so.6 => /usr/lib/libXt.so.6 (0xb5c72000)
        libfusion-1.2.so.0 => /usr/lib/libfusion-1.2.so.0 (0xb5c66000)
        libdirect-1.2.so.0 => /usr/lib/libdirect-1.2.so.0 (0xb5c4f000)
        libncurses.so.5 => /lib/libncurses.so.5 (0xb5c05000)
        libgii.so.1 => /usr/lib/libgii.so.1 (0xb5be7000)
        libXxf86dga.so.1 => /usr/lib/libXxf86dga.so.1 (0xb5be0000)
        libgg.so.1 => /usr/lib/libgg.so.1 (0xb5bd3000)
        libslang.so.2 => /usr/lib/libslang.so.2 (0xb5ac4000)


Any idea of the problem ? I'm stuck in the mud.

OS :
Mandriva Linux release 2010.0 (Official) for i586
Kernel 2.6.31.14-desktop-1mnb on a Dual-processor i686 / \l

RPM installed :
libwxgtk2.8 - Base shared library part of wxGTK​ 
libwxgtk2.8-devel - Header files and development documentation for wxGTK​
libwxgtku2.8-devel - Header files and development documentation for
wxGTK - unicode​
libwxgtku2.8 - Base shared library part of wxGTK - Unicode enabled​


More information about the erlang-bugs mailing list