At 09:40 PM 3/5/00 -0500, "Alain Magloire" <[EMAIL PROTECTED]> wrote:
>Bonjour

Thanks for your response. If I had to guess, there are differences among
Linux distributions. Neither my Slackware nor my SuSE distribution have an
include file called dlfcn.h.

At the moment of installation, I did not anticipate my need for dlfcn.h.
>From your description, it must an installation problem. I did not install
the dl package, nor any of its dependencies. Could that be it?

>> Functions for loading shared libraries dynamically are implemented in
>> libdl.so. There is a header file for this library. What is it?
>> 
>
>#include <dlfcn.h>

Thanks. Since you definitely know the name of the include file, I know now
that I definitely do not have it and can't find it.

>> But not on my Linux distribution! I search for all files on my computer
>> that start with "dl" and end with ".h" and I can find none.
>
>/usr/include/dlfcn.h

Sorry, I have no /usr/include/dlfcn.h on my Linux machines. It is
definitely missing. I searched for everything that starts with "dl",
something like this:

$ find -name dl*.h

If the find program cannot find it, it must not be there.

>> I looked up these functions on the Linux documentation project. While it
>> gives the signatures for dlopen(), dlclose(), dlerror() and dlsym(), it
>> does not give the values of RTLD_.. enumeration (like RTLD_LAZY) that's
>> passed to dlopen().
>
>RTLD_* are not defines directly in dlfcn for GNU lib C, since glibc
>is use for many different operating systems and arch (i.e. GNU/Linux,
>GNU/Hurd, etc ..) the dependent parts are included, for example in
>bits/*.h are asm/*.h etc .. but in you case you should never include
>them directly but use
>#include <dlfcnt.h>
>
>Look at the man pages or info files for more, this should have been
>your first stop.  You may wine about info and all but how hard could
>it have been to do `man dlopen' ??

I looked on the man pages on-line at the Linux Documentation Project. I
saved the link in the SharedLibraryOnLinux article on JOS Wiki. It helped a
little. I bought a book. It helped a little, too. But I am still unable to
load shared libraries dynamically.


_______________________________________________
Kernel maillist  -  [EMAIL PROTECTED]
http://jos.org/mailman/listinfo/kernel

Reply via email to