The dynamic-linking tag has no wiki summary.
4
votes
1answer
55 views
Effect of static and dynamic linking on start address
I have a simple C program. I run:
$ gcc Q1.c -Wall -save-temps -o Q1
Then I inspect the executable generated:
$ objdump -f Q1
Q1: file format elf32-i386
architecture: i386, flags 0x00000112:
...
4
votes
2answers
66 views
How to upgrade shared library without crash?
Here it says that you can rewrite an executable file and the process will run just fine - it will be re-read when a process restarts.
However, when I try to replace a binary file while the process is ...
2
votes
1answer
41 views
Invoking a script with ld-linux.so?
I just downloaded a tar file that is supposed to include everything required to run a program that we can call some_binary. I extracted it's contents, and I see the following:
A binary (let's call ...
3
votes
1answer
105 views
Which parts of an ELF executable get loaded into memory, and where?
What I already know:
An ELF executable has a number of sections, obviously the .text and .data sections get loaded into memory as these are the main parts of the program. But for a program to work, ...
4
votes
3answers
9k views
Problem to launch java at Debian: “error while loading shared libraries: libjli.so”
I'm trying to launch java:
$ java -version
java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
$ ldd ...
0
votes
1answer
65 views
Are .so files in Fedora considered ELF files?
ELF 'Executable and Linkable Format' So if I generate Shared Object files .so are those considered ELF files?
7
votes
1answer
163 views
ELF shared libraries - motivation for the PLT
Could self-modifying code be used to speed up function calling in dynamically linked libraries?
As far as I understand it, ELF shared libraries use a kind of indirect jump table (the procedure ...
2
votes
1answer
89 views
Installing shared library - questions and problems
I'm having trouble "installing" a shared library I download online. The library name is run time access (http://www.runtimeaccess.com/). In the quick start guide, they explain how to use the library ...
6
votes
1answer
2k views
Installing two glibc alongside in debian/ubuntu
Is it possible to install and use two different glibc versions on the same machine. Where one version is only used to run legacy software, which relies on old glibc binaries?
Is it possible to do ...
1
vote
0answers
293 views
ntp cannot open shared object file: Permission denied
On a server I haven't worked on, ntpd is broken:
# /etc/init.d/ntpd start
ntpd: error while loading shared libraries:
libz.so.1: cannot open shared object file: Permission denied
but permissions ...
4
votes
1answer
357 views
Debugging a Segmentation Fault
I have an application that runs on an embedded Linux device that I am expanding with new features. The new features require GLib so, I am dynamically linking the required libraries to the application.
...
2
votes
2answers
373 views
Arch Linux and optional dependencies
I installed XChat on an Arch Linux system. Every time I run it, I get the following error message:
Python interface loaded
Perl interface loaded
AutoLoad failed for: /usr/lib/xchat/plugins/tcl.so
...
3
votes
1answer
126 views
Environment settings on setuid executables
I am observing a curious behavior when running a program with setuid bit enabled.
Program foo is owned by user bar with setuid bit set.
User execbar runs foo
foo reports that one of the dynamic ...
2
votes
1answer
427 views
Installing flash player for firefox
I would like to install flash player for Firefox on Linux.
I downloaded the .tar.gz, and there are some compiled shared libraries. I am not sure how to make them work, and I am looking for a hint.
...
1
vote
2answers
2k views
PulseAudio cannot open shared library
I'm running Debian wheezy (x86) with GNOME on a Intel Core i7 machine. I'm having problems getting PulseAudio to work properly. Since GNOME 3 automatically installs PulseAudio I'm pretty much stuck ...
2
votes
2answers
659 views
Does Solaris have an equivalent to /etc/ld.so.conf?
I compiled a package for Solaris 11 Express that has some library dependencies, which I also compiled from source and installed in the usual /usr/local. (And Solaris doesn't even have /usr/local ...
3
votes
2answers
1k views
File not found for file which is there [duplicate]
Possible Duplicate:
“No such file or directory” lies on Optware installed binaries
I am currently trying to get some piece of hardware to work on an embedded device. One part of ...
21
votes
3answers
6k views
How do SO (shared object) numbers work?
I'm aware that shared objects under Linux use "so numbers", namely that different versions of a shared object are given different extensions, for example:
example.so.1
example.so.2
I understand ...
4
votes
1answer
219 views
Can I use a chroot on my dev machine to build an application to run on embedded linux installation?
I am trying to develop an application to run on an embedded linux installation. It comes with an older version of libc than I have on my development maching. If I were to create a chroot environment ...
2
votes
2answers
235 views
Is it safe to just copy shared libraries onto embedded Linux device?
The following is contained in the vendor user manual for its embedded Linux distro on the hardward board they supply
Developers can put their program onto X-Linux device via FTP or NFS.
Before ...
4
votes
2answers
3k views
error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
anisha@linux-y3pi:~/> google-earth
./googleearth-bin: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
anisha@linux-y3pi:~/> locate ...
0
votes
1answer
91 views
Can two application share library loaded at runtime?
I have 2 application lets say A1 ,A2 shared one shared object(lets say lib1) which loaded in application at runtime. A1 load lib1 using dlopen successfully. Now A2 wants to load library. Can A2?(as ...
0
votes
3answers
150 views
Is there a faster alternative to pkg-config?
Our build system uses pkg-config to build the software, but the linking can take very long (sometimes up to 20 minutes). We identified pkg-config as the guilty tool.
So, is there a faster alternative ...
1
vote
1answer
179 views
Dynamic linker “no version information available”
When I copy over a program and a few libraries it needs to another machine I get the "no version information available" when I run LDD on the program.
I know why this is happening, I just want to ...
5
votes
4answers
601 views
Error while loading shared libraries
My project tree looks something like that:
src/
include/
Makefile
lib/
lib/3rdparylib/
I didn't code 3rdpartylib, but decided to embed its source code in my project packaging. I compile the ...
2
votes
2answers
1k views
Why does LD keep outputting “no version information available”
On every loading of a lib, I get the error:
no version information available
This lib has been compiled on another PC (ubuntu 10.04) than the one running it (mandriva 2010.2).
$ ldd ...
2
votes
2answers
9k views
Error Loading Shared Libraries when Installing Redhat Directory Server
While Installing the Red Hat Directory Server on the Red Hat Linux Server 5 (x86_64)i am getting the following error
bin/slapd/server/dsktune: error while loading shared libraries: libstdc++.so.5: ...
0
votes
1answer
203 views
Is it possible to preload glibc?
One of my client runs a glibc-2.7 based system , and my static linked program wasn't able to start on the target machine, raising an error:
...
4
votes
2answers
443 views
libssl and libcrypto backward compatible?
I have an old server application that requires libssl.so.0.9.6 and libcrypto.so.0.9.6.
My issue is I currently have libssl.so.1.0.0a and libcrypto.so.1.0.0a on my system. I tried symlinking to the ...
1
vote
0answers
163 views
What are dyld_shared_cache_xxx files and how do I extract object files from them?
I have a dyld_shared_cache_armv7 file and I'm assuming that they hold various object files for a specific architecture. How do I extract the object files from it?
1
vote
0answers
141 views
Dependencies between shared libraries in the same Debian packages
Suppose I want to create a package with multiple shared libraries - call it libfoo, which contains liba.so.1 and libb.so.1. Now, say liba.so.1 uses a symbol from libb.so.1. If I compile like this, ...
2
votes
3answers
1k views
Where do executables look for shared objects at runtime
The title is pretty explicit.
I understand how to define include shared objects at linking/compile time. However I still wonder how do executables look for the shared object (*.so libraries) at ...
3
votes
3answers
167 views
“which” equivalent for shared libraries
I am looking for a utility that would behave in the same way as which, but to look up shared libraries (*.so) in the directories defined in $LD_LIBRARY_PATH?
2
votes
2answers
665 views
Postfix cannot find a MySQL shared library
I am trying to install Postfix with MySQL support. When I start or run the postfix daemon, it complains that it "cannot find libmysqlclient.so.18", which is in the directory /usr/local/mysql/lib, ...
2
votes
1answer
627 views
Using debuild to build shared libraries .deb
I'm trying to package a shared library using debuild to build the .deb file.
In runnign dh_make the library option was selected.
Have been following this guide Having managed to build the library, i'm ...
2
votes
1answer
277 views
How does prelink work
I was wondering how prelinking works.
If I prelink my whole system and than delete glibc, will the system 'get up' after restart?
2
votes
2answers
2k views
How does rpm resolve library dependencies?
I try to make a package of a program which is linked to such library (output from ldd):
libwx_baseu-2.8.so.0 =>
/usr/lib64/wx-2.8-wxcontainer/libwx_baseu-2.8.so.0
Pretty straightforward, ...
1
vote
2answers
377 views
Is there any useful metadata inside shared objects, and if so, how do I extract it?
I have a file called mod_dav_svn.so. I would like to find out if this is a custom version of the file or a standard one.
I have tried searching Google for the md5sum of the file, but nothing has ...
2
votes
1answer
356 views
Cannot open shared object file when using D compiler
I had ldc2 and gdc compiled from source and working up until a month ago. Nothing has changed, except I can't remember the variable(s) I would set in the terminal to get ldc2 and gdc to work.
I get ...
6
votes
1answer
1k views
Linux, GNU GCC, ld, version scripts and the ELF binary format — How does it work?
I'm trying to learn more about library versioning in Linux and how to put it all to work. Here's the context:
-- I have two versions of a dynamic library which expose the same set of interfaces, say ...
2
votes
2answers
1k views
How to use STL in unix and linux?
How to use STL(standard template library) in HP-Unix . How to compile and run the program with STL functions?
1
vote
1answer
465 views
How to build-compile a .c file
I have little experience with LINUX . I am using Debian.
It has a library glibc which has several useful programs.
iconv is the program that i want to use to do several charset conversions...
However ...
2
votes
2answers
850 views
Is it possible to execute code in heap space?
I would like to know if i can execute a code piece sitting inside the heap space?
5
votes
2answers
2k views
Get a list of the functions in a shared library?
How can I get a list of the functions defined in a shared object library, or find out if a particular function is defined in one?

