Skip to contentSkip to conversation

debug message for dependencies not found

PATCH Maninder Singh 2 participants 2 messages Apr 7, 2015

lore
Share & tools
lore

Maninder Singh

author Reviewed-by Ajeet Yadav
#0 lore raw

Hi Mark,

We have checked the commit on cross_prelik_staging, it is correct But i did one typo error Please correct following:- Just change Reviewed-by: Ajeet Yadav <[email protected]>
to

Typo arror for ajeet.v ---> ajeet.y
Thanks
Maninder Singh

Quoted 6 lines

This and the other patch have been merged onto the cross_prelink_staging branch.

Please test that I merged it properly. (Everything passed my basic testing, but I haven't run it against any ARM/HF libraries or similar.)

--Mark

Quoted 40 lines · Maninder Singh

Hi,
Same mail sent earlier Changing subject line, By mistake shared subject line of other patch.

prelink gives below error message for failure dependency:
./prelink: /test_binary: Could not find one of the dependencies

This provides name of dependent library which is missing like below:
./prelink: /test_binary: Could not find one of the dependencies:
./prelink-rtld: error while loading shared libraries: libB.so: cannot open shared object file: No such file or directory where libB.so is missing dependecy

---
 src/gather.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
src/gather.c +2 -3
index 5ccd243..4a3f428 100644
@@ -240,8 +240,8 @@ gather_deps (DSO *dso, struct prelink_entry *ent)
          if (q != NULL)
            {
              error (0, 0,
-                "%s: Could not find one of the dependencies",
-                ent->filename);
+                "%s: Could not find one of the dependencies:\n%s",
+                ent->filename, line);
              goto error_out;
            }
        }
--

Thanks
Maninder Singh

#1 lore raw
Quoted 7 lines · Maninder Singh

Hi Mark,

We have checked the commit on cross_prelik_staging, it is correct But i did one typo error Please correct following:- Just change Reviewed-by: Ajeet Yadav <[email protected]>
to

Typo arror for ajeet.v ---> ajeet.y

Fixed in the commit message. I'm going to let this sit in the staging for a bit longer, then merge it to the cross_prelink branch and eventually Yocto Project/OE.

--Mark

Quoted 50 lines

Thanks
Maninder Singh

Quoted 6 lines

This and the other patch have been merged onto the cross_prelink_staging branch.

Please test that I merged it properly. (Everything passed my basic testing, but I haven't run it against any ARM/HF libraries or similar.)

--Mark

Quoted 40 lines · Maninder Singh

Hi,
Same mail sent earlier Changing subject line, By mistake shared subject line of other patch.

prelink gives below error message for failure dependency:
./prelink: /test_binary: Could not find one of the dependencies

This provides name of dependent library which is missing like below:
./prelink: /test_binary: Could not find one of the dependencies:
./prelink-rtld: error while loading shared libraries: libB.so: cannot open shared object file: No such file or directory where libB.so is missing dependecy

---
 src/gather.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
src/gather.c +2 -3
index 5ccd243..4a3f428 100644
@@ -240,8 +240,8 @@ gather_deps (DSO *dso, struct prelink_entry *ent)
          if (q != NULL)
            {
              error (0, 0,
-                "%s: Could not find one of the dependencies",
-                ent->filename);
+                "%s: Could not find one of the dependencies:\n%s",
+                ent->filename, line);
              goto error_out;
            }
        }
--

Thanks
Maninder Singh