Questions tagged [ld]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
28 views

Kernel make generates “ld: arch/x86/entry/syscall_64.o:(.rodata+0xdc0): undefined reference to `__x64_sys_s_enable'”

OS is Ubuntu 20.10 Kernel Source is linux_5.8.0-59.66 I am porting kernel modifications from Centos 7 Rhel 7.9 to Ubuntu. The original unmodified Ubuntu kernel source compiles and runs cleanly on this ...
1
vote
1answer
104 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
0answers
81 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
0answers
65 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
0answers
44 views

NASM printf link

How to link this program? Linux testPC 5.8.0-40-generic #45~20.04.1-Ubuntu SMP Fri Jan 15 11:35:04 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Code: global _start extern printf section ....
1
vote
0answers
162 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
1answer
57 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
0answers
1k 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
0answers
65 views

My linker path is messed up. Got ld exit status 1 when trying to build executables

Hei, I have been having problem lately on my Ubuntu 18.04 system when trying to build my executable. In my last try I tried to build an executable by executing the command below: make b-kernel-dynamic ...
0
votes
0answers
106 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 ...
0
votes
1answer
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, ...
0
votes
0answers
3k 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
0answers
1k views

Undefined reference to library function, library located in /usr/local/lib

I operate Ubuntu 18.04.2 and I am using some functions from libzip in my C program and somehow have problem with linking of libzip. My build result: gcc -L/usr/local/lib -lzip -o zurich_exRdev ...
0
votes
3answers
428 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
1answer
4k 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
1answer
179 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 ...
1
vote
1answer
10k 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
1answer
2k 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
0answers
528 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
1answer
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. ...
0
votes
1answer
32 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
0answers
585 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
2answers
962 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
1answer
417 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
0answers
191 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
1answer
2k 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/...
2
votes
1answer
6k 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
1answer
948 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
1answer
69 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
0answers
320 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
0answers
112 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
0answers
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
1answer
158 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
1answer
611 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
0answers
731 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
0answers
999 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
1answer
206 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
3answers
9k 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
2answers
5k 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 ...
11
votes
3answers
46k 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. ...
3
votes
0answers
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
1answer
988 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
0answers
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
1answer
8k 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
1answer
149 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
2answers
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
1answer
947 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
1answer
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 ...
12
votes
4answers
25k 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
1answer
755 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 ...