give out a little more information in case of a missing dependency
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Fri, 4 Feb 2005 01:06:05 +0000 (01:06 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Fri, 4 Feb 2005 01:06:05 +0000 (01:06 +0000)
rtld.c, 1.96
Obtained-from: FreeBSD

libexec/rtld-elf/rtld.c

index 8b3767e..6c42e53 100644 (file)
@@ -24,7 +24,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
  * $FreeBSD: src/libexec/rtld-elf/rtld.c,v 1.43.2.15 2003/02/20 20:42:46 kan Exp $
- * $DragonFly: src/libexec/rtld-elf/rtld.c,v 1.9 2005/02/03 23:28:24 joerg Exp $
+ * $DragonFly: src/libexec/rtld-elf/rtld.c,v 1.10 2005/02/04 01:06:05 joerg Exp $
  */
 
 /*
@@ -876,7 +876,12 @@ find_library(const char *name, const Obj_Entry *refobj)
       (pathname = search_library_path(name, STANDARD_LIBRARY_PATH)) != NULL)
        return pathname;
 
-    _rtld_error("Shared object \"%s\" not found", name);
+    if(refobj != NULL && refobj->path != NULL) {
+       _rtld_error("Shared object \"%s\" not found, required by \"%s\"",
+         name, basename(refobj->path));
+    } else {
+       _rtld_error("Shared object \"%s\" not found", name);
+    }
     return NULL;
 }