[Top][All Lists]

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

Re: [RFC] [PATCH] libltdl error reporting

From: Peter O'Gorman
Subject: Re: [RFC] [PATCH] libltdl error reporting
Date: Thu, 10 Jun 2010 14:52:36 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100430 Fedora/3.0.4-3.fc13 Thunderbird/3.0.4

On 06/10/2010 02:28 PM, Bob Friesenhahn wrote:
On Thu, 10 Jun 2010, Peter O'Gorman wrote:

As I am sure many are aware, libltdl's error reporting is pretty dumb,
lt_dlerror() regularly reports things like "file not found" where the
actual problem might be something completely different, and a
reasonable error string may be readily available from dlerror().

As we have known for quite a while now, libltdl's error reporting is not
sane. For example, the preloader always issues a useless error ("file
not found") when preloading is not used for the module. Since the
loaders were nicely modularized, each loader is tried in turn (issuing
an error on failure) until a loader is successful, or there are no more
loaders. This is perhaps worse on OS-X where there are two OS APIs for
loading modules. I think that some improvements were made, but
functionality is still lacking.

The patch that I attached should solve most of those issues. On Mac OS X, the dyld loader is not built if dlopen is available, if I remember correctly.


reply via email to

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