ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded
Found the answer after a bit of web searching here: https://github.com/PX4/Firmware/issues/9409
Solution
If you update your .bashrc
with the below line it should fix the issue:
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0
In addition, you may need to install the following package:
sudo apt install gtk3-nocsd
An Alternative
Another user reported installing the following package fixed their issue:
sudo apt-get install libgtk3-nocsd0:i386
ERROR: ld.so: object LD_PRELOAD cannot be preloaded: ignored
The linker takes some environment variables into account. one is LD_PRELOAD
from man 8 ld-linux
:
LD_PRELOAD
A whitespace-separated list of additional, user-specified, ELF
shared libraries to be loaded before all others. This can be
used to selectively override functions in other shared
libraries. For setuid/setgid ELF binaries, only libraries in
the standard search directories that are also setgid will be
loaded.
Therefore the linker will try to load libraries listed in the LD_PRELOAD
variable before others are loaded.
What could be the case that inside the variable is listed a library that can't be pre-loaded. look inside your .bashrc
or .bash_profile
environment where the LD_PRELOAD
is set and remove that library from the variable.
ERROR: LD_PRELOAD cannot be preloaded :ignored
This is a side effect of installing the gtk3-nocsd package. On 64-bit systems, it sets the LD_PRELOAD
environment variable in a way that is incompatible with 32-bit multi-arch binaries. The error message is harmless. You can try removing the gtk3-nocsd package if you do not need it (apt remove gtk3-nocsd
as root), or set the LD_PRELOAD
environment variable when launching Wine:
LD_PRELOAD= wine
LXC container running on Ubuntu gives linker errors (ERROR: ld.so)
I solved that problem today.
From the discussion here, I realized that for arch the equivalent packet is gtk3 (and NOT
libgtk3
norlibgtk3-dev
norlibgtk3-nocsd
, as I was originally searching).From here I found out that I need to install the
gtk3
package by issuing the command:
# pacman -Syu gtk3
- And then following from this answer for Ubuntu, I tried something similar for arch, as shown below:
#export LD_PRELOAD=/usr/lib/libgtk-3.so.0
and now the error no longer appears.
(If not obvious, all of these steps were done inside the arch container, of course.)
ERROR: ld.so: object 'getpid.so' from LD_PRELOAD cannot be preloaded: ignored
Looks like the loader is unable to find getpid.so
as you've not mentioned the path to the library.
Try:
LD_PRELOAD=/full/path/to/getpid.so ./testpid
wrong ELF class: ELFCLASS32, but only when using GDB
ERROR: ld.so: object './hack/libdfhack.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
This error comes from GDB starting your (64-bit) shell, which in turn execs your (32-bit) dfhack
program.
You should only care about preloading into the target program. The fact that libdfhack.so
was not preloaded into your shell is of no consequence, and you should simply ignore it.
Wine window is too small
It was the fault of not building wine with freetype
Related Topics
Lowest Latency Notification Method Between Process Under Linux
How to Check If Two Paths Are Equal in Bash
How to Check a File Exists and Execute a Command If Not
What Happens When a Signal Is Received While Already in a Signal Handler
Where Do You Download Linux Source Code
Module Compiling:Asm/Linkage.H File Not Found
Gdb Appears to Ignore Executable Capabilities
Accessing Data Appended to an Elf Binary
When and How Are System Calls Interrupted
Running Shell Script Using .Env File
When Should the Option Remainafterexit Needs to Be Set True When Creating New Systemd Services