guile-user
[Top][All Lists]
Advanced

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

Re: dynamic-link problem


From: Seth Alves
Subject: Re: dynamic-link problem
Date: Sun, 22 Jul 2001 22:03:37 -0700

> address@hidden (Bill Gribble) writes:
> > Still no luck with linking the actual library I'm trying to link.  Any
> > other suggestions?
> Guile is using libltdl from libtool to implement its `dynamic-link'
> function.  libltdl has problems with error reporting: it tries a
> number of names for a library until one succeeds, regardless of the
> reason of failure.  When one try fails because of unresolved symbols,
> say, it just goes ahead and tries the remaining names, and ultimately
> fails with "file not found", which is wrong.
> [I meant to fix this for quite some time now...]

Try this.  It will spew a lot, but you should see a hint in there,
someplace.

        -seth



  in libltdl/ltdl.c:

  static lt_module
  sys_dl_open (loader_data, filename)
       lt_user_data loader_data;
       const char *filename;
  {
    lt_module   module   = dlopen (filename, LT_GLOBAL | LT_LAZY_OR_NOW);
  
    if (!module)
      {
  >>>      fprintf (stderr, "%s\n", dlerror ());
        MUTEX_SETERROR (DLERROR (CANNOT_OPEN));
      }
  
    return module;
    }



reply via email to

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