Questions tagged [dynamic-linking]

The tag has no usage guidance.

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

soname confusion

I read in many places about the 'real' library name and the symbolic link name. But I want to understand how exactly the linker is searching? Sometimes i see three different patterns of setting up the ...
GGinside's user avatar
1 vote
0 answers
197 views

Stange missing libraries when linking

When developing with Qt or plain C++, my linker yields "Cannot find: -lGL" I have checked the existence of the libraries and their use by ld with ldconfig -p |grep libGL: libGLdispatch.so.0 ...
Yvain's user avatar
  • 544
0 votes
1 answer
432 views

Linking error building OpenCV Contrib 4.5.4 with LibTiff4

Scenario I am having some trouble building the latest version of OpenCV's contrib codebase from source, but the issue might just underlie a more generic lack of depth on my part: Fetching the 4.5.4 ...
matanox's user avatar
  • 2,343
3 votes
1 answer
4k views

Where can I find /lib/ld-lsb.so.3 for Ubuntu 21.04?

I need to get a 32 bit ELF interpreter for an old binary. file ./actlmgrd ./actlmgrd: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-lsb.so.3, for ...
pserra's user avatar
  • 161
1 vote
1 answer
1k views

error while loading shared libraries: libsfml-system.so.2.4

I downloaded a game from this link space-logic-adventure I found this error message when I tried to run it: pascal@pascal-Lenovo-ideapad-330-15AST:~/Computer/Games/Linux/space-logic-adventure-v1.2-...
pascal111's user avatar
2 votes
0 answers
15 views

How do libatlas3, liblapacke, and libopenblas0 interact in Focal? [duplicate]

I'm trying to figure out the interaction between the following library packages: libatlas3-base liblapacke OpenBLAS libopenblas0-openmp libopenblas0-pthread libopenblas0-serial It looks like the ...
KJ7LNW's user avatar
  • 211
3 votes
1 answer
615 views

How to correctly deal with lib-symlinks in modern Ubuntu versions?

Let's assume that I have some problems with dynamic linking. I may have some locally built (or manually copied) library which overrides library from APT. The library is not placed to /usr/local/lib, ...
N0rbert's user avatar
  • 99.7k
0 votes
0 answers
897 views

Is a shared library dynamically or statically linked?

I have a trivial static library prepared from two object files ld -shared -o libfoobar.so foo.o bar.o When I check the type of the library file with the file utility, it reports that the library is ...
DYZ's user avatar
  • 133
1 vote
0 answers
633 views

Compile/build our own libffmpeg.so supporting H264

How to create/compile our own libffmpeg.so supporting H264 (or H265 too) codec, just as instruction on https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu is for standalone executable build, no ...
user17227456's user avatar
0 votes
0 answers
3k views

TensorRT and CuDNN for Ubuntu 20.04

How can I install these libraries/packages in Ubuntu 20.04? 2020-07-21 19:52:02.656660: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer.so.6';...
Mona Jalal's user avatar
  • 4,535
2 votes
0 answers
19 views

How can I set the speed for every person who visits my site and download from it?

I installed ubuntu18 server and uploaded my own site ... How can I set the speed for every person who visits my site and download from it ???
mohmed aljna's user avatar
26 votes
3 answers
8k views

Relocation error involving libgnutls.so.30, error code (127) after last updates [closed]

After the last update this happened: /usr/lib/apt/methods/http: relocation error: /usr/lib/x86_64-linux-gnu/libgnutls.so.30: symbol _idn2_punycode_decode version IDN2_0.0.0 not defined in file ...
alebal's user avatar
  • 463
0 votes
0 answers
497 views

Binary cannot find shared object that's present on my machine

Riddle me this: $ obs obs: error while loading shared libraries: libdouble-conversion.so.1: cannot open shared object file: No such file or directory $ sudo apt install libdouble-conversion1 Reading ...
Pieter's user avatar
  • 213
0 votes
1 answer
2k views

List of Ubuntu 18.04 Multimedia System Libraries

I'm compiling SDL2 into a static library. I wish to dynamically link to system libraries that are present on Ubuntu 18.04. As I understand it, the following libraries are system libraries, i.e. they ...
Edward Chamberlain's user avatar
1 vote
0 answers
996 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 ...
Anon's user avatar
  • 12.1k
15 votes
1 answer
7k views

Why is there a .steampath in my home directory?

In the terminal, I see a broken link which is named .steampath, I didn't remove /home/user/.steam/sdk32/steam, but it is gone. Why is the .steampath there? Should I remove it?
JulianLai's user avatar
  • 1,572
0 votes
0 answers
605 views

How multiple .so file added in ldconfig?

librcdev.so.1.6, librcdev.so.1 and librcdev.so files are linked with librcdev.so.1.6.0 . I updated ldconfig but after: ldconfig -p | grep librcdev All .so files are not showing. (all .so files are ...
Reza's user avatar
  • 1
2 votes
0 answers
632 views

Which MPI library are packages linked against? Open MPI?

Some packages in the Ubuntu repositories provide pre-compiled binaries of shared libraries (*.so). For example, the package fftw2 provides the FFTW library (version 2), including the MPI-related ...
Socob's user avatar
  • 839
0 votes
2 answers
757 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 ...
bernd feinman's user avatar
5 votes
0 answers
1k views

hidden symbol `pthread_atfork' in /usr/lib/x86_64-linux-gnu/libpthread_nonshared.a(pthread_atfork.oS) is referenced by DSO

I am trying to compile a large project, it includes a library: SAMG/ifort64.9.1.041-emt64/lib/libguide.so when I try to make project, there is an error message: hidden symbol `pthread_atfork' in /...
Alina Tyukhova's user avatar
1 vote
1 answer
2k views

Change the owner of a subdirectory on a mounted drive

I have my home folder linked to a folder on a mounted partition in have mounted it via fstab and the uid is the id of root the gid too. How do i change the owner of the subdirectorys on the mounted ...
Renji's user avatar
  • 129
1 vote
0 answers
1k views

Is the vdso shared library (linux-vdso.so) the library that contains the kernel object code (system calls)?

I noticed that all my programs compiled to gcc are linked to vdso library. Is this the library that contain the system calls to the kernel, like mmap() and fork() and other system calls? I know that ...
yoyo_fun's user avatar
  • 181
20 votes
2 answers
14k views

What are .dlls doing in Linux programs?

Games that were made with Unity3D for Linux contains .dll files in their data folder GameDataFolder/Managed. Which is weird because I thought that Linux uses .so files instead of .dll files. (The ...
xuwenbuwer's user avatar
0 votes
1 answer
4k views

libpng-dev is installed; program doesn't link

I want to compile farbfeld program suite. I run make. Error: cc -s -lpng -o png2ff png2ff.o util.o png2ff.o: In function `main': png2ff.c:(.text.startup+0x58): undefined reference to `...
Rusty Bludgeon's user avatar
2 votes
1 answer
78 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 ...
kirbyfan64sos's user avatar
0 votes
1 answer
2k views

Gcc does not link libraries [closed]

I'm trying to compile a program in the terminal using gcc. I'm kind of new to do this so I'm making some experiments with link various libraries. However some are working and some aren't and I wonder ...
Granger Obliviate's user avatar
1 vote
1 answer
624 views

Snappy Core 16 Dynamic DNS Update

I have a Raspberry Pi 3 running a webserver on Ubuntu Snappy Core 16, and I'm usind dynamic DNS to address to my IP. I use NO-IP for a free dynamic DNS and it requires an update every 30 days or it ...
Make465213's user avatar
2 votes
0 answers
308 views

Exposing header files in a snapcraft part

I'm trying to make a snap for a Qt application called Cockatrice. To compile, it requires the protobuf library. My snapcraft file is as follows: name: cockatrice version: '2016-10-30' summary: 'A ...
Migwell's user avatar
  • 161
0 votes
1 answer
731 views

undefined reference to espeak function

after typing make to compile a project that is depends on espeak i got the following error at linking stage `EspeakTTSWorker.cpp:(.text+0x118): undefined reference to `espeak_Initialize' ...
Hamdy Fouad's user avatar
1 vote
0 answers
793 views

squeak: could not find any display driver

I am building the vm for squeak on Ubuntu 14.04 32-bit. It is failing to call entry points to libraries, whether these libraries are statically linked or loaded or not loaded. I have been doing some ...
Robert's user avatar
  • 11
0 votes
2 answers
2k views

How to copy libraries a dynamically linked program is built against?

Recently, I've been into compiling software and distributing it. Last time I did it, I did so by building my program and running ldd on it to get all of the libraries it was linked against. I got the ...
John Scott's user avatar
  • 1,452
0 votes
1 answer
259 views

Build with clang for older ubuntu releases

So the problem started as I lately updated my Ubuntu Vivid (15.04). Now clang-3.5 depends on libstdc++-4.9 (instead of previous version of 4.8) and my compiled programs fail to run on Trusty (14.04): ...
Yan Foto's user avatar
  • 386
3 votes
1 answer
1k views

What are dynamic and static linking?

I hear the terms "Dynamically linked" and "Statically linked" tossed around in regards to packaging, and I have never been clear on what these terms actually mean. What are dynamic and static ...
Anon's user avatar
  • 12.1k
1 vote
0 answers
197 views

Dynamic Link Problem in Ubuntu 12.04

I have a program that I'm trying to run, but it gives me this error message: ./randomgrowth: error while loading shared libraries: libOpenMeshCore.so.3.3: cannot open shared object file: No such file ...
StumpedCoder's user avatar
1 vote
1 answer
2k views

Problem linking igraph: ImportError: libigraph.so.0

After following the instructions for installing the igraph library, I obtained the following error: ImportError: libigraph.so.0: cannot open shared object file: No such file or directory Is there a ...
Steve Koch's user avatar
0 votes
1 answer
232 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 ...
Brian Tiffin's user avatar
1 vote
3 answers
12k views

Libjpeg not found by my program even though it exists

I have a binary program to run on Ubuntu 12.04. It has shared object dependency. pmvs is the name of the program $ ldd pmvs linux-vdso.so.1 => (0x00007fff043c3000) libXext.so.6 =...
mkuse's user avatar
  • 81
7 votes
1 answer
6k views

Can't link libreadline on Ubuntu 14.04

this may be a very stupid error, but can't find any reference in the web. I try to compile this bare minimum readline example: #include <stdio.h> #include <malloc.h> #include <...
Eduardo Spremolla's user avatar
2 votes
0 answers
1k views

Why can I compile against libclang-3.5.so and not against libclang.so?

I am trying to compile a C source file, that needs to be linked against a dynamic library I installed through apt-get (libclang.so). apt-get installed the clang shared libraries in /usr/lib/x86_64-...
barjak's user avatar
  • 121
1 vote
0 answers
723 views

Linking with versioned shared libraries

I've been using Ubuntu for a couple of years now and a problem that I consistently come across is with linking against particular versions of shared object files. For example, I'm trying to install ...
Jake's user avatar
  • 425
1 vote
1 answer
1k views

Is the compiled version of a binary dynamically linked to the system SSL library?

In my case I build nginx from source and I want to confirm whether I need to rebuild it whenever a new OpenSSL update is released. From what I understand either of these two commands can be used to ...
deoren's user avatar
  • 373
13 votes
1 answer
68k views

Installing Oracle database 12c on Ubuntu 14.04

Is there anyone out there that got Oracle 12c working on Ubuntu 14.04? I tried following this tutorial (which is written for installing Oracle 12c on Ubuntu 12.04): But in linking faze I encountered ...
user2848463's user avatar
3 votes
2 answers
32k views

How do I deal with "undefined reference to dlopen" errors while compiling and using OpenFST on Ubuntu?

Trying to compile and use OpenFST on Ubuntu 13.10 leads to link errors like "undefined references to dlopen". How does one fix this? Searching online suggests including -ldl in the gcc command line, ...
Prateek's user avatar
  • 2,561
0 votes
2 answers
79 views

Windows and Ubuntu Linking

I am a PhD student doing Aeroelastic CFD simulations and I am working with one fluid open source code (Flower) running on Ubuntu and one commercial sturctural csoftware (SIMPACK) running on Windows ...
user241713's user avatar
40 votes
2 answers
95k views

Where does Ubuntu look for shared libraries?

When I run a process that links to a shared library at runtime (linked when the process starts, not linked later with dlload()), where does it look for that shared library (.so) file other than ...
Dave Lillethun's user avatar
0 votes
1 answer
3k views

ld: cannot find -ljson

I tried running sudo apt-get install libjson-glib-dev with no luck. Was not able to find anything useful by googling either. Anyone know what package I need to install to be able to link json?
Nash0's user avatar
  • 201
2 votes
1 answer
2k views

undefined reference to `GDALAllRegister' [closed]

I have problem with gdal. I am currently working on Ubuntu and the IDE is Eclipse CDT i have given my code below and i have also installed the gdal package but it gives build errors #include <...
Hema's user avatar
  • 21
7 votes
1 answer
24k views

How to add a directory to linker command line in linux

I am new to Linux and I want to add lib64/librt.so.1 to the linker command line. Can anyone suggest how to do this? Thanks in advance
Maryyam's user avatar
  • 71
1 vote
1 answer
2k views

msp430/bin/ld: cannot find -lc

I installed successfully msp430-gcc 4.7.0 compiler. The compiler at the final stage of the linking process it shows me the following error for Ubuntu 12.04. msp430-gcc -mmcu=msp430f1611 -Wl,-Map=...
Codee's user avatar
  • 11
5 votes
2 answers
10k views

Why doesn't LD_LIBRARY_PATH has any effect?

./a.out: error while loading shared libraries: libc++.so.1: cannot open shared object file: No such file or directory even though: $ echo $LD_LIBRARY_PATH /home/exe/libcxx/lib:/home/exe/llvm/lib:/...
nlognfan's user avatar