Questions tagged [ld]
The ld tag has no usage guidance.
61
questions
0
votes
0
answers
32
views
Make gives error when it ties to build ```rog-control-center``` [duplicate]
I'm running Ubuntu 22.04 LTS. Here are the specs:
I'm trying to install asusctl. I downloaded the files from GitLab and planned to compile and install them using make and make install, but it crashes ...
2
votes
0
answers
201
views
Is there any way to ensure that few symbols of static library get definitely loaded into .so file?
We have a huge amount of cpp files and taking a piece of code where we need some clarification regarding that. As we have cpp files we compile those into multiple static libraries and those result ...
2
votes
4
answers
12k
views
"cannot find -lmpi*" when compiling openmpi code
I had try to install openmpi 1.8.1 from the source code at Ubuntu 14.04 server. I would like to use mpi for large scale calculation on single machine with multi cores.
The simple "Hello world" test ...
0
votes
0
answers
2k
views
object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded when running chromium
Problem description
When I run chromium in a bash shell, I get this message: ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ...
3
votes
2
answers
6k
views
U-boot build fails - cannot find lgcc / libgcc.a
I am using Ubuntu 12.04 LTS 64 bit and trying to create a Linux Image for the SAMA5D36-EK. In doing so I need the mkimage command. According to this website
the mkimage source comes with the U-boot ...
2
votes
1
answer
160
views
Problem with linking with lapack
I have a problem with lapack on my new ubuntu machine (edit: Ubuntu 20.04.5 LTS). I installed liblapack-dev and libblas-dev using apt-get. I used a following code which works normally on different ...
4
votes
2
answers
2k
views
curl dynamic linking problem in 21.10
I recently got a Dell Precision 3450 with ubuntu 20.04, and upgraded to ubuntu 21.10 in two steps (20.04 -> 21.04 -> 21.10). This required upgrading the file /usr/lib/os-release by hand, as ...
0
votes
0
answers
706
views
Is Ubuntu's libsdl2-dev package missing dependencies or have I made a mistake?
I am trying to compile the transport simulation Simutrans-Extended. I have built it many times on Focal Fossa.
Today I tried to build it on Kubuntu Jammy Jellyfish. The build failed with the following ...
1
vote
1
answer
2k
views
Where do I define LD_LIBRARY_PATH so that Apache can see it?
I'm using Ubuntu 18.04. I have defined this in my /etc/profile file
export LD_LIBRARY_PATH=/usr/local/lib/
I'm trying to figure out where I define the above so that Apache can see it. Currently, ...
19
votes
4
answers
37k
views
Cannot find -lgfortran
I'm trying to install a package in R (package "ks"). It fails with error message:
/usr/bin/ld: cannot find -lgfortran
I've already installed the Ubuntu package build-essential:
sudo apt-get install ...
-1
votes
1
answer
9k
views
Another no such file or directory? But the file exists!
i am facing a problem that consumed a lot of my tine. i am trying to link my object file (small program compiled with nasm) with ld linker and using c functions. I searched a lot and i found that the ...
4
votes
0
answers
2k
views
How does ldconfig work?
I am playing with Ubuntu libraries. I am trying to add some libraries to /usr/lib/<subdir>/ and to create some proxies for the libraries in /usr/lib/<subdir>/.
Note that /usr/lib/<...
0
votes
2
answers
769
views
How does this program statically link to a .so in a non-default path
A program I am using can only be installed with a custom installer (IDA Freeware Demo). I have installed it in my home dir, it all works fine.
Now I noticed when checking the program with ldd: it ...
1
vote
1
answer
2k
views
cannot find -lpcre2-8
i am trying to install rjava in Rstudio following libraries show error -lpcre2-8, -lbz2, -lz
Any solution to solve these? Not getting any luck on other sites and there solutions provided by various ...
0
votes
0
answers
471
views
Problem when linking code - how to find reference?
I have a problem building some applications from source (here it is freecad). Kubuntu 20.04
When linking there are error messages (the missing reference does vary)
/usr/bin/ld: /lib/x86_64-linux-gnu/...
0
votes
0
answers
2k
views
ERROR: ld.so: object '/usr/lib64/libthread.so.1' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored
I have multiple Ubuntu & Debian servers & today all of them started outputting the following message when running commands on the shell:
ERROR: ld.so: object '/usr/lib64/libthread.so.1' from /...
0
votes
1
answer
474
views
moved ld.so file and can not copy it back
I have moved /lib/i386-linux-gnu/ld-2.24.so file to /home/ubuntu/ld-2.24.so and can not move it back. How to move or copy it back to /lib/i386-linux-gnu/ld-2.24.so. Thanks.
0
votes
0
answers
2k
views
/usr/bin/ld: i386 architecture of input file `xxx' is incompatible with i386:x86-64 output collect2: error: ld returned 1 exit status
trying to compile a cmake build for target linux machine(i686) from native linux(x86_64). observed this error:
/usr/bin/ld: i386 architecture of input file `CMakeFiles/cmTC_5398f.dir/testCCompiler.c.o'...
0
votes
0
answers
307
views
Accidentally replaced /usr/bin/ld with other binary file, installing through binutils just reverts back to what I replaced it with
I accidentally replaced /usr/bin/ld with the lua executable. So when I run ld, it triggers the lua interpreter. When I sudo remove ld and reinstall through:
$ sudo apt-get install --reinstall ...
12
votes
4
answers
31k
views
proxychains LD_PRELOAD cannot be preloaded
Using proxychains to do apt-get update in ubuntu 12.04.2
sudo proxychains apt-get update
gives following error
ERROR: ld.so: object 'libproxychains.so.3' from LD_PRELOAD cannot be preloaded: ...
0
votes
2
answers
3k
views
Linker cannot find libcv
The package I am building on Precise instructs me to install OpenCV using synaptic to get libcv-dev libcvaux-dev and libhighgui-dev. So I opened up synaptic and checked the boxes and downloaded these ...
1
vote
1
answer
3k
views
ldd can't find one library, but links to the other ones in same directory
I'm trying to deploy my application. I created a deb package. If I install it on the same machine that I built it, everything works. When I try to use a deb package generated by my CI setup on gitlab, ...
0
votes
0
answers
5k
views
ldconfig.real cannot stat an existing directory
I am trying do deploy a application. I created a *.deb package (using fpm) which installs libraries to $HOME/.local/lib/nca and binaries to $HOME/.local/bin.
To make my libraries visible I also ...
0
votes
3
answers
629
views
Cannot run Update-Manager 1:18.04.11.10 + Segmentation fault
I updated some packages + to kernel 4.15.0-52-generic in Ubuntu-Mate.
After that I can't open the "Update-Manager + software-properties-gtk" anymore.
Terminal Output:
Segmentation fault
Kern.log:
...
0
votes
1
answer
205
views
Messing around with Unity on Ubuntu 19.04, resulted a messed GNOME
I was attempting to install Unity on my Ubuntu 19.04 using sudo apt install ubuntu-unity-desktop, but the desktop didn't work as intended, so I decided to undo and redo it. On my way rolling back ...
0
votes
1
answer
6k
views
Installing Openssl 1.0.2 on Ubuntu 19.04
I have the source of an application written in Qt/C++ which I can try to build on Linux.
The system is Ubuntu 19.04.
The application requires some older versions of package, e.g. openssl-1.0.2.
I ...
2
votes
1
answer
25k
views
ld cannot find shared library
Note: I visited many topics with questions similar to this one, although solutions chosen as accepted were all things I've already tried, so please, consider this before marking as duplicate.
Also, I'...
1
vote
1
answer
5k
views
Linker not finding libsystemd
I'm trying to write a systemd service that uses the watchdog, and after
sudo apt install libsystemd-dev
I checked to make sure it was available:
$ ldconfig -p |grep systemd
libsystemd.so.0 (...
1
vote
0
answers
1k
views
In Ubuntu, how is my environment variable `LD_LIBRARY_PATH` empty, even though `ldd mybinary` clearly finds paths?
I am trying to build my own local application. Because snapcraft lacks qbs support, I am trying to develop my own passive support for qbs.
Anyway, just stepping through this, in QtCreator, qbs ...
0
votes
1
answer
3k
views
ld does not find math library -lm
/lib/x86_64-linux-gnu/libm.so.6 is present, -lm is present on the command line, but ld gives undefined references for all math symbols.
Similar situation with ncurses.
Thanks in advance.
...
1
vote
1
answer
38
views
Error while building FleaFPGA-JTAG-Linux
I've been trying to compile FleaFPGA-JTAG-Linux for a while now but I keep getting the linker errors:
cannot find -lftdti1
cannot find -lusb-1.0
When I run pkg-config --libs --cflags libftdi1 I get :...
2
votes
0
answers
855
views
Why do GCC's linker-options (as per dumpspec) contain as-needed?
Within the specs of gcc (retrieved via -dumpspecs) in Ubuntu 18.04 (7.3.0-16ubuntu3) the link-section shows the explicit mention of the option as-needed (passed to ld). This influences linked ...
1
vote
2
answers
1k
views
Compilation errors in Ubuntu 18.04 LTS for a QT-based project
When running make, the following errors appear in terminal:
//usr/local/lib/liblua.a(loadlib.o) : In function « lookforfunc » :
loadlib.c:(.text+0x576): warning : Using 'dlopen' in statically linked ...
0
votes
2
answers
1k
views
ld error while linking to SDL2
i'm struggling in the attept to compile c++ with SDL2.
I've done as always:
checkout the code (both from mercurial and libsdl.org)
./configure, make, sudo make install
But it keeps to say:
/usr/bin/...
0
votes
0
answers
272
views
How can I get core dump info which is happened while compiling
I encountered a core dump when compiling a linux project.
the outpu/log is belows:
collect2: error: ld terminated with signal 6 [Aborted], core dumped
* Error in `/opt/toolchain/arm-2014.11//arm-linux-...
2
votes
1
answer
3k
views
How to fix Linker's broken paths?
I am trying to build a repo on my Ubuntu 16.04 from a source and everything goes fine until it reaches the files linked to OpenCV.
I get the following error:
/usr/bin/ld: cannot find -lIlmImf
/usr/...
4
votes
1
answer
8k
views
libhdf5 installation problem
I've installed libhdf5-dev with apt-get but gcc cannot find it:
~$ locate libhdf5.so
/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so
~$ gcc -lhdf5
/usr/bin/ld: cannot find -lhdf5
collect2: error: ld ...
5
votes
1
answer
10k
views
collect2: error: ld returned 1 exit status
I want to install nexalign (can be downloaded from here) on ubuntu 13.10. I previously installed it on ubuntu 10 without any problem. The error I got is:
gcc -O9 -Wall -Dthread -lpthread main.o ...
1
vote
1
answer
1k
views
error: Unable to initialize the encoder: Transport library initialization error
I'm trying to run an audio encoder using ffmpeg command but when I try to encode in aac_ld codec or aac_eld codec, it gives me an error stating that...
[libfdk_aac @ 0x1e20770] Unable to initialize ...
2
votes
1
answer
79
views
Telling the kernel to prioritize swapping of a certain application?
Admittedly, this is a bit of a weird question....
TL;DR: I'm trying to work on a program, but whenever I link it, it uses ridiculous amounts of RAM. As a result, pretty much everything but the linker ...
2
votes
2
answers
12k
views
ld cannot find math library
I just installed Ubuntu 12.04 LTS and am having trouble linking to the math functions (from ). I have gcc installed and able to compile the source fine. However, trying:
gcc -lm montecarlo_time.o ...
3
votes
0
answers
424
views
How to add an existing library to Ubuntu snap core?
I'm a total newbie to snap. Apologies if this question is trivial.
I'm experiencing unintended side effects when trying to use snap on a slightly customized Ubuntu system.
My slight customization ...
0
votes
0
answers
128
views
Skype mysteriously reverts to trying the 64-bit libGL.so.1 (and failing)
After my last apt-get dist upgrade (which installed a new version of the kernel, but not much beyond that), my Skype (which used to work) now says:
skype: error while loading shared libraries: libGL....
1
vote
0
answers
1k
views
Firefox crashes with error "Inconsistency detected by ld.so"
I am using Ubuntu 16.04 LTS with gnome. From yetserday onwards firefox crashes with the following error:
Inconsistency detected by ld.so: ../sysdeps/x86_64/dl-machine.h: 517: ...
0
votes
1
answer
955
views
Please help building ladosc on 64bit raring
This is a question for the code savy, which I'm not...
I'm trying to build a set of oldish ladspa plug-ins called ladosc (you can find them on google-code) but there are errors I can't find a ...
1
vote
1
answer
1k
views
Linking CXX executable RemoteZynAddSubFx
I'm trying to build the latest version of LMMS v1.0.0 and I'm running into this error
Linking CXX executable RemoteZynAddSubFx
/usr/bin/ld: cannot find -lXft
/usr/bin/ld: cannot find -lfontconfig
/...
14
votes
3
answers
76k
views
undefined reference to symbol 'exp@@GLIBC_2.2.5'
Similar question has been asked here but is unanswered.
I have an implementation of Levenberg-Marquardt (downloaded from somewhere) and I'm trying to compile it but getting the following error.
...
0
votes
1
answer
234
views
QtWidget couldnt be configured for installation after running configure.py of PyQt5.5.1 source
I am triyng to install PyQt5 on xubuntu 14.04 but after the procedure completes successfully there is no QWidgets.so file in directory "/usr/lib/python3/dist-packages/PyQt5/" as well as other Qt*.so ...
3
votes
1
answer
14k
views
How to reset LD_PRELOAD
I've done the following command to set the path for LD_PRELOAD. But it's the wrong path.
export LD_PRELOAD=/home/
Does anyone know what is the default path for LD_PRELOAD on Ubuntu 12.04? What is ...
1
vote
1
answer
716
views
/usr/bin/ld: cannot find -lCint ubuntu 14.04
I tried googling what this library belongs to but couldn't find anything.
Any ideas?