Become a leader in the IoT community!
New DevHeads get a 320-point leaderboard boost when joining the DevHeads IoT Integration Community. In addition to learning and advising, active community leaders are rewarded with community recognition and free tech stuff. Start your Legendary Collaboration now!
hi friend @marveeamasi the issue you’re encountering with `LD_PRELOAD` is likely due to the naming and location of the shared library `getpid.so`. You can go through it again to ensure everything is correctly set up, if you need further guidance do well to reach out
Yh thanks @destynin I had to specify the full path to getpid.so in the LD_PRELOAD environment variable
Hi! @marveeamasi One common issue with `LD_PRELOAD` is that the shared library must be compiled with position-independent code (`PIC`). Make sure you compiled `getpid.so` with the `-fPIC flag`. Also, check that `getpid.so` is in the current directory when you run the `LD_PRELOAD` command. Try running `ldd` `getpid.so` to check if there are any missing dependencies.
CONTRIBUTE TO THIS THREAD