Questions tagged [ld]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
106 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 ...
user avatar
  • 493
-1 votes
1 answer
2k 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 ...
user avatar
3 votes
2 answers
904 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 ...
user avatar
1 vote
1 answer
720 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 ...
user avatar
0 votes
0 answers
718 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 /...
user avatar
  • 901
0 votes
0 answers
263 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/...
user avatar
1 vote
1 answer
662 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, ...
user avatar
  • 1,704
0 votes
1 answer
255 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.
user avatar
  • 3
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'...
user avatar
0 votes
0 answers
201 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 ...
user avatar
1 vote
1 answer
2k 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, ...
user avatar
  • 11
0 votes
0 answers
4k 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 ...
user avatar
  • 11
0 votes
3 answers
525 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: ...
user avatar
0 votes
1 answer
5k 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 ...
user avatar
  • 103
0 votes
1 answer
191 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 ...
user avatar
2 votes
1 answer
15k 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'...
user avatar
  • 141
1 vote
1 answer
3k 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 (...
user avatar
1 vote
0 answers
645 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 ...
user avatar
  • 11.2k
0 votes
1 answer
2k 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. ...
user avatar
0 votes
1 answer
33 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 :...
user avatar
2 votes
0 answers
693 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 ...
user avatar
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 ...
user avatar
0 votes
2 answers
535 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 ...
user avatar
0 votes
0 answers
230 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-...
user avatar
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/...
user avatar
  • 121
4 votes
1 answer
7k 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 ...
user avatar
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 ...
user avatar
2 votes
1 answer
73 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 ...
user avatar
3 votes
0 answers
348 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 ...
user avatar
  • 2,693
0 votes
0 answers
119 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....
user avatar
  • 773
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: ...
user avatar
  • 985
0 votes
1 answer
185 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 ...
user avatar
1 vote
1 answer
665 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?
user avatar
  • 525
5 votes
0 answers
786 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 ...
user avatar
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 ...
user avatar
  • 11
0 votes
1 answer
215 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 ...
user avatar
2 votes
3 answers
10k 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 ...
user avatar
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 ...
user avatar
  • 85
13 votes
3 answers
60k 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. ...
user avatar
  • 338
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/<...
user avatar
  • 41
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 /...
user avatar
  • 85
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<...
user avatar
  • 2,507
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 ...
user avatar
1 vote
1 answer
155 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/...
user avatar
  • 11
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/...
user avatar
  • 101
0 votes
1 answer
948 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 ...
user avatar
  • 51
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 ...
user avatar
  • 2,704
12 votes
4 answers
28k 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: ...
user avatar
  • 361
0 votes
1 answer
775 views

g++ fails to link to libmysqlclient

I use Ubuntu 12.04 on a virtual machine on my MacbookPro. I installed build-essential, mysql-server and libmysqlclient-dev. Both commands 'mysql' and 'mysql_config' work. However, the following ...
user avatar
1 vote
0 answers
4k views

undefined reference to symbol dgemm cblas error

I am trying to compile a code package, which makes use of cblas and Lapack. Thus, after specifying the path of Lapack and cblas in its makefile, when I try to make or compile, I get the following ...
user avatar