1. wxEuphoria v0.10.0 - wxeud.e:758

I installed (or tried to install) wxEuphoria v0.10.0 for Ubuntu.
I'm running Ubuntu Feisty.
I installed all the wxWidgets 2.8 stuff in the Synaptic Package Manager.
I even re-booted in case that would make a difference.

This is what happened when I tried to run hello_world.exw.

exu hello_world.exw

..../wxeud.e:758 in function next_event() 
A machine-level exception occurred during execution of this statement 

... called from /home/jstory/euphoria/include/wxEuphoria/wxeud.e:772 


What did I do wrong?

new topic     » topic index » view message » categorize

2. Re: wxEuphoria v0.10.0 - wxeud.e:758

Jerry Story wrote:
> 
> I installed (or tried to install) wxEuphoria v0.10.0 for Ubuntu.
> I'm running Ubuntu Feisty.
> I installed all the wxWidgets 2.8 stuff in the Synaptic Package Manager.
> I even re-booted in case that would make a difference.
> 
> This is what happened when I tried to run hello_world.exw.
> 
> exu hello_world.exw
> 
> ..../wxeud.e:758 in function next_event() 
> A machine-level exception occurred during execution of this statement 
> 
> ... called from /home/jstory/euphoria/include/wxEuphoria/wxeud.e:772 
> 
> 
> What did I do wrong?

That shouldn't happen.  Just what you wanted to hear, right?  That error 
usually means that it couldn't open the shared library, but I added some 
code to check for that case and abort, so it shouldn't have gotten that
far if that were the problem.

Those lines seem off.  Are you running the v0.10.0 release (i.e., not the
beta or alpha) or did you modify the file at all?  Also, what are the values
for 

* wxWidgets (the atom that holds the handle to the shared library)
* wx_event_type (the c_var that stores the values for the events)

The other thing you could check is to run ldd on the shared library, to
see if it might be having problems linking.  The default binary build
might not work if you don't have the same versions of everything, and 
would require a rebuild on your machine.

Matt

new topic     » goto parent     » topic index » view message » categorize

3. Re: wxEuphoria v0.10.0 - wxeud.e:758

Matt Lewis wrote:
> The other thing you could check is to run ldd on the shared library, to
> see if it might be having problems linking.  The default binary build
> might not work if you don't have the same versions of everything, and 
> would require a rebuild on your machine.

This is what happened on ldd.

... ldd /usr/local/lib/libwxeu.so
        linux-gate.so.1 =>  (0xffffe000)
        libwx_gtk2d_aui-2.8.so.0 => not found
        libwx_gtk2d_xrc-2.8.so.0 => not found
        libwx_gtk2d_qa-2.8.so.0 => not found
        libwx_gtk2d_html-2.8.so.0 => not found
        libwx_gtk2d_adv-2.8.so.0 => not found
        libwx_gtk2d_core-2.8.so.0 => not found
        libwx_based_xml-2.8.so.0 => not found
        libwx_based_net-2.8.so.0 => not found
        libwx_based-2.8.so.0 => not found
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7e0a000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7de3000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7dd7000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7dbf000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7c7e000)
        /lib/ld-linux.so.2 (0x80000000)

new topic     » goto parent     » topic index » view message » categorize

4. Re: wxEuphoria v0.10.0 - wxeud.e:758

> This is what happened on ldd.
> 
> ... ldd /usr/local/lib/libwxeu.so
>         linux-gate.so.1 =>  (0xffffe000)
>         libwx_gtk2d_aui-2.8.so.0 => not found
>         libwx_gtk2d_xrc-2.8.so.0 => not found
>         libwx_gtk2d_qa-2.8.so.0 => not found
>         libwx_gtk2d_html-2.8.so.0 => not found
>         libwx_gtk2d_adv-2.8.so.0 => not found
>         libwx_gtk2d_core-2.8.so.0 => not found
>         libwx_based_xml-2.8.so.0 => not found
>         libwx_based_net-2.8.so.0 => not found
>         libwx_based-2.8.so.0 => not found
>         libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7e0a000)
>         libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7de3000)
>         libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7dd7000)
>         libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7dbf000)
>         libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7c7e000)
>         /lib/ld-linux.so.2 (0x80000000)

I think you need to compile wxWidgets to get those libraries.

-- Jesse Adkins

new topic     » goto parent     » topic index » view message » categorize

5. Re: wxEuphoria v0.10.0 - wxeud.e:758

Jerry Story wrote:
> 
> Matt Lewis wrote:
> > The other thing you could check is to run ldd on the shared library, to
> > see if it might be having problems linking.  The default binary build
> > might not work if you don't have the same versions of everything, and 
> > would require a rebuild on your machine.
> 
> This is what happened on ldd.
> 
> ... ldd /usr/local/lib/libwxeu.so
>         libwx_gtk2d_aui-2.8.so.0 => not found
>         libwx_gtk2d_xrc-2.8.so.0 => not found
>         libwx_gtk2d_qa-2.8.so.0 => not found
>         libwx_gtk2d_html-2.8.so.0 => not found
>         libwx_gtk2d_adv-2.8.so.0 => not found
>         libwx_gtk2d_core-2.8.so.0 => not found
>         libwx_based_xml-2.8.so.0 => not found
>         libwx_based_net-2.8.so.0 => not found
>         libwx_based-2.8.so.0 => not found

Well, those are all of the wxWidgets libraries that I link to.  Maybe
the synaptically-installed files are named something else.  Try running
"wx-config".  This should give you some information on where your 
wxWidgets libraries are installed.

You could also try ./configure && make for libwxeu.so after that.

Matt

new topic     » goto parent     » topic index » view message » categorize

6. Re: wxEuphoria v0.10.0 - wxeud.e:758

Matt Lewis wrote:
> 
> Jerry Story wrote:
> > 
> > Matt Lewis wrote:
> > > The other thing you could check is to run ldd on the shared library, to
> > > see if it might be having problems linking.  The default binary build
> > > might not work if you don't have the same versions of everything, and 
> > > would require a rebuild on your machine.
> > 
> > This is what happened on ldd.
> > 
> > ... ldd /usr/local/lib/libwxeu.so
> >         libwx_gtk2d_aui-2.8.so.0 => not found
> >         libwx_gtk2d_xrc-2.8.so.0 => not found
> >         libwx_gtk2d_qa-2.8.so.0 => not found
> >         libwx_gtk2d_html-2.8.so.0 => not found
> >         libwx_gtk2d_adv-2.8.so.0 => not found
> >         libwx_gtk2d_core-2.8.so.0 => not found
> >         libwx_based_xml-2.8.so.0 => not found
> >         libwx_based_net-2.8.so.0 => not found
> >         libwx_based-2.8.so.0 => not found
> 
> Well, those are all of the wxWidgets libraries that I link to.  Maybe
> the synaptically-installed files are named something else.  Try running
> "wx-config".  This should give you some information on where your 
> wxWidgets libraries are installed.

I don't know how to use wx-config.
Typing it and pressing return just gives me a bunch of info
about wx-config that I'm not smart enough to understand.
 
> You could also try ./configure && make for libwxeu.so after that.
> 
> Matt

Always one more problem.

.... ~/euphoria/include/wxEuphoria/src$ sudo ./configure && make
cc -c -o be.o -w -fPIC -fsigned-char -O2 -ffast-math -fomit-frame-pointer be.c
g++ -c -o wxeu.o -D__WXGTK__     -I. 
-I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__
-I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  wxeu.cpp
wxeu.cpp: In function ‘wxString get_string(object)’:
wxeu.cpp:68: error: call of overloaded ‘wxString(char*&)’ is ambiguous
/usr/include/wx-2.8/wx/string.h:722: note: candidates are:
wxString::wxString(const wxWCharBuffer&) <near match>
/usr/include/wx-2.8/wx/string.h:692: note:                
wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.8/wx/string.h:690: note:                
wxString::wxString(const wxString&) <near match>
/usr/include/wx-2.8/wx/string.h:682: note:                
wxString::wxString(int) <near match>
wxeu.cpp: At global scope:
wxeu.cpp:90: warning: ‘EuEventTypes’ initialized and declared ‘extern’
make: *** [wxeu.o] Error 1

-------------

After all this stuff is figured out, the next step will be to automate the
installation of wxEuphoria together with dependencies, like with apt-get.
Otherwise most people (especially non-Euphoria people) trying to get a
wxEuphoria-based program to work will quickly give up.

new topic     » goto parent     » topic index » view message » categorize

7. Re: wxEuphoria v0.10.0 - wxeud.e:758

Jerry Story wrote:
> 
> Matt Lewis wrote:
> > 
> > Jerry Story wrote:
> > > 
> > > Matt Lewis wrote:
> > > > The other thing you could check is to run ldd on the shared library, to
> > > > see if it might be having problems linking.  The default binary build
> > > > might not work if you don't have the same versions of everything, and 
> > > > would require a rebuild on your machine.
> > > 
> > > This is what happened on ldd.

<snip>

> > 
> I don't know how to use wx-config.
> Typing it and pressing return just gives me a bunch of info
> about wx-config that I'm not smart enough to understand.

Could you please post the output.  It might help me understand and make
it work better.  Specifically, try:

$ wx-config --list

and

$ wx-config --libs

> > You could also try ./configure && make for libwxeu.so after that.
> > 
> > Matt
> 
> Always one more problem.
> 
> .... ~/euphoria/include/wxEuphoria/src$ sudo ./configure && make
> cc -c -o be.o -w -fPIC -fsigned-char -O2 -ffast-math -fomit-frame-pointer be.c
> g++ -c -o wxeu.o -D__WXGTK__     -I. 
> -I/usr/lib/wx/include/gtk2-unicode-release-2.8
> -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__
> -I/usr/lib/wx/include/gtk2-unicode-release-2.8
> -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__
> -pthread
>  wxeu.cpp
> wxeu.cpp: In function ‘wxString get_string(object)’:
> wxeu.cpp:68: error: call of overloaded ‘wxString(char*&)’ is ambiguous
> /usr/include/wx-2.8/wx/string.h:722: note: candidates are:
> wxString::wxString(const
> wxWCharBuffer&) <near match>
> /usr/include/wx-2.8/wx/string.h:692: note:                
> wxString::wxString(wxChar,
> size_t) <near match>
> /usr/include/wx-2.8/wx/string.h:690: note:                
> wxString::wxString(const
> wxString&) <near match>
> /usr/include/wx-2.8/wx/string.h:682: note:                
> wxString::wxString(int)
> <near match>
> wxeu.cpp: At global scope:
> wxeu.cpp:90: warning: ‘EuEventTypes’ initialized and declared ‘extern’
> make: *** [wxeu.o] Error 1

One thing I note is the wxWCharBuffer.  It looks like it's a unicode 
version of wxWidgets, which kinda makes sense, except that wxEuphoria doesn't
use unicode.  Based on that, I suspect that the names of the shared
libraries are different, so that there's not any conflict.  I'll have to
look into this, to see how difficult it will be to build everything with
unicode, which should make it compatible with the distro default.

> 
> After all this stuff is figured out, the next step will be to automate the
> installation of wxEuphoria together with dependencies, like with apt-get.
> Otherwise most people (especially non-Euphoria people) trying to get a
> wxEuphoria-based program to work will quickly give up.

Yeah, although I think it's pretty obvious now that it's the unicode thing
that's the real problem.  I do have a solution in the pipeline that I think
will work for just about everyone.  I'm looking into making a build of
euphoria (interpreter and translator + runtime) that statically links
with wxWidgets/wxEuphoria.  It'd make for a monstrous executable (3-7MB),
but it would contain all of the wxWidgets stuff, so that the external
dependencies would be minimized, to basically libc++ and gtk2. 

I've got a ways to go before there's something useful, and I'm right in the
middle of moving and being very busy at work...

Matt

new topic     » goto parent     » topic index » view message » categorize

8. Re: wxEuphoria v0.10.0 - wxeud.e:758

Matt Lewis wrote:
> Could you please post the output.  It might help me understand and make
> it work better.  Specifically, try:
> 
> $ wx-config --list
> 
> and
> 
> $ wx-config --libs

~$ wx-config --list

    Default config is gtk2-unicode-release-2.8

  Default config will be used for output

  Alternate matches:
    base-unicode-debug-2.8
    base-unicode-release-2.8
    gtk2-unicode-debug-2.8

~$ wx-config --libs
-pthread   -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8
-lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8
-lwx_baseu_net-2.8 -lwx_baseu-2.8

new topic     » goto parent     » topic index » view message » categorize

9. Re: wxEuphoria v0.10.0 - wxeud.e:758

Jerry,

I tried building with unicode, and connecting to the stock Feisty libs.
It seems to work.  I've posted the binary for you (or anyone else who's
interested) to test.  If this works, I'll make a real distribution of this:

http://wxeuphoria.sf.net/libwxeu.so.tar.gz

Note that it doesn't really "do" unicode in euphroria, although that's 
possible, and probably not too difficult.  I suspect that this will happen
in a not too distant future release, but I'd like to get some feedback
on that first.

Anyway, try that out, and see if it works for you.  BTW, you can't simply
build on your machine, because there were a couple of changes that needed
to be made in the source.

Matt

new topic     » goto parent     » topic index » view message » categorize

10. Re: wxEuphoria v0.10.0 - wxeud.e:758

Matt Lewis wrote:
> 
> Jerry,
> 
> I tried building with unicode, and connecting to the stock Feisty libs.
> It seems to work.  I've posted the binary for you (or anyone else who's
> interested) to test.  If this works, I'll make a real distribution of this:
> 
> <a
> href="http://wxeuphoria.sf.net/libwxeu.so.tar.gz">http://wxeuphoria.sf.net/libwxeu.so.tar.gz</a>
> 
> Note that it doesn't really "do" unicode in euphroria, although that's 
> possible, and probably not too difficult.  I suspect that this will happen
> in a not too distant future release, but I'd like to get some feedback
> on that first.
> 
> Anyway, try that out, and see if it works for you.  BTW, you can't simply
> build on your machine, because there were a couple of changes that needed
> to be made in the source.
> 
> Matt

I put that in /usr/local/bin

Then I did
sudo ldconfig /usr/local/lib
(whatever that is supposed to do)

Still didn't work.
I rebooted. Still didn't work.

Same error message as before.

...euphoria/include/wxEuphoria/wxeud.e:758 in function next_event() 
A machine-level exception occurred during execution of this statement 

... called from ....euphoria/include/wxEuphoria/wxeud.e:772

new topic     » goto parent     » topic index » view message » categorize

11. Re: wxEuphoria v0.10.0 - wxeud.e:758

Jerry Story wrote:
> 
> Matt Lewis wrote:
> > http://wxeuphoria.sf.net/libwxeu.so.tar.gz

> 
> Then I did
> sudo ldconfig /usr/local/lib
> (whatever that is supposed to do)
> 
> Still didn't work.
> I rebooted. Still didn't work.
> 
> Same error message as before.

What do you get from 

$ ldd libwxeu.so

...or possibly...

$ ldd /usr/local/lib/libwxeu.so

Matt

new topic     » goto parent     » topic index » view message » categorize

12. Re: wxEuphoria v0.10.0 - wxeud.e:758

Matt Lewis wrote:
> 
> Jerry Story wrote:
> > 
> > Matt Lewis wrote:
> > > <a
> > > href="http://wxeuphoria.sf.net/libwxeu.so.tar.gz">http://wxeuphoria.sf.net/libwxeu.so.tar.gz</a>
> 
> > 
> > Then I did
> > sudo ldconfig /usr/local/lib
> > (whatever that is supposed to do)
> > 
> > Still didn't work.
> > I rebooted. Still didn't work.
> > 
> > Same error message as before.
> 
> What do you get from 
> 
> $ ldd libwxeu.so
> 
> ...or possibly...
> 
> $ ldd /usr/local/lib/libwxeu.so
> 
> Matt

~$ ldd /usr/local/lib/libwxeu.so
        linux-gate.so.1 =>  (0xffffe000)
libwx_gtk2u_aui-2.8.so.0 => /usr/lib/libwx_gtk2u_aui-2.8.so.0
        (0xb7e52000)
libwx_gtk2u_xrc-2.8.so.0 => /usr/lib/libwx_gtk2u_xrc-2.8.so.0
        (0xb7dbd000)
        libwx_gtk2u_qa-2.8.so.0 => /usr/lib/libwx_gtk2u_qa-2.8.so.0 (0xb7d9c000)
libwx_gtk2u_html-2.8.so.0 => /usr/lib/libwx_gtk2u_html-2.8.so.0
        (0xb7cfd000)
libwx_gtk2u_adv-2.8.so.0 => /usr/lib/libwx_gtk2u_adv-2.8.so.0
        (0xb7c3b000)
libwx_gtk2u_core-2.8.so.0 => /usr/lib/libwx_gtk2u_core-2.8.so.0
        (0xb78b3000)
libwx_baseu_xml-2.8.so.0 => /usr/lib/libwx_baseu_xml-2.8.so.0
        (0xb78a9000)
libwx_baseu_net-2.8.so.0 => /usr/lib/libwx_baseu_net-2.8.so.0
        (0xb787a000)
        libwx_baseu-2.8.so.0 => /usr/lib/libwx_baseu-2.8.so.0 (0xb771e000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7634000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb760d000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7601000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb75ea000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb74a8000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7494000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7490000)
        libgstreamer-0.10.so.0 => /usr/lib/libgstreamer-0.10.so.0 (0xb73f2000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb73ef000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb72d2000)
        libgconf-2.so.4 => /usr/lib/libgconf-2.so.4 (0xb729f000)
        libORBit-2.so.0 => /usr/lib/libORBit-2.so.0 (0xb724c000)
        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb7247000)
        librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb723e000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb7204000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb716f000)
libgstinterfaces-0.10.so.0 => /usr/lib/libgstinterfaces-0.10.so.0
        (0xb7166000)
        libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb6e0e000)
        libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb6d88000)
        libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb6d6d000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb6d56000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb6d2a000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb6d1c000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb6d14000)
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb6d11000)
        libXi.so.6 => /usr/lib/libXi.so.6 (0xb6d09000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb6d03000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb6cf9000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb6cf4000)
        libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb6cb6000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb6bc5000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0xb6bbc000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb6b99000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb6b79000)
        libtiff.so.4 => /usr/lib/libtiff.so.4 (0xb6b27000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb6b07000)
        /lib/ld-linux.so.2 (0x80000000)
        libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb6afe000)
        libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb6a8e000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb6a23000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb6a1f000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6a1a000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0xb6a02000)
        libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb69d7000)

new topic     » goto parent     » topic index » view message » categorize

13. Re: wxEuphoria v0.10.0 - wxeud.e:758

Jerry Story wrote:
> 
> ~$ ldd /usr/local/lib/libwxeu.so
>         libwx_gtk2u_aui-2.8.so.0 => /usr/lib/libwx_gtk2u_aui-2.8.so.0
>         (0xb7e52000)
>         libwx_gtk2u_xrc-2.8.so.0 => /usr/lib/libwx_gtk2u_xrc-2.8.so.0
>         (0xb7dbd000)
>         libwx_gtk2u_qa-2.8.so.0 => /usr/lib/libwx_gtk2u_qa-2.8.so.0
>         (0xb7d9c000)
>         libwx_gtk2u_html-2.8.so.0 => /usr/lib/libwx_gtk2u_html-2.8.so.0
>         (0xb7cfd000)
>         libwx_gtk2u_adv-2.8.so.0 => /usr/lib/libwx_gtk2u_adv-2.8.so.0
>         (0xb7c3b000)
>         libwx_gtk2u_core-2.8.so.0 => /usr/lib/libwx_gtk2u_core-2.8.so.0
>         (0xb78b3000)
>         libwx_baseu_xml-2.8.so.0 => /usr/lib/libwx_baseu_xml-2.8.so.0
>         (0xb78a9000)
>         libwx_baseu_net-2.8.so.0 => /usr/lib/libwx_baseu_net-2.8.so.0
>         (0xb787a000)
>         libwx_baseu-2.8.so.0 => /usr/lib/libwx_baseu-2.8.so.0 (0xb771e000)

OK, so it's finding the libraries.  The fact that you're getting the error
you're getting, however, leads me to believe that you're not running the
most current version of wxeud.e.

The following should be near the top of wxeud.e.  If it isn't, then you 
aren't using the latest.  This code makes sure that if it can't link to
the shared library, it prints an error message and aborts.  If you *are*
using the latest, then we have some more work to do.  I guess, let's 
figure out if *anything* is being properly defined through define_c_*.

atom wxWidgets

if platform() = LINUX then
	wxWidgets = open_dll( "libwxeu.so" )
else
	wxWidgets = open_dll( "libwxeu.dll" )
end if

if wxWidgets = 0 then
	puts(2, "Could not open wxEuphoria library.  Press enter to abort.\n" )
	if atom(gets(0)) or 1 then
		abort(1)
	end if
end if


new topic     » goto parent     » topic index » view message » categorize

14. Re: wxEuphoria v0.10.0 - wxeud.e:758

Matt Lewis wrote:
> 
> Jerry Story wrote:
> > 
> > ~$ ldd /usr/local/lib/libwxeu.so
> >         libwx_gtk2u_aui-2.8.so.0 => /usr/lib/libwx_gtk2u_aui-2.8.so.0
> >         (0xb7e52000)
> >         libwx_gtk2u_xrc-2.8.so.0 => /usr/lib/libwx_gtk2u_xrc-2.8.so.0
> >         (0xb7dbd000)
> >         libwx_gtk2u_qa-2.8.so.0 => /usr/lib/libwx_gtk2u_qa-2.8.so.0
> >         (0xb7d9c000)
> >         libwx_gtk2u_html-2.8.so.0 => /usr/lib/libwx_gtk2u_html-2.8.so.0
> >         (0xb7cfd000)
> >         libwx_gtk2u_adv-2.8.so.0 => /usr/lib/libwx_gtk2u_adv-2.8.so.0
> >         (0xb7c3b000)
> >         libwx_gtk2u_core-2.8.so.0 => /usr/lib/libwx_gtk2u_core-2.8.so.0
> >         (0xb78b3000)
> >         libwx_baseu_xml-2.8.so.0 => /usr/lib/libwx_baseu_xml-2.8.so.0
> >         (0xb78a9000)
> >         libwx_baseu_net-2.8.so.0 => /usr/lib/libwx_baseu_net-2.8.so.0
> >         (0xb787a000)
> >         libwx_baseu-2.8.so.0 => /usr/lib/libwx_baseu-2.8.so.0 (0xb771e000)
> 
> OK, so it's finding the libraries.  The fact that you're getting the error
> you're getting, however, leads me to believe that you're not running the
> most current version of wxeud.e.
> 
> The following should be near the top of wxeud.e.  If it isn't, then you 
> aren't using the latest.  This code makes sure that if it can't link to
> the shared library, it prints an error message and aborts.  If you *are*
> using the latest, then we have some more work to do.  I guess, let's 
> figure out if *anything* is being properly defined through define_c_*.
> 
> }}}
<eucode>
> atom wxWidgets
> 
> if platform() = LINUX then
> 	wxWidgets = open_dll( "libwxeu.so" )
> else
> 	wxWidgets = open_dll( "libwxeu.dll" )
> end if
> 
> if wxWidgets = 0 then
> 	puts(2, "Could not open wxEuphoria library.  Press enter to abort.\n" )
> 	if atom(gets(0)) or 1 then
> 		abort(1)
> 	end if
> end if
> </eucode>
{{{


This is the version of wxeud.e that I have.
It seems to be version 0.10.0
It is from:
http://wxeuphoria.sourceforge.net/download.htm
Current version: v0.10.0

include file.e
include machine.e
global constant
wxEuphoria_Version = {0,10,0},
--#WIN32
wxEuphoria_Platform = platform(),
wxNEED_BUILD = 10

atom wxWidgets
if platform() = LINUX then
	wxWidgets = open_dll( "libwxeu.so" )
else
	wxWidgets = open_dll( "libwxeu.dll" )
end if

function wx_define_c_proc( object dll, object proc, object args )
	if platform() = WIN32 then
		proc = '+' & proc
	end if
	return define_c_proc( dll, proc, args )
end function


new topic     » goto parent     » topic index » view message » categorize

15. Re: wxEuphoria v0.10.0 - wxeud.e:758

Jerry Story wrote:
> 
> This is the version of wxeud.e that I have.
> It seems to be version 0.10.0
> It is from:
> http://wxeuphoria.sourceforge.net/download.htm
> Current version: v0.10.0
> 
<snip>
The code you posted looks like it's not the latest version.  You can get it 
directly from the repository from here (the 0.10.0 tag):

http://wxeuphoria.svn.sourceforge.net/viewvc/*checkout*/wxeuphoria/wxeu/tags/v0.10.0/wxeud.e?revision=120

Try that.  If it doesn't work, then before it gets to the crash,  put in 
a few statements like:
? wxWidgets
? wx_event_type

Let's try to see where the problem is.

Matt

new topic     » goto parent     » topic index » view message » categorize

16. Re: wxEuphoria v0.10.0 - wxeud.e:758

Matt Lewis wrote:
> 
> Jerry Story wrote:
> > 
> > This is the version of wxeud.e that I have.
> > It seems to be version 0.10.0
> > It is from:
> > <a
> > href="http://wxeuphoria.sourceforge.net/download.htm">http://wxeuphoria.sourceforge.net/download.htm</a>
> > Current version: v0.10.0
> > 
> <snip>
> The code you posted looks like it's not the latest version.  You can get it
> 
> directly from the repository from here (the 0.10.0 tag):
> 
> <a
> href="http://wxeuphoria.svn.sourceforge.net/viewvc/*checkout*/wxeuphoria/wxeu/tags/v0.10.0/wxeud.e?revision=120">http://wxeuphoria.svn.sourceforge.net/viewvc/*checkout*/wxeuphoria/wxeu/tags/v0.10.0/wxeud.e?revision=120</a>
> 
> Try that.  If it doesn't work, then before it gets to the crash,  put in 
> a few statements like:
> }}}
<eucode>
> ? wxWidgets
> ? wx_event_type
> </eucode>
{{{

> Let's try to see where the problem is.
> 
> Matt

Now it says:
Could not open wxEuphoria library.  Press enter to abort.

wxWidgets is 0
libwxeu.so is in /usr/local/lib

new topic     » goto parent     » topic index » view message » categorize

17. Re: wxEuphoria v0.10.0 - wxeud.e:758

Jerry Story wrote:
> 
> Now it says:
> Could not open wxEuphoria library.  Press enter to abort.
> 
> wxWidgets is 0
> libwxeu.so is in /usr/local/lib

OK, so for some reason, open_dll is failing.  IIRC, when you ran ldd
on libwxeu.so, it was able to find all of the libraries.  Try running
ld-linux.so.  In RHEL, it's in /lib.  Check the man page for ld.so for
more details.

It can give more information on why it's failing to load.  First try without
an absolute path, so see if it finds it.  If it doesn't, then the problem 
may be that ldconfig didn't run properly.  Then try an absolute path, to
see if it loads.

Based on your previous results with ldd, however, I suspect it's a 
configuration issue that we need to fix.

Matt

new topic     » goto parent     » topic index » view message » categorize

18. Re: wxEuphoria v0.10.0 - wxeud.e:758

Matt Lewis wrote:
 
> Jerry Story wrote:
> > 
> > Now it says:
> > Could not open wxEuphoria library.  Press enter to abort.
> > 
> > wxWidgets is 0
> > libwxeu.so is in /usr/local/lib
> 
> OK, so for some reason, open_dll is failing.  IIRC, when you ran ldd
> on libwxeu.so, it was able to find all of the libraries.  Try running
> ld-linux.so.  In RHEL, it's in /lib.  Check the man page for ld.so for
> more details.
> 
> It can give more information on why it's failing to load.  First try without
> an absolute path, so see if it finds it.  If it doesn't, then the problem 
> may be that ldconfig didn't run properly.  Then try an absolute path, to
> see if it loads.
> 
> Based on your previous results with ldd, however, I suspect it's a 
> configuration issue that we need to fix.
> 
> Matt

I seem to not have ld-linux.so but I have ld-linux.so.2

~$ /lib/ld-linux.so.2
Usage: ld.so [OPTION]... EXECUTABLE-FILE [ARGS-FOR-PROGRAM...]
You have invoked `ld.so', the helper program for shared library executables.
This program usually lives in the file `/lib/ld.so', and special directives
in executable files using ELF shared libraries tell the system's program
loader to load the helper program from this file.  This helper program loads
the shared libraries needed by the program executable, prepares the program
to run, and runs it.  You may invoke this helper program directly from the
command line to load and run an ELF executable file; this is like executing
that file itself, but always uses this helper program from the file you
specified, instead of the helper program file specified in the executable
file you run.  This is mostly of use for maintainers to test new versions
of this helper program; chances are you did not intend to run this program.

  --list                list all dependencies and how they are resolved
  --verify              verify that given object really is a dynamically linked
                        object we can handle
  --library-path PATH   use given PATH instead of content of the environment
                        variable LD_LIBRARY_PATH
  --inhibit-rpath LIST  ignore RUNPATH and RPATH information in object names
                        in LIST


Also I seem to not have ld.so but I have ld-2.5.so

~$ /lib/ld-2.5.so
Usage: ld.so [OPTION]... EXECUTABLE-FILE [ARGS-FOR-PROGRAM...]
You have invoked `ld.so', the helper program for shared library executables.
This program usually lives in the file `/lib/ld.so', and special directives
in executable files using ELF shared libraries tell the system's program
loader to load the helper program from this file.  This helper program loads
the shared libraries needed by the program executable, prepares the program
to run, and runs it.  You may invoke this helper program directly from the
command line to load and run an ELF executable file; this is like executing
that file itself, but always uses this helper program from the file you
specified, instead of the helper program file specified in the executable
file you run.  This is mostly of use for maintainers to test new versions
of this helper program; chances are you did not intend to run this program.

  --list                list all dependencies and how they are resolved
  --verify              verify that given object really is a dynamically linked
                        object we can handle
  --library-path PATH   use given PATH instead of content of the environment
                        variable LD_LIBRARY_PATH
  --inhibit-rpath LIST  ignore RUNPATH and RPATH information in object names
                        in LIST

new topic     » goto parent     » topic index » view message » categorize

19. Re: wxEuphoria v0.10.0 - wxeud.e:758

Jerry Story wrote:
> 
> I seem to not have ld-linux.so but I have ld-linux.so.2
> 
> ~$ /lib/ld-linux.so.2

Yep, that's the one.  Sometimes there's a symlink.  I think it depends on
the distro.

Matt

new topic     » goto parent     » topic index » view message » categorize

20. Re: wxEuphoria v0.10.0 - wxeud.e:758

Matt Lewis wrote:
> 
> Jerry Story wrote:
> > 
> > I seem to not have ld-linux.so but I have ld-linux.so.2
> > 
> > ~$ /lib/ld-linux.so.2
> 
> Yep, that's the one.  Sometimes there's a symlink.  I think it depends on
> the distro.
> 
> Matt

Maybe we can get back to solving the problem with wxEuphoria v.10.0
for Ubuntu. Is there something you want me to do with
/lib/ld-linux.so.2 ?

new topic     » goto parent     » topic index » view message » categorize

21. Re: wxEuphoria v0.10.0 - wxeud.e:758

Jerry Story wrote:
> 
> Matt Lewis wrote:
> > 
> > Jerry Story wrote:
> > > 
> > > I seem to not have ld-linux.so but I have ld-linux.so.2
> > > 
> > > ~$ /lib/ld-linux.so.2
> > 
> > Yep, that's the one.  Sometimes there's a symlink.  I think it depends on
> > the distro.
> > 
> > Matt
> 
> Maybe we can get back to solving the problem with wxEuphoria v.10.0
> for Ubuntu. Is there something you want me to do with
> /lib/ld-linux.so.2 ?

Yes, run it with libwxeu.so as the argument.  It should try to load the
shared library, and if it fails, it should give a better error message
than "failed to load."

Matt

new topic     » goto parent     » topic index » view message » categorize

22. Re: wxEuphoria v0.10.0 - wxeud.e:758

Matt Lewis wrote:
> 
> Jerry Story wrote:
> > Maybe we can get back to solving the problem with wxEuphoria v.10.0
> > for Ubuntu. Is there something you want me to do with
> > /lib/ld-linux.so.2 ?
> 
> Yes, run it with libwxeu.so as the argument.  It should try to load the
> shared library, and if it fails, it should give a better error message
> than "failed to load."
> 
> Matt

~$ /lib/ld-linux.so.2 libwxeu.so
libwxeu.so: error while loading shared libraries: libwxeu.so: cannot open shared
object file: No such file or directory

new topic     » goto parent     » topic index » view message » categorize

23. Re: wxEuphoria v0.10.0 - wxeud.e:758

Jerry Story wrote:
> 
> Matt Lewis wrote:
> > 
> > Jerry Story wrote:
> > > Maybe we can get back to solving the problem with wxEuphoria v.10.0
> > > for Ubuntu. Is there something you want me to do with
> > > /lib/ld-linux.so.2 ?
> > 
> > Yes, run it with libwxeu.so as the argument.  It should try to load the
> > shared library, and if it fails, it should give a better error message
> > than "failed to load."
> > 
> > Matt
> 
> ~$ /lib/ld-linux.so.2 libwxeu.so
> libwxeu.so: error while loading shared libraries: libwxeu.so: cannot open
> shared
> object file: No such file or directory

Try specifying the full path:

$ /lib/ld-linux.so.2 /usr/local/lib/libwxeu.so

If that works, then the problem would seem to be that ldconfig wasn't
run properly.  If it doesn't then we'll go from there.

Matt

new topic     » goto parent     » topic index » view message » categorize

24. Re: wxEuphoria v0.10.0 - wxeud.e:758

Matt Lewis wrote:
 
> Try specifying the full path:
> 
> $ /lib/ld-linux.so.2 /usr/local/lib/libwxeu.so
> 
> If that works, then the problem would seem to be that ldconfig wasn't
> run properly.  If it doesn't then we'll go from there.
> 
> Matt

~$ /lib/ld-linux.so.2 /usr/local/lib/libwxeu.so
/usr/local/lib/libwxeu.so: error while loading shared libraries: libtiff.so.3:
cannot open shared object file: No such file or directory

new topic     » goto parent     » topic index » view message » categorize

25. Re: wxEuphoria v0.10.0 - wxeud.e:758

Jerry Story wrote:
> 
> Matt Lewis wrote:
>  
> > Try specifying the full path:
> > 
> > $ /lib/ld-linux.so.2 /usr/local/lib/libwxeu.so
> > 
> > If that works, then the problem would seem to be that ldconfig wasn't
> > run properly.  If it doesn't then we'll go from there.
> > 
> > Matt
> 
> ~$ /lib/ld-linux.so.2 /usr/local/lib/libwxeu.so
> /usr/local/lib/libwxeu.so: error while loading shared libraries: libtiff.so.3:
> cannot open shared object file: No such file or directory

I installed some libtiff stuff using the Synaptic Package Manager
but I get the same result.

What do I gotta do about libtiff?

new topic     » goto parent     » topic index » view message » categorize

26. Re: wxEuphoria v0.10.0 - wxeud.e:758

Jerry Story wrote:
> 
> Jerry Story wrote:
> > 
> > Matt Lewis wrote:
> >  
> > > Try specifying the full path:
> > > 
> > > $ /lib/ld-linux.so.2 /usr/local/lib/libwxeu.so
> > > 
> > > If that works, then the problem would seem to be that ldconfig wasn't
> > > run properly.  If it doesn't then we'll go from there.
> > > 
> > > Matt
> > 
> > ~$ /lib/ld-linux.so.2 /usr/local/lib/libwxeu.so
> > /usr/local/lib/libwxeu.so: error while loading shared libraries:
> > libtiff.so.3:
> > cannot open shared object file: No such file or directory
> 
> I installed some libtiff stuff using the Synaptic Package Manager
> but I get the same result.
> 
> What do I gotta do about libtiff?

Sorry for jumping in but I guess I know something about this. Ubuntu 7.04 use
libtiff4 which
is the only version available by Synaptics repo's. You need libtiff3 but might
be ok if you make a symlink
to libtiff4. I don't know if the libs are compatible but it's worth a try.
John

new topic     » goto parent     » topic index » view message » categorize

27. Re: wxEuphoria v0.10.0 - wxeud.e:758

John Rebert wrote:
> Sorry for jumping in but I guess I know something about this. Ubuntu 7.04 use
> libtiff4 which
> is the only version available by Synaptics repo's. You need libtiff3 but might
> be ok if you make a symlink
> to libtiff4. I don't know if the libs are compatible but it's worth a try.
> John

I made the link and got past that error but ran into another error.

$ > /lib/ld-linux.so.2 /usr/local/lib/libwxeu.so
bash: /lib/ld-linux.so.2: Permission denied
$ > sudo /lib/ld-linux.so.2 /usr/local/lib/libwxeu.so
/usr/local/lib/libwxeu.so: error while loading shared libraries:
libwx_gtk2_aui-2.8.so.0: cannot open shared object file: No such file or
directory

new topic     » goto parent     » topic index » view message » categorize

28. Re: wxEuphoria v0.10.0 - wxeud.e:758

Jerry Story wrote:
> 
> 
> ~$ /lib/ld-linux.so.2 /usr/local/lib/libwxeu.so
> /usr/local/lib/libwxeu.so: error while loading shared libraries: libtiff.so.3:
> cannot open shared object file: No such file or directory

Curiouser and curiouser.  I can't see why it would be looking for 
libtiff.so.3.  Previously, from running ldd, you got:

~$ ldd /usr/local/lib/libwxeu.so
    ...
    libtiff.so.4 => /usr/lib/libtiff.so.4 (0xb6b27000)
    ...

So it shouldn't be needing that version.  I think the v0.9 version of wxeu
would have linked to libtiff3, but the version I sent to you was also built
on Ubuntu 7.04, using the 'stock' wxWidgets libaries.

In any case, this dependency is generated in the wxWidgets libraries, not
wxEuphoria (which just depends upon those).  In v0.9, IIRC, the wxWidgets code 
was statically linked inside of libwxeu.so, and due to the specifics of the
box where it was built, some utility libraries (like libtiff) were meant to
come from the system, vs using the code supplied with wxWidgets (when 
compiling wxWidgets, you have the option of using the system libs, or 
using the ones they supply, which is what I should have done back then, 
because it would have been more portable).  Part of this learning curve 
has been me getting more familiar with *nix and the GNU and wxWidgets 
build system.

So, in summary: Can you run ldd against libwxeu.so again?

Matt

new topic     » goto parent     » topic index » view message » categorize

29. Re: wxEuphoria v0.10.0 - wxeud.e:758

Matt Lewis wrote:
> So, in summary: Can you run ldd against libwxeu.so again?

:/usr/local/lib$ ldd libwxeu.so
        linux-gate.so.1 =>  (0xffffe000)
        libtiff.so.3 => /usr/lib/libtiff.so.3 (0xb7f27000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7f08000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7ef4000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7eef000)
        libwx_gtk2_aui-2.8.so.0 => not found
        libwx_gtk2_xrc-2.8.so.0 => not found
        libwx_gtk2_qa-2.8.so.0 => not found
        libwx_gtk2_html-2.8.so.0 => not found
        libwx_gtk2_adv-2.8.so.0 => not found
        libwx_gtk2_core-2.8.so.0 => not found
        libwx_base_xml-2.8.so.0 => not found
        libwx_base_net-2.8.so.0 => not found
        libwx_base-2.8.so.0 => not found
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7e03000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7ddc000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7dd0000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7db9000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7c78000)
        /lib/ld-linux.so.2 (0x80000000)

new topic     » goto parent     » topic index » view message » categorize

30. Re: wxEuphoria v0.10.0 - wxeud.e:758

Jerry Story wrote:
> 
> Matt Lewis wrote:
> > So, in summary: Can you run ldd against libwxeu.so again?
> 
> :/usr/local/lib$ ldd libwxeu.so
>         linux-gate.so.1 =>  (0xffffe000)
>         libtiff.so.3 => /usr/lib/libtiff.so.3 (0xb7f27000)
>         libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7f08000)
>         libz.so.1 => /usr/lib/libz.so.1 (0xb7ef4000)
>         libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7eef000)
>         libwx_gtk2_aui-2.8.so.0 => not found
>         libwx_gtk2_xrc-2.8.so.0 => not found
>         libwx_gtk2_qa-2.8.so.0 => not found
>         libwx_gtk2_html-2.8.so.0 => not found
>         libwx_gtk2_adv-2.8.so.0 => not found
>         libwx_gtk2_core-2.8.so.0 => not found
>         libwx_base_xml-2.8.so.0 => not found
>         libwx_base_net-2.8.so.0 => not found
>         libwx_base-2.8.so.0 => not found
>         libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7e03000)
>         libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7ddc000)
>         libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7dd0000)
>         libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7db9000)
>         libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7c78000)
>         /lib/ld-linux.so.2 (0x80000000)

OK, this is clearly a different result than you got on 12 June.  Based on
the names of the wxWidgets libraries, it looks like it's looking for the
ANSI versions of the libraries, not the Unicode version (which have a 'u'
in the fileanme after the gtk2), which is what gets installed through 
Synaptic.  Somehow, you're looking at the official released library, and 
not the one that I later built to use the default Feisty libs 
(http://wxeuphoria.sf.net/libwxeu.so.tar.gz).

If you do a search (from the web interface, just click on the subject above)
for this thread, and go down to your ldd output from 12 June, you'll see
that the names are different, and that it's looking for libtiff.so.4.
This version of the library must have been built with Ubuntu 6.10 (as 
I believe the alpha and beta versions were)--also, you seemed to have the
beta version of wxeud.e, so I think this is a reasonable conclusion.

Make sure that the library is up to date (it should have been created on
11 June).  It might be easier to just purge all wxEuphoria stuff and start
from scratch.  Just make sure that you get the newer binary, *not* the 
version that's on the download page.

Matt

new topic     » goto parent     » topic index » view message » categorize

31. Re: wxEuphoria v0.10.0 - wxeud.e:758

Matt Lewis wrote:
> 
> Jerry Story wrote:
> > 
> > Matt Lewis wrote:
> > > So, in summary: Can you run ldd against libwxeu.so again?
> > 
> > :/usr/local/lib$ ldd libwxeu.so
> >         linux-gate.so.1 =>  (0xffffe000)
> >         libtiff.so.3 => /usr/lib/libtiff.so.3 (0xb7f27000)
> >         libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7f08000)
> >         libz.so.1 => /usr/lib/libz.so.1 (0xb7ef4000)
> >         libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7eef000)
> >         libwx_gtk2_aui-2.8.so.0 => not found
> >         libwx_gtk2_xrc-2.8.so.0 => not found
> >         libwx_gtk2_qa-2.8.so.0 => not found
> >         libwx_gtk2_html-2.8.so.0 => not found
> >         libwx_gtk2_adv-2.8.so.0 => not found
> >         libwx_gtk2_core-2.8.so.0 => not found
> >         libwx_base_xml-2.8.so.0 => not found
> >         libwx_base_net-2.8.so.0 => not found
> >         libwx_base-2.8.so.0 => not found
> >         libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7e03000)
> >         libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7ddc000)
> >         libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7dd0000)
> >         libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7db9000)
> >         libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7c78000)
> >         /lib/ld-linux.so.2 (0x80000000)
> 
> OK, this is clearly a different result than you got on 12 June.  Based on
> the names of the wxWidgets libraries, it looks like it's looking for the
> ANSI versions of the libraries, not the Unicode version (which have a 'u'
> in the fileanme after the gtk2), which is what gets installed through 
> Synaptic.  Somehow, you're looking at the official released library, and 
> not the one that I later built to use the default Feisty libs 
> (<a
> href="http://wxeuphoria.sf.net/libwxeu.so.tar.gz">http://wxeuphoria.sf.net/libwxeu.so.tar.gz</a>).
> 
> If you do a search (from the web interface, just click on the subject above)
> for this thread, and go down to your ldd output from 12 June, you'll see
> that the names are different, and that it's looking for libtiff.so.4.
> This version of the library must have been built with Ubuntu 6.10 (as 
> I believe the alpha and beta versions were)--also, you seemed to have the
> beta version of wxeud.e, so I think this is a reasonable conclusion.
> 
> Make sure that the library is up to date (it should have been created on
> 11 June).  It might be easier to just purge all wxEuphoria stuff and start
> from scratch.  Just make sure that you get the newer binary, *not* the 
> version that's on the download page.
> 
> Matt

I replaced libwxeu.so
This time it is correct, judging by the size of the file.

jstory@jstory-desktop:/$ ldd /usr/local/lib/libwxeu.so
        linux-gate.so.1 =>  (0xffffe000)
libwx_gtk2u_aui-2.8.so.0 => /usr/lib/libwx_gtk2u_aui-2.8.so.0
        (0xb7ed7000)
libwx_gtk2u_xrc-2.8.so.0 => /usr/lib/libwx_gtk2u_xrc-2.8.so.0
        (0xb7e41000)
        libwx_gtk2u_qa-2.8.so.0 => /usr/lib/libwx_gtk2u_qa-2.8.so.0 (0xb7e20000)
libwx_gtk2u_html-2.8.so.0 => /usr/lib/libwx_gtk2u_html-2.8.so.0
        (0xb7d80000)
libwx_gtk2u_adv-2.8.so.0 => /usr/lib/libwx_gtk2u_adv-2.8.so.0
        (0xb7cbd000)
libwx_gtk2u_core-2.8.so.0 => /usr/lib/libwx_gtk2u_core-2.8.so.0
        (0xb7938000)
libwx_baseu_xml-2.8.so.0 => /usr/lib/libwx_baseu_xml-2.8.so.0
        (0xb792e000)
libwx_baseu_net-2.8.so.0 => /usr/lib/libwx_baseu_net-2.8.so.0
        (0xb78ff000)
        libwx_baseu-2.8.so.0 => /usr/lib/libwx_baseu-2.8.so.0 (0xb77a2000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb76b8000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7691000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7685000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb766e000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb752c000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7518000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7514000)
        libgstreamer-0.10.so.0 => /usr/lib/libgstreamer-0.10.so.0 (0xb7476000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb7473000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb7356000)
        libgconf-2.so.4 => /usr/lib/libgconf-2.so.4 (0xb7323000)
        libORBit-2.so.0 => /usr/lib/libORBit-2.so.0 (0xb72d0000)
        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb72cb000)
        librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb72c2000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb7288000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb71f3000)
libgstinterfaces-0.10.so.0 => /usr/lib/libgstinterfaces-0.10.so.0
        (0xb71ea000)
        libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb6e92000)
        libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb6e0c000)
        libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb6df1000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb6dda000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb6dae000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb6da0000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb6d98000)
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb6d95000)
        libXi.so.6 => /usr/lib/libXi.so.6 (0xb6d8d000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb6d87000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb6d7d000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb6d78000)
        libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb6d3a000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb6c49000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0xb6c40000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb6c1d000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb6bfd000)
        libtiff.so.4 => /usr/lib/libtiff.so.4 (0xb6bab000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb6b8b000)
        /lib/ld-linux.so.2 (0x80000000)
        libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb6b82000)
        libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb6b12000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb6aa7000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb6aa3000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6a9e000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0xb6a86000)
        libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb6a5b000)

new topic     » goto parent     » topic index » view message » categorize

32. Re: wxEuphoria v0.10.0 - wxeud.e:758

Jerry Story wrote:
> 

> 
> I replaced libwxeu.so
> This time it is correct, judging by the size of the file.
> 
> jstory@jstory-desktop:/$ ldd /usr/local/lib/libwxeu.so
>         libwx_gtk2u_aui-2.8.so.0 => /usr/lib/libwx_gtk2u_aui-2.8.so.0
>         (0xb7ed7000)
>         libwx_gtk2u_xrc-2.8.so.0 => /usr/lib/libwx_gtk2u_xrc-2.8.so.0
>         (0xb7e41000)
>         libwx_gtk2u_qa-2.8.so.0 => /usr/lib/libwx_gtk2u_qa-2.8.so.0
>         (0xb7e20000)
>         libwx_gtk2u_html-2.8.so.0 => /usr/lib/libwx_gtk2u_html-2.8.so.0
>         (0xb7d80000)
>         libwx_gtk2u_adv-2.8.so.0 => /usr/lib/libwx_gtk2u_adv-2.8.so.0
>         (0xb7cbd000)
>         libwx_gtk2u_core-2.8.so.0 => /usr/lib/libwx_gtk2u_core-2.8.so.0
>         (0xb7938000)
>         libwx_baseu_xml-2.8.so.0 => /usr/lib/libwx_baseu_xml-2.8.so.0
>         (0xb792e000)
>         libwx_baseu_net-2.8.so.0 => /usr/lib/libwx_baseu_net-2.8.so.0
>         (0xb78ff000)
>         libwx_baseu-2.8.so.0 => /usr/lib/libwx_baseu-2.8.so.0 (0xb77a2000)
...
>         libtiff.so.4 => /usr/lib/libtiff.so.4 (0xb6bab000)

I agree, looking at these results.  Run:

$ sudo ldconfig /usr/local/lib

...and it looks like you should be good to go.

Matt

new topic     » goto parent     » topic index » view message » categorize

33. Re: wxEuphoria v0.10.0 - wxeud.e:758

Matt Lewis wrote:
> 
> Jerry Story wrote:
> > 
> > I replaced libwxeu.so
> > This time it is correct, judging by the size of the file.
> > 
> > jstory@jstory-desktop:/$ ldd /usr/local/lib/libwxeu.so
> >         libwx_gtk2u_aui-2.8.so.0 => /usr/lib/libwx_gtk2u_aui-2.8.so.0
> >         (0xb7ed7000)
> >         libwx_gtk2u_xrc-2.8.so.0 => /usr/lib/libwx_gtk2u_xrc-2.8.so.0
> >         (0xb7e41000)
> >         libwx_gtk2u_qa-2.8.so.0 => /usr/lib/libwx_gtk2u_qa-2.8.so.0
> >         (0xb7e20000)
> >         libwx_gtk2u_html-2.8.so.0 => /usr/lib/libwx_gtk2u_html-2.8.so.0
> >         (0xb7d80000)
> >         libwx_gtk2u_adv-2.8.so.0 => /usr/lib/libwx_gtk2u_adv-2.8.so.0
> >         (0xb7cbd000)
> >         libwx_gtk2u_core-2.8.so.0 => /usr/lib/libwx_gtk2u_core-2.8.so.0
> >         (0xb7938000)
> >         libwx_baseu_xml-2.8.so.0 => /usr/lib/libwx_baseu_xml-2.8.so.0
> >         (0xb792e000)
> >         libwx_baseu_net-2.8.so.0 => /usr/lib/libwx_baseu_net-2.8.so.0
> >         (0xb78ff000)
> >         libwx_baseu-2.8.so.0 => /usr/lib/libwx_baseu-2.8.so.0 (0xb77a2000)
> ...
> >         libtiff.so.4 => /usr/lib/libtiff.so.4 (0xb6bab000)
> 
> I agree, looking at these results.  Run:
> 
> $ sudo ldconfig /usr/local/lib
> 
> ...and it looks like you should be good to go.
> 
> Matt

I did the ldconfig thing and then tried the demos.
Still didn't work.

jstory@jstory-desktop:~/euphoria/include/wxEuphoria/demo$ exu list.exw
Could not open wxEuphoria library.  Press enter to abort.

new topic     » goto parent     » topic index » view message » categorize

34. Re: wxEuphoria v0.10.0 - wxeud.e:758

Jerry Story wrote:
>
> I did the ldconfig thing and then tried the demos.
> Still didn't work.
> 
> jstory@jstory-desktop:~/euphoria/include/wxEuphoria/demo$ exu list.exw
> Could not open wxEuphoria library.  Press enter to abort.

Ok, let's try ld-linux.so.2 on that library to see what we get.

Matt

new topic     » goto parent     » topic index » view message » categorize

35. Re: wxEuphoria v0.10.0 - wxeud.e:758

Matt Lewis wrote:
> 
> Jerry Story wrote:
> >
> > I did the ldconfig thing and then tried the demos.
> > Still didn't work.
> > 
> > jstory@jstory-desktop:~/euphoria/include/wxEuphoria/demo$ exu list.exw
> > Could not open wxEuphoria library.  Press enter to abort.
> 
> Ok, let's try ld-linux.so.2 on that library to see what we get.
> 
> Matt

jstory@jstory-desktop:/$ /lib/ld-linux.so.2 /usr/local/lib/libwxeu.so
/usr/local/lib/libwxeu.so: symbol lookup error: /usr/local/lib/libwxeu.so:
undefined symbol: _Z14NewStringConstPKc

new topic     » goto parent     » topic index » view message » categorize

36. Re: wxEuphoria v0.10.0 - wxeud.e:758

Jerry Story wrote:
> 
> Matt Lewis wrote:
> > 
> > Jerry Story wrote:
> > >
> > > I did the ldconfig thing and then tried the demos.
> > > Still didn't work.
> > > 
> > > jstory@jstory-desktop:~/euphoria/include/wxEuphoria/demo$ exu list.exw
> > > Could not open wxEuphoria library.  Press enter to abort.
> > 
> > Ok, let's try ld-linux.so.2 on that library to see what we get.
> > 
> > Matt
> 
> jstory@jstory-desktop:/$ /lib/ld-linux.so.2 /usr/local/lib/libwxeu.so
> /usr/local/lib/libwxeu.so: symbol lookup error: /usr/local/lib/libwxeu.so:
> undefined
> symbol: _Z14NewStringConstPKc

What is the next thing to do?

new topic     » goto parent     » topic index » view message » categorize

37. Re: wxEuphoria v0.10.0 - wxeud.e:758

Jerry Story wrote:
> 
> > 
> > jstory@jstory-desktop:/$ /lib/ld-linux.so.2 /usr/local/lib/libwxeu.so
> > /usr/local/lib/libwxeu.so: symbol lookup error: /usr/local/lib/libwxeu.so:
> > undefined
> > symbol: _Z14NewStringConstPKc
> 
> What is the next thing to do?

I suppose we need to figure out what that symbol is, and why it's not there.
I have no idea where that might be coming from.  I haven't been able to 
sit down with my linux box, so I haven't had a chance to track it down yet.
I'll try to take a look tonight.

Matt

new topic     » goto parent     » topic index » view message » categorize

38. Re: wxEuphoria v0.10.0 - wxeud.e:758

Matt Lewis wrote:
> 
> Jerry Story wrote:
> > 
> > > jstory@jstory-desktop:/$ /lib/ld-linux.so.2 /usr/local/lib/libwxeu.so
> > > /usr/local/lib/libwxeu.so: symbol lookup error: /usr/local/lib/libwxeu.so:
> > > undefined
> > > symbol: _Z14NewStringConstPKc
> > 
> > What is the next thing to do?
> 
> I suppose we need to figure out what that symbol is, and why it's not there.
> I have no idea where that might be coming from.  I haven't been able to 
> sit down with my linux box, so I haven't had a chance to track it down yet.
> I'll try to take a look tonight.
> 
> Matt

How can we go about tracking down that symbol?
I did a Google search on it. No success.
Does the name _Z14NewStringConstPKc use Microsoft Hungarian notation?
Is it possible to figure out stuff about it from the name?

new topic     » goto parent     » topic index » view message » categorize

39. Re: wxEuphoria v0.10.0 - wxeud.e:758

Jerry Story wrote:
> 
> Matt Lewis wrote:
> > 
> > Jerry Story wrote:
> > > 
> > > > jstory@jstory-desktop:/$ /lib/ld-linux.so.2 /usr/local/lib/libwxeu.so
> > > > /usr/local/lib/libwxeu.so: symbol lookup error:
> > > > /usr/local/lib/libwxeu.so:
> > > > undefined symbol: _Z14NewStringConstPKc
> > > 
> 
> How can we go about tracking down that symbol?
> I did a Google search on it. No success.
> Does the name _Z14NewStringConstPKc use Microsoft Hungarian notation?
> Is it possible to figure out stuff about it from the name?

No, it's one of mine.  I use some of the Euphoria backend to do stuff in
C++, which makes the Euphoria code simpler, since I create all of the C++
objects in C++.  The stuff around the name is just g++ name mangling.

The catch was that the unicode version of some wxWidgets string handling 
routines needed a "const * char" rather than a "* char" like Euphoria uses, 
so I copied the NewString routine and changed it to return a const.

Somehow, it managed to build, and I managed to 'test' it by using the old
shared library (i.e., I didn't test it at all).  I had a few minutes a 
couple of days ago, and I found that out.  I tried a clean build, and 
realized that where I'd used literal strings in the code, I hadn't used
the wxWidgets-provided portable macro that converts your data to either
unicode or ansi, based on your compilation options.

So I still need to go through the code and fix all those places.  I'll 
really try to get that done in the next day or two.  Seriously.  I 
really mean it this time....

Matt

new topic     » goto parent     » topic index » view message » categorize

40. Re: wxEuphoria v0.10.0 - wxeud.e:758

OK, I think I've got it working now.  Try:

http://wxeuphoria.sf.net/libwxeu.so.tar.gz

Install it (either /usr/local/lib or /usr/lib) and run ldconfig on that
directory before you try to use it...

Matt

new topic     » goto parent     » topic index » view message » categorize

41. Re: wxEuphoria v0.10.0 - wxeud.e:758

Matt Lewis wrote:
> 
> 
> OK, I think I've got it working now.  Try:
> 
> <a
> href="http://wxeuphoria.sf.net/libwxeu.so.tar.gz">http://wxeuphoria.sf.net/libwxeu.so.tar.gz</a>
> 
> Install it (either /usr/local/lib or /usr/lib) and run ldconfig on that
> directory before you try to use it...
> 
> Matt

I put it in /usr/local/lib and ran ldconfig in /usr/local/lib

jstory@jstory-desktop:~/euphoria/include/wxEuphoria/demo$ exu hello_world.exw
Could not open wxEuphoria library.  Press enter to abort.

new topic     » goto parent     » topic index » view message » categorize

42. Re: wxEuphoria v0.10.0 - wxeud.e:758

Jerry Story wrote:
> 
> Matt Lewis wrote:
> > 
> > 
> > OK, I think I've got it working now.  Try:
> > 
> > <a
> > href="http://wxeuphoria.sf.net/libwxeu.so.tar.gz">http://wxeuphoria.sf.net/libwxeu.so.tar.gz</a>
> > 
> > Install it (either /usr/local/lib or /usr/lib) and run ldconfig on that
> > directory before you try to use it...
> > 
> > Matt
> 
> I put it in /usr/local/lib and ran ldconfig in /usr/local/lib
> 
> jstory@jstory-desktop:~/euphoria/include/wxEuphoria/demo$ exu hello_world.exw
> Could not open wxEuphoria library.  Press enter to abort.

A new result:
jstory@jstory-desktop:~$ /lib/ld-linux.so.2 /usr/local/lib/libwxeu.so
Segmentation fault (core dumped)

What does that mean?

new topic     » goto parent     » topic index » view message » categorize

43. Re: wxEuphoria v0.10.0 - wxeud.e:758

Jerry Story wrote:
> 
> Jerry Story wrote:
> > 
> > jstory@jstory-desktop:~/euphoria/include/wxEuphoria/demo$ exu
> > hello_world.exw
> > Could not open wxEuphoria library.  Press enter to abort.
> 
> A new result:
> jstory@jstory-desktop:~$ /lib/ld-linux.so.2 /usr/local/lib/libwxeu.so
> Segmentation fault (core dumped)
> 
> What does that mean?

I got that, too, however, it still ran....will have to think about this...

Matt

new topic     » goto parent     » topic index » view message » categorize

44. Re: wxEuphoria v0.10.0 - wxeud.e:758

Jerry Story wrote:
> 
> Matt Lewis wrote:
> > 
> > 
> > OK, I think I've got it working now.  Try:
> > 
> > <a
> > href="http://wxeuphoria.sf.net/libwxeu.so.tar.gz">http://wxeuphoria.sf.net/libwxeu.so.tar.gz</a>
> > 
> > Install it (either /usr/local/lib or /usr/lib) and run ldconfig on that
> > directory before you try to use it...
> > 
> > Matt
> 
> I put it in /usr/local/lib and ran ldconfig in /usr/local/lib
> 
> jstory@jstory-desktop:~/euphoria/include/wxEuphoria/demo$ exu hello_world.exw
> Could not open wxEuphoria library.  Press enter to abort.

I can't figure out why it segfaults.  But it still works when loaded by
euphoria for me...

Matt

new topic     » goto parent     » topic index » view message » categorize

45. Re: wxEuphoria v0.10.0 - wxeud.e:758

Matt Lewis wrote:
> 
> Jerry Story wrote:
> > 
> > Matt Lewis wrote:
> > > 
> > > 
> > > OK, I think I've got it working now.  Try:
> > > 
> > > <a
> > > href="http://wxeuphoria.sf.net/libwxeu.so.tar.gz">http://wxeuphoria.sf.net/libwxeu.so.tar.gz</a>
> > > 
> > > Install it (either /usr/local/lib or /usr/lib) and run ldconfig on that
> > > directory before you try to use it...
> > > 
> > > Matt
> > 
> > I put it in /usr/local/lib and ran ldconfig in /usr/local/lib
> > 
> > jstory@jstory-desktop:~/euphoria/include/wxEuphoria/demo$ exu
> > hello_world.exw
> > Could not open wxEuphoria library.  Press enter to abort.
> 
> I can't figure out why it segfaults.  But it still works when loaded by
> euphoria for me...
> 
> Matt

Make sure you get a core file and try GDB? I'm not experienced at that kind of
thing but I know that it can be done.

You may have to turn core files on with "ulimit -c" and setting a value other
than zero.

http://www.unknownroad.com/rtfm/gdbtut/gdbadvanced.html#CORE
And other pages brought to you by Google.

Hope that helps!

--
"Any programming problem can be solved by adding a level of indirection."
--anonymous
"Any performance problem can be solved by removing a level of indirection."
--M. Haertel
"Premature optimization is the root of all evil in programming."
--C.A.R. Hoare
j.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu