|
From: | Elias Mårtenson |
Subject: | Re: [Bug-apl] Failure to load native libraries causes incorrect error message |
Date: | Mon, 7 Apr 2014 23:31:20 +0800 |
Hi Elias,
yes, please send the patch.
/// Jürgen
On 04/06/2014 06:12 PM, Elias Mårtenson wrote:
The current mechanism to load native libraries first attempts to find a library with the suffix .so. If that fails, it will try again with the suffix .dylib (the OSX library extension).
This poses a problem, since if the .so library failed for any reason other than the file not existing, the error message in )MORE will be: "filename.dylib: file not found".
Since the dlopen facility does not provide a machine-readable way of interpreting hat the error was (missing file, or failure to initialise?) may I suggest we first identify which file exists and then perform a single dlopen on that file.
I can do it and send patches if you want.
Regards,
Elias
improved_dlopen.diff
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |