Tagged Questions
In computing, a dynamic linking is the process of an operating system (OS) that loads (copies from persistent storage to RAM) and links (fills jump tables and relocates pointers) the shared libraries needed by an executable at run time, that is, when it is executed.
0
votes
0answers
20 views
Error in installation of older version of openssl
I am trying to compile openssl 0.9.6 (I know very old version) from source on ubuntu 16.04 LTS. I did following
./configure shared --openssldir=/home/segnate/dev/openssl
make
make ...
0
votes
0answers
65 views
+100
unresolved symbols on a linux-uclibc system
I'm trying to run an openjdk-8 on a linux-uclibc ARM embedded system.
The target system uses a kernel-4.5.7 / uclib-ng-1.0.16, but I had to build the jdk using a toolchain (openembedded) built upon a ...
0
votes
0answers
28 views
Seperating GLX from X11 [closed]
So I'm trying to create separate dynamic modules for each of the major parts of my code. I've previously managed to implement GLX and X11 in the same class (by effectively butchering it). I was ...
1
vote
1answer
45 views
Cannot chroot bash after setting RUNPATH in ld-linux-x86-64.so.2 with patchelf 0.6 and 0.8
I am testing how dynamic linking works with RUNPATH variable, and trying to run bash in a minimal chroot directory:
$ find dir_chroot/ -type f
dir_chroot/bin/bash
dir_chroot/lib/x86_64-linux-gnu/libc....
2
votes
0answers
33 views
Why ldd doesn't show filename paths for dependencies?
I'm experimenting with ELF RUNPATH variable for dynamic dependencies. Along the way I got a copy of bash binary with changed RUNPATH, running ldd on it returns:
$ ldd ./bash
linux-vdso.so.1 =>...
2
votes
1answer
142 views
Error while loading shared libraries: internal error
I cross-compiled OpenCV for arm following this guide, and built this sample program.
When I first ran it like this:
./DisplayImage image.png
I got:
./DisplayImage: error while loading shared ...
2
votes
0answers
33 views
How to trace at runtime the symbols of loaded shared library?
I want to be able to know what are the symbols that are used from a certain shared library at runtime.
I use gdb and I set the solib-search-path to the user defined shared library. I am not sure if ...
3
votes
4answers
42 views
Command to list the directories in which to look for shared libraries?
I've read which equivalent for shared libraries and Where do executables look for shared objects at runtime, but is there a command to list all the directories in which the shared libraries will be ...
2
votes
0answers
33 views
Per-user DNS settings for VPN
My system's set to send only a particular user's traffic through a vpn (via iptables and --uid-owner). It works fine, but that user's DNS leaks onto the open net.
Any way to send only one user's DNS ...
2
votes
1answer
51 views
.elf format internal inspection
I was reading ELF format specification, where was told all this stuff with elf-headers, program header, sections, segments and etc.
All this is referenced as structs with all kind of fields and values....
0
votes
1answer
283 views
How to change the path of shared libraries shown by ldd?
I am trying to make the postgis extension work on my system and it always spits out "$libdir/postgis2.2" no such file or directory error. For my curiosity I executed "ldd postgis-2.2.so" and it spits ...
1
vote
1answer
88 views
How to make $ORIGIN in RPATH not follow symlinks?
I have an executable app, which depends on a library libbar.so and loads it via RPATH with $ORIGIN like this:
$ readelf -d app
Dynamic section at offset 0xe08 contains 26 entries:
Tag Type ...
0
votes
1answer
52 views
Linking shared library in linux kernel
I'd like to modify the security module (Specifically security/IMA) of the linux kernel.(This module has to be compiled into the kernel)
I have to use functions from a shared library (an .so file) in ...
7
votes
2answers
297 views
Is there a mechanism that protects applications during library upgrade?
If user works on an application that is dynamically linked, and system is being upgraded, is there any protection mechanism that prevents application corruption?
Or is it up to application?
1
vote
1answer
47 views
Do .so files get loaded as a whole into memory?
When a program causes a .so file to be loaded into memory, does is get loaded as a whole, or or does it only load the necessary "chunks"?
1
vote
1answer
89 views
Program linked against two versions of the same library?
I have two systems, both running Debian Jessie 8.4, and both have open-vm-tools installed. Files are identical on both sides. However, on one side the vmtoolsd links to an old libicu, althougth the ...
-1
votes
1answer
202 views
Where do C# executables running on an Ubuntu Linux 16.04 desktop which use source code that DLLImport's shared objects look for them at runtime? [closed]
Where do C# executables running on an Ubuntu Linux 16.04 Lenovo Thinkstation desktop which use source code that DLLImport's shared objects (so's) look for shared objects at runtime? Even if the shared ...
5
votes
1answer
820 views
Find out if library is in path
Assuming I want to test if a library is installed and usable by a program. I can use ldconfig -p | grep mylib to find out if it's installed on the system. but what if the library is only known via ...
2
votes
1answer
112 views
What would suddenly cause programs to read /etc/ld.so.preload when they start up?
Apparmor enforcement messages have begun appearing in the syslog of a Trisquel 7 machine. The affected programs requested open of the file /etc/ld.so.preload, in read mode and were denied by apparmor ...
0
votes
0answers
125 views
Non-Root Container
I'm attempting to create some kind of gentoo "subsystem" without root permissions. I've encountered a problem with my approach and I'm wondering if it's possible to do or not. The way I'm attempting ...
-1
votes
0answers
127 views
Ubuntu does not find shared object file; sudo ldconfig -v did not help
I'm on a 32 bit Xubuntu 15.04 installation on which I have to work with a legacy application, which I only have in binary form. That binary requires libstdc++-libc6.2-2.so.3, which I managed to find ...
1
vote
0answers
18 views
Running apache on offline system
I want to install apache using yum on CentOS 7 and check its shared libraries with ldd and pack the binary and files in apache's rpm and those libraries with full paths and transfer them to offline ...
0
votes
1answer
255 views
no video using webex with fedora 22 and firefox
I can connect into a webex presentation on my Fedora 22 x64 workstation with Firefox x64 but I can't see any video. I am using Firefox version 43.0.3 with the icedtea-web plugin version 4.6.2. I have ...
1
vote
1answer
401 views
patch: “bad file descriptor” in combination with pipe and LD_PRELOAD/ libtrash
Very short summary:
cat "$file" | patch produces a Bad file descriptor-error, but
patch < "$file" works, when libtrash is preloaded with LD_PRELOAD, and only on bigger projects.
Description:
For ...
2
votes
1answer
920 views
Symbol lookup errors in (Qt?) dynamically linked libraries
I'm using Ubuntu 15.10
Problem:
For some days now I have been getting Errors like this when opening some applications:
/usr/lib/x86_64-linux-gnu/libpoppler-qt5.so.1: undefined symbol: ...
1
vote
1answer
93 views
Environment variable to blacklist a shared library?
I've had a problem with Mono disrespecting my fglrx libGL library and loading the Mesa library instead. So far I've been fixing it by deleting or moving the Mesa library (/usr/lib64/libGL.so.1.2.0) ...
1
vote
1answer
57 views
why does setgid permission on an SO cause failures?
When I load a particular version of Python on a server, I get the following error:
python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or ...
4
votes
1answer
54 views
Is there a way of setting the library search path temporarily
We deploy our application with all the necessary dependencies in one directory. Our application sets LD_LIBRARY_PATH to this location. Some of the libraries (for instance OpenSSL) are also present at ...
2
votes
1answer
187 views
How to determine where an executable searches for a shared library?
I know I have the library, but the executable can't find it. If I knew where it was searching, I could just create a symlink where it expects to find the lib.
$ ~/Apps/simutrans/simutrans
/home/dan/...
0
votes
1answer
32 views
In theory, can a .so file created in one RHEL version be used in any other RHEL version?
I have done the compilation of a source package and installed in a custom path, binaries and some shared objects libraries were created and the tool is working.
Can the same installation be used in ...
2
votes
1answer
1k views
ldd returns “not a dynamic executable” for a 64-bit ELF, even though objdump and readelf disagree
(This question is an indirect continuation of my previous question which has been solved.)
Small summary of what I'm trying to do
I've got a .so file named pin_sim.so for the architectural simulator ...
3
votes
1answer
244 views
Error while building snipersim: “relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC”
I know that snipersim isn't a very typical "project" but this is more a linux/linking problem than anything else, so I think it goes here. I have also contacted the developers, but have yet to receive ...
1
vote
1answer
2k views
Compiling FFMPEG from source: cannot find shared library
I'm compiling FFMPEG from source using the guide for Ubuntu which I've used before with success.
I'm compiling on a Vagrant virtual machine in VirtualBox on Ubuntu server 14.04. You can clone the ...
0
votes
1answer
28 views
How can I check whether my cross-compilation of a dynamic library has been done correctly?
I used my arm toolchain to compile the glibc library, I have already deployed this on the target device (linux) with no issues.
How can I be sure that my compilation and deployment is done correctly ...
2
votes
1answer
72 views
How process know address of shared library?
As far my understanding, when I compile my C source code GCC/LD does the address binding at compile time. Typically this address starts at zero. When I call a function from shared library how the ...
5
votes
1answer
212 views
Fedora 21 texstudio fails with symbol lookup error
I just installed Fedora 21 on a laptop, and among other things I installed Texstudio. While the install seems to work fine in general, I get absolutely no reaction from this single program. I have ...
0
votes
0answers
82 views
custom runtime environment - libpthread segmentation fault
I have built a project using gcc 4.9.2 (libstdc++.so.6.0.20). When I want to run that program on the virtual machine which is equipped with gcc 4.6.3 (libstdc++.so.6.0.16) I have to deliver libstd++/...
0
votes
0answers
222 views
Can I have two different files with the same file path (that is, two versions of a file) dlopen'd at the same time?
I'm making a program that uses a .so library (also being developed by me). I want to be able to update and re-deploy the .so as I develop it, without restarting the program that uses it. I've ...
1
vote
1answer
1k views
LD_LIBRARY_PATH ignored by Python 2.7
I'm trying to install Theano on a box for which I have no root access and it looks like that LD_LIBRARY_PATH is ignored by my installation of Python 2.7. Since I can't install packages at the system ...
3
votes
1answer
199 views
Shared library on NFS mount not found from one host, works fine from another
I am experiencing some very weird behaviour regarding the loading of a shared library from an NFS4 mount, and am hoping someone can shed light on it.
Consider the following:
$ ucto
ucto: error ...
2
votes
2answers
185 views
how an expression which contains LD_DEBUG is processed?
An example usage of LD_DEBUG looks like this:
LD_DEBUG=libs applicationName
LD_DEBUG=libs is just an assignment - so how it works (prints result) in bash ?
1
vote
1answer
247 views
dynamic linker/loader libs - missing ld.so
Following manual describes dynamic linker/loader libs:
The program ld.so handles a.out binaries, a format used long ago; ld-linux.so* handles ELF (/lib/ld-linux.so.1 for libc5, /lib/ld-linux.so.2 ...
1
vote
2answers
80 views
Specifying local libc does call global libc?
If I run the command foo specifying a a different libc to use as follows:
LD_LIBRARY_PATH=$PATH_TO_MY_CUSTOM_LIBC foo
Is the globally defined libc used to run any of the command given above?
For ...
4
votes
1answer
391 views
LD_LIBRARY_PATH environment variable
I am trying to test the LD_LIBRARY_PATH environment variable. I have a program test.c as follows:
int main()
{
func("hello world");
}
I have two files func1.c and func2.c:
// func1.c
#include &...
15
votes
4answers
3k views
What system call is used to load libraries in Linux?
In strace outputs, the paths to the libraries that executables call are in calls to open(). Is this the system call used by executables that are dynamically linked? What about dlopen()? open() isn't a ...
2
votes
1answer
636 views
ldd shows library exists and is linked, program doesn't find it
Console Output:
bitnami@linux:~$ sudo svnmucc propset svn:needs-lock 1 file:///opt/bitnami/repositories/Standard/Ipc/trunk -m "test set"
svnmucc: error while loading shared libraries: libsvn_client-1....
2
votes
1answer
287 views
library file is found by ldconfig but not by ldd
I have built OpenGL acceleration libraries (libGL and libGLU) which I keep in a specific directory, /usr/lib/mali. I also have a software implementation of OpenGL which is installed in /usr/lib/arm-...
1
vote
1answer
132 views
Shared libraries for GCC installed via yum on Fedora 20
Unintentionally I erased my system gcc with a manually built one. To get things back, I did yum reinstall gcc and gcc --version attested that the initial version was back:
$ which gcc
/usr/bin/gcc
$ ...
4
votes
0answers
320 views
Debian: How to resolve relocation error?
I am running Debian 7.1. I tried to apt-get install -f, and messed up. All command line returns
ln: relocation error: /lib/arm-linux-gnueabihf/libc.so.6: symbol _dl_find_dso_for_object, version ...
6
votes
2answers
2k views
Why can't I install multiple versions of a shared library?
There are often instances where a certain program will depend on library version x.y and another on x.z but, as far as I'm aware, no package manager will allow me to install both x.y and x.z. ...