Below is the command I am trying to run and the error I am getting:
~/Desktop/haiku/src/apps/mediaplayer> LD_PRELOAD=../../../generated/objects/haiku/x86_64/release/kits/libbe.so ../../../generated/objects/haiku/x86_64/release/apps/mediaplayer/MediaPlayer
runtime_loader: /boot/home/Desktop/haiku/generated/objects/haiku/x86_64/release/kits/libbe.so: Troubles relocating: Bad data
I tried running readelf -r libbe.so
to inspect the relocation section. Below is the output of this command.
https://paste.opensuse.org/pastes/f5638430fcd1
Please share more details:
- What operating system are you running? I assume it’s Haiku?
- 32 or 64 bit?
- beta 5 or nightly? (the version you are running, and also the one you’re building from)
- Did you make any changes to libbe or to other parts of the build?
- Which commands did you run to build it?
- Does it work without the LD_PRELOAD?
- yes, it’s haiku, It’s running in a vm(qemu) and host os is linux mint.
- 64 bit
- I recently build the haiku.hpkg from source and installed that
- no not libbe.so, I only made changes in mediaplayer
- jam -q MediaPlayer
- yes
When I did a restart, the command is able to open compiled mediaplayer without any error. I think this ticket can be considered resolved for now!