menu

Questions & Answers

ERROR: ld.so: object 'libkwinject.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored

I'm trying to build a project and surround it in Klocwork static code analysis tool. One of the steps is to build the project and invoke kwinject so it will create a file later to be used for analysis. Problem is I get the following error:

ERROR: ld.so: object 'libkwinject.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

The .so file is located in 2 locations: /home/ubuntu/klocwork/lib/ix86-pc-linux/libkwinject.so /home/ubuntu/klocwork/lib64/ix86-pc-linux/libkwinject.so

I added the first full path to the LD_PRELOAD variable but I still get the same error mentioned above

I'm using Ubuntu 22.04

Comments:
2023-01-18 23:52:12
Please update your question to show the exact commands you’re running.
Answers(0) :