1. DMAK problem

The program in question is at:

  http://www.edmc.net/~jstory/dmak.tar.gz

   The executable file works okay when I use command-line window and navigate 
to the directory that it is in and type "./dmak".
   But that seems to be the only way to run the executable file.
   I added a note to the package explaining this.

   Someone emailed me and said he got an error:

ERROR OPENING eugtk.so

  and he says perhaps the Euphoria library wasn't statically linked.

I'm so ignorant that I don't know what "statically linked' means.  Does it 
mean the opposite of "dynamically linked"?  I don't know what that means 
either.

  What do I gotta do to get it "statically linked" or whatever?

  It's on freshmeat but if a bunch of people download it and think it doesn't 
work, that's no good.

new topic     » topic index » view message » categorize

2. Re: DMAK problem

Jerry,

DMAK has worked perfectly for me from right off the
bat from the time that I downloaed it from the
Euphoria Recent user's contributions page.

Also, under the XFCE desktop, I assigned an icon to it
with the path to the dmak.exu file and am able to
exectute it from the desktop by clicking on the icon
with no problem.

The program can be run from any console directory by
placing the path to the executable file in the
.bash.profile file. Don't think that is necessary
though to install it as an icon or a menu selectable
item on most desktops. 

I also ran the source code thru the Eu2C tanslator and
compiled the C code using gcc 3.2. When I tried to
execute the resulting binary file I got a number of
GTK related errors - even though the program works
fine from the interpreter. I don't think this is your
problem. I think it pertains to gcc 3.2 and the Eu2C
interpreter and I reported the problem to Robert.

Keep up the good work, Jerry.
Ken Rhodes



--- Jerry Story <jstory at edmc.net> wrote:
> 
>   The program in question is at:
> 
>   http://www.edmc.net/~jstory/dmak.tar.gz
> 
>    The executable file works okay when I use
> command-line window and navigate 
> to the directory that it is in and type "./dmak".
>    But that seems to be the only way to run the
> executable file.
>    I added a note to the package explaining this.
> 
>    Someone emailed me and said he got an error:
> 
> ERROR OPENING eugtk.so
> 
>   and he says perhaps the Euphoria library wasn't
> statically linked.
> 
> I'm so ignorant that I don't know what "statically
> linked' means.  Does it 
> mean the opposite of "dynamically linked"?  I don't
> know what that means 
> either.
> 
>   What do I gotta do to get it "statically linked"
> or whatever?
> 
>   It's on freshmeat but if a bunch of people
> download it and think it doesn't 
> work, that's no good.
> 
>
==^^===============================================================
> This email was sent to: ken_rhodes30436 at yahoo.com
> 
> 
> TOPICA - Start your own email discussion group.
> FREE!
>
>
==^^===============================================================
>

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

3. Re: DMAK problem

On Tue, Jan 07, 2003 at 01:07:41AM -0700, Jerry Story wrote:
> 
>   The program in question is at:
> 
>   http://www.edmc.net/~jstory/dmak.tar.gz
> 
>    The executable file works okay when I use command-line window and navigate 
> to the directory that it is in and type "./dmak".
>    But that seems to be the only way to run the executable file.

Hmm... in Llama, setup.exu is run in the current directory, and
writes the place where the apigtkhelp.so file is into an include file.
That include file is used by the library to figure out among other things,
where the .so file is located, so it knows where to load it from.

>    I added a note to the package explaining this.
> 
>    Someone emailed me and said he got an error:
> 
> ERROR OPENING eugtk.so
> 
>   and he says perhaps the Euphoria library wasn't statically linked.

Of course not, no Euphoria lib is staticly linked. They are all shared libs
used as dynamic.

> 
> I'm so ignorant that I don't know what "statically linked' means.  Does it 
> mean the opposite of "dynamically linked"?  I don't know what that means 
> either.
> 

Staticly linked libs are libs that are fused into the executable file,
henced linked at compile time.

Since this wastes memmory and disk space, shared libs were invented.

Shared libraries are libs that are loaded by the OS, and fused into multiple
processes at loader time (by ld.so iirc), but before any part of the program
has actually run.

Dynamic linked libaries are a variant of that idea which are loaded and linked
at run-time by the process's request, rather than that of a linker/program
loader.
The advantage here is that dynamic libs can also be unloaded.

A .so file is a shared/dynamic lib. (On disk, there is no difference between
a shared or a dynamic library. That only comes into play when a process loads
it. I.e. a lib can be dynamic for some programs and shared for others.)

Of course, its very hard for interpreted languages to use static libs.

Does any of this help?

>   What do I gotta do to get it "statically linked" or whatever?

Is it converted to C? No way to get Euphoria to use a static lib, unless
you use Eu2C first.

> 
>   It's on freshmeat but if a bunch of people download it and think it doesn't 
> work, that's no good.
> 

Good luck, I suppose.

jbrown

> ==^^===============================================================
> This email was sent to: jbrown1050 at hotpop.com
> 
> 
> TOPICA - Start your own email discussion group. FREE!

-- 
 /"\  ASCII ribbon
 \ /  campain against
  X   HTML e-mail and
 / \  news

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

4. Re: DMAK problem

On Tue, Jan 07, 2003 at 01:07:41AM -0700, Jerry Story wrote:
> 
>   The program in question is at:
> 
>   http://www.edmc.net/~jstory/dmak.tar.gz
> 
<snip>
> 
>    Someone emailed me and said he got an error:
> 
> ERROR OPENING eugtk.so
> 
<snip>
> 

Ok, I just downloaded it, and after adding libgtkxmhtml.so symlink to
libgtkxmhtml.so.1, I got this Error:

ERROR OPENING /opt/euphoria/include/eugtk.so

Hmm ... odd. Doesn't seem to want to check the current directory for
the file.

I unset EUDIR, and get this Error:

ERROR OPENING /include/eugtk.so

Doesn't seem to want to open eugtk.so in the current directory .. :[

I'll try it after I copy eugtk.so to /opt/euphoria/include .. later.

jbrown

> ==^^===============================================================
> This email was sent to: jbrown1050 at hotpop.com
> 
> 
> TOPICA - Start your own email discussion group. FREE!

-- 
 /"\  ASCII ribbon
 \ /  campain against
  X   HTML e-mail and
 / \  news

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

Search



Quick Links

User menu

Not signed in.

Misc Menu