title: dlopen fails with file not found when file is in correct path
body: <p>I have a library built using libtool which is install into the package's library directory, <code>/usr/local/lib/myprog/libmylib.so</code>. I'm dynamically loading the library in my code with libltdl. When I try to load this library on one machine, it works just fine. On another, with the same build and the library installed on the same location, I get a "file not found" error.</p>
  
  <p>If I call <code>lt_dlforeachfile</code> directly before <code>lt_dlopenext</code> (which I use to load the library), then I can see by printing out filenames that the library I need has been found in the search path. But then immediately after, loading it fails with a "file not found" error. Any suggestions?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I have tried switching to using <code>dlopen</code> and explicitly specifying the absolute path to the library. This still works on some systems and not on the other.</p>