1. wxEuphoria - Fedora

Is there some difference between Ubuntu and Fedora such that /usr/local/lib/libwxeu.so.12 works on Ubuntu but not on Fedora?

new topic     » topic index » view message » categorize

2. Re: wxEuphoria - Fedora

JerryStory said...

Is there some difference between Ubuntu and Fedora such that /usr/local/lib/libwxeu.so.12 works on Ubuntu but not on Fedora?

There could well be.

Fedora might have some DEP or anti-buffer overflow protection enabled by default, that Ubuntu has off by default. Or perhaps Fedora uses a different version of glibc that doesn't work with libwxeu.so.12

In order to determine exactly what feature is causing an issue, it would probably help if you have an error message or at least some symptoms.

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

3. Re: wxEuphoria - Fedora

jimcbrown said...
JerryStory said...

Is there some difference between Ubuntu and Fedora such that /usr/local/lib/libwxeu.so.12 works on Ubuntu but not on Fedora?

There could well be.

Fedora might have some DEP or anti-buffer overflow protection enabled by default, that Ubuntu has off by default. Or perhaps Fedora uses a different version of glibc that doesn't work with libwxeu.so.12

In order to determine exactly what feature is causing an issue, it would probably help if you have an error message or at least some symptoms.

It's more likely a dependency issue. All of the shared libraries are C, so I don't think there are any DEP issues (and hopefully I haven't coded any buffer overflows either). The most obvious problem (which someone else ran into) is that the binary that I distributed was built for Unicode, while the distro's wxWidgets build was ANSI.

Matt

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

4. Re: wxEuphoria - Fedora

jimcbrown said...
JerryStory said...

Is there some difference between Ubuntu and Fedora such that /usr/local/lib/libwxeu.so.12 works on Ubuntu but not on Fedora?

There could well be.

Fedora might have some DEP or anti-buffer overflow protection enabled by default, that Ubuntu has off by default. Or perhaps Fedora uses a different version of glibc that doesn't work with libwxeu.so.12

In order to determine exactly what feature is causing an issue, it would probably help if you have an error message or at least some symptoms.

The error message does not seem to be very useful. But here it is.

 
-- [ error message excerpt ] --- 
 
/home/jstory/euphoria/include/wxEuphoria/wxeud.e:7016 in function create() 
A machine-level exception occurred during execution of this statement 
   <no-name> = 23 
   <no-name> = { 
                 0, 
                 -1, 
                 {68'D',105'i',101'e',116't',32' ',77'M',111'o',110'n', 
103'g',101'e',114'r',32' ',65'A',115's',115's',32' ',75'K',105'i',99'c', 
107'k',101'e',114'r'}, 
                 0, 
                 0, 
                 350, 
                 450 
               } 
 
... called from dmak.exw:1 
 
--- [ end error message excerpt ] --- 
 

libwxeu.so.12 is where it is supposed to be, in /usr/local/lib

wxWidgets 2.8 seems to be installed.

It's finding wxeud.e

DMAK works on my computer with Ubuntu. I don't know what to tell this person. He is running Fedora.

Another question: Is there anyone besides myself making wxEuphoria applications for people other than Euphoria programmers? According to this list of wxEuphoria applications

http://wxeuphoria.sourceforge.net/apps.php

there are only Matt Lewis and me. But Matt's applications are for only Euphoria programmers. The reason why I ask is that I'm having difficulty making a good installation program for wxEuphoria programs all by my lonesome.

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

5. Re: wxEuphoria - Fedora

Linux by default allows execution on allocated memory whether you mark the memory as executable or not. The entire binary is marked either as allowing execution on the binary or not. By default the binary is marked to allow this and gcc uses this feature in the programs it generates. So anything you compile under Linux will allow you to run programs on the stack be it allocate() or malloc(). The machine exception just can't be due to DEP.

Shawn

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

6. Re: wxEuphoria - Fedora

Hi

The first thing I do when I get errors like this in Linux is to run ldd on the library

ldd libwxeu.so.12

this often as not gives a library that can't be found that is required by the library you want to include.

The other thing to bear in mind is that there are some 64 bit Linux distros out there, and you need to be careful that all the libs that your eu program includes are 32 bit - so there may be some issues with libraries that livwxeu is trying to include.

Also I create a shortcut to point to the installed library, within /usr/lib

libwxeu.so -> libwxeu.so.12

That way the eu includes stay the same, and as you update the libraries, you just update the symlinks

Chris

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

Search



Quick Links

User menu

Not signed in.

Misc Menu