Questions tagged [ld]
The ld tag has no usage guidance.
60
questions
2
votes
0
answers
59
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 ...
0
votes
0
answers
1k
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): ...
2
votes
1
answer
116
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 ...
0
votes
0
answers
610
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
votes
1
answer
8k
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
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 ...
2
votes
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
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
0
answers
442
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/...
1
vote
1
answer
1k
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, ...
0
votes
1
answer
436
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
281
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 ...
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
606
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
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 ...
0
votes
1
answer
204
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 ...
2
votes
1
answer
22k
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
920
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.
...
0
votes
1
answer
36
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
828
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
717
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 ...
0
votes
0
answers
263
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 ...
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
77
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 ...
3
votes
0
answers
405
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
124
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
224
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 ...
1
vote
1
answer
712
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?
5
votes
0
answers
835
views
Installed Cuda toolkit 7.5, but libcudart.so.5.5 remains
After installing Cuda Toolkit 7.5 on Ubuntu 14.04 (via apt-get of .deb file, followed by update of nvidia driver to 352.63), nvcc --version, NVidia-smi, and cuda samples work as expected.
7.5 is ...
1
vote
0
answers
1k
views
ld can`t find libraries
Good afternoon,
Ubuntu 14.04.2 LTS 64bits
I'm an electronics engineering student, and I'm doing some research with a team in the voice recognition area. I`m trying to install a software called ...
0
votes
1
answer
229
views
GnuCOBOL not generating dynamic link library ELF references
Now GnuCOBOL, the Ubuntu package is open-cobol.
As of Ubuntu 14.04? the compiler fails to link in dynamic library references for dlopen to use at run-time. No trace of the library in ldd from gcc -l ...
2
votes
4
answers
11k
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 ...
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 ...
13
votes
3
answers
73k
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.
...
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/<...
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
/...
4
votes
0
answers
1k
views
Compiling and linking of a C program
I am learning about compiler linker and loader and was trying to understand the working of linker and loader on my ubuntu 12.04 machine
I wrote 2 simple ".c" files as follows
test.c
#include<...
5
votes
1
answer
9k
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
160
views
cannot find -lslink
While running make for a program installation on ubuntu 12.04 LTS, I was stuck with the following error:
Could anyone help explain the cause and solution please? I'm a rookie please...
Thanks
/usr/...
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
1
answer
953
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 ...
0
votes
1
answer
1k
views
QT4/5 Creator cannot find -lGL
I installed the ubuntu mobile SDK a while ago on my ubuntu 13.04 machine via http://developer.ubuntu.com/get-started/
After a few days there appeared a compiler/linker error - even when compiling the ...