--- ldconfig.c~	2014-02-07 09:04:38.000000000 +0000
+++ ldconfig.c	2014-10-02 08:34:44.000000000 +0100
@@ -960,9 +960,10 @@
 			       && flag == FLAG_ELF)
 			dlib_ptr->flag = flag;
 		      else
-			error (0, 0, _("libraries %s and %s in directory %s have same soname but different type."),
+			error (0, 0, _("libraries %s and %s in directory %s have same soname but different type (0x%08x vs 0x%08x)."),
 			       dlib_ptr->name, direntry->d_name,
-			       entry->path);
+			       entry->path,
+			       dlib_ptr->flag, flag);
 		    }
 		  free (dlib_ptr->name);
 		  dlib_ptr->name = xstrdup (direntry->d_name);
