swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 1.0.4 and linux


From: Pietro Terna
Subject: Re: 1.0.4 and linux
Date: Wed, 31 Dec 1997 00:03:44 +0100

        Hi Marcus and All,

        things with libdl (-ldl) in a Linux Box (anyway, a Slackware Linux Box)
are a little bit complex. I'm reporting here my analysis and my solution.

        Yours, Pietro

1. In my Linux box, in /lib, I have

        libdl.so.1.7.14 and
        libdl.so.1      which is a link to libdl.so.1.7.14

2. Swarm 1.0.4 is unable to see them.

3. libdl.so* is a small shared library, necessary to handle dlopen,
dlerror, dlsym functions (which are used to operate with shared libraries);
libdl.a simply does not exist (this is my opinion).

4. Creating, in /lib, the symbolic link 
        ln -sfn libdl.so.1.7.14 libdl.a
                      or
        ln -sfn libdl.so.1.7.14 libdl.so (I've chosen this one)
Swarm can see the library and -ldl works.

At 16.09 29/12/97 -0800, you wrote:
>>>>>> "PT" == Pietro Terna <address@hidden> writes:
>
>PT>    eliminating -ldl from the configuration, I obtain:
>
>../../swarm/lib/swarm.x: In function `TclLoadFile':
>../../swarm/lib/swarm.x(.text+0x102f43): undefined reference to `dlopen'
>../../swarm/lib/swarm.x(.text+0x102f53): undefined reference to `dlsym'
>../../swarm/lib/swarm.x(.text+0x102f62): undefined reference to `dlsym'
>../../swarm/lib/swarm.x(.text+0x102f73): undefined reference to `dlerror'
>make: *** [heatbugs] Error 1
>
>Ah, of course!  Sorry!  That binary distribution was built on a system
>that had the dynamic linking library, and thus a Tcl equipped that
>way, so libdl will really be needed.  The required parts of Tcl are already
>frozen into that `swarm.x' file, so it won't be helpful to change your
>install of Tcl.  
>
>But if your GNU/Linux box is Debian or Red Hat, there is a libdl
>package that you can install without much trouble.  The dynamic linker
>library is really is something you should have on a system you are
>using for development.
>
>                  ==================================
>   Swarm-Support is for discussion of the technical details of the day
>   to day usage of Swarm.  For list administration needs (esp.
>   [un]subscribing), please send a message to <address@hidden>
>   with "help" in the body of the message.
>                  ==================================
>


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]