Questions tagged [shared-library]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
35 views

Error while loading shared libraries: /tmp/zshgYCSAH: file too short

While trying to execute, in the zsh, the following command taken from here /lib64/ld-linux-x86-64.so.2 =(/bin/echo -e '#include <stdio.h>\nint main(){printf("c one liners\\n");}'\ | sudo gcc -...
0
votes
0answers
9 views

How to make a proxy shared library that replaces some symbols and forwards the original ones, without preloading it?

I'm developing a library that acts as a proxy for a system-provided library. My proxy replaces some functions from the system library with its own version of them, and others are simply wrapped to ...
0
votes
1answer
18 views

Startx not running due to missing shared libraries

I was deleting some files and accidentally deleted a shared object file libXdmcp.so.6. Now startx won't run. Is there a way I can recover the system from the terminal. I am using Linux Mint.
0
votes
0answers
19 views

Is the purpose of symbolic links to shared libraries in /usr/lib64 to satisfy -l linker filename requirements?

My /usr/lib64 directory contains the following files (among others): $ ll /usr/lib64/libboost_file* /usr/lib64/libboost_filesystem.so.1.69.0 /usr/lib64/libboost_filesystem.so -> ...
0
votes
0answers
28 views

Is there an rpath for dynamic linked libraries?

So, the project I am working on uses a non-system directory to keep some DLLs that the code uses. I don't want to put them in system directories, so the executables have an rpath set to find the DLLs....
1
vote
2answers
21 views

How to use gcc dynamic linker

test.c: #include <stdio.h> int main(){ return printf("helloworld %d",a); } lib.c: int a=0; test.c is using the variable a from lib.c. I turned it into the shared library lib.so. gcc ...
0
votes
1answer
28 views

libcom_err.so.2: cannot open shared object file

I removed libcom_err.so.2 library from usr/lib64/ folder by mistake and yum command stopped working. I was wondering if there is any way to find this lib file and replace it in that folder since I do ...
0
votes
0answers
25 views

Determine what sets my LD_LIBRARY_PATH

I'm logging in to a remote machine using ssh. When I log in, my environment has: LD_LIBRARY_PATH=/usr/lib64/mpi/gcc/openmpi/lib64 which I do not want to have. Unfortunately, I can't figure out where ...
0
votes
0answers
42 views

Library loading works differently between 2 machines, what's the core difference?

Big picture stuff We want to migrate a project from CentOS7 to CentOS8. One of the things we use is wireshark, more specifically tshark 2.6.6, and need lua support. As no 2.6 is available in official ...
0
votes
2answers
118 views

wrong ELF class: ELFCLASS32 when launching a game installed by steam in linux

I've installed "Counter-strike global offensive" from steam store in linux ubuntu 18.04 but when I launch it (from terminal) , it gives numerous errors like the following : Steam/steamapps/common/...
1
vote
2answers
119 views

Compiling GCC against a custom built GLIBC

I was trying to compile GCC 9.2 against a custom built GLIBC 2.30. I have installed GLIBC in a non-standard location. Then I have followed these steps to compile GCC: sfinix@multivac:~$ GLIBCDIR=/...
3
votes
1answer
83 views

How can I install i386/x86 shared libraries on freebsd?

GDB is telling me, that the program compiled with gcc -m32 (i386 program) is incompatible with my shared libraries (i386:x86-64). Output of gdb: (gdb) r Starting program: /root/format warning: `/...
0
votes
1answer
55 views

kdenlive Doesn't launch

I just installed kdenlive on ubuntu 18.04 and tried to launch it but I get this error kdenlive: error while loading shared libraries: libQt5Svg.so.5: cannot open shared object file: No such file or ...
0
votes
1answer
25 views

Install R on rhel 6

Am getting below error when I do ./configure -with-x=no checking whether zlib support suffices... configure: error: zlib library and headers are required Installation Steps which I follow sudo ...
1
vote
0answers
21 views

How to link to a numbered shared library?

This is the command I am running arm-linux-gnueabihf-gcc -Wall -Wl,--verbose -mthumb -mthumb-interwork -D_REENTRANT -oTestRun11 ./main.c -ldl -lpthread -lRTU_Module Which gives in the printout ...
0
votes
0answers
18 views

Specify the primary library search path for single command

I need to run Java program which depends on some native libraries, including special libc version. I have all required libraries in ./libs. When I run it: $ LD_LIBRARY_PATH=libs java -jar someapp....
1
vote
0answers
67 views

debian package cross build error - dpkg-shlibdeps error couldn't find library

I am building a debian installer package on Ubuntu 16.04, to be installed on my Arm64 system, however am having difficulty resolving library dependencies during the build. I run the following debuild ...
1
vote
2answers
163 views

How to find a package name and version by its library name and version using a shell command?

Is there a command that could give me a package name and version for a library? For example, I want to get mariadb-libs version for libmysqlclient_r.so.16 library that is currently not installed, but ...
1
vote
1answer
75 views

display warning about opcache,curl and many more

I am facing problem while run any command. For example i run command php -v and it gives following output. ronak@ronak-pc ~ $ php -v PHP Warning: Failed loading Zend extension 'opcache.so' (tried: ...
0
votes
1answer
147 views

ld.so.preload ignored in Debian 10?

When I try to put something simple that hooks functions compiled as a shared library in /etc/ld.so.preload I expect it to have the same effect as using LD_PRELOAD. Instead, nothing happens. It is ...
12
votes
2answers
962 views

How can the dynamic linker/loader itself be dynamically linked as reported by `file`?

Consider the shared object dependencies of /bin/bash, which includes /lib64/ld-linux-x86-64.so.2 (dynamic linker/loader): ldd /bin/bash linux-vdso.so.1 (0x00007fffd0887000) libtinfo.so.6 =>...
1
vote
0answers
27 views

System call time measurement

I have implemented a data copying loop using system functions write() and read() if -s command is used or C library functions if -l otherwise. I am trying to measure the time for the system call ...
2
votes
1answer
76 views

How do library files (*.so) resolve shared dependencies?

If I invoke the following command: ldd mylib.so this then yields something along the lines of: libopencv_features2d.so.4.1 => /usr/local/lib/libopencv_features2d.so.4.1 (0x00007f83dee6b000) If ...
0
votes
1answer
150 views

Yum fails to find dependencies that seem to be installed already

I'm unable to "yum install wireshark-gnome" or wireshark on a Centos 7 box. running from the SU prompt, I get this error at the end: --> Running transaction check ---> Package wireshark.x86_64 ...
2
votes
0answers
106 views

Error compiling bc: cannot find libreadline.so.8

I am following the Linux from Scratch book, Version 8.4 and am stuck on compiling bc (Chapter 6.15). I have copied and pasted the commands on that page up to the make command, but when I run make, I ...
3
votes
1answer
281 views

VMware Horizon client run error on Fedora 29

I installed VMware Horizon client on my Fedora 29 machine. I downloaded the VMware-Horizon-Client-4.10.0-11053294.x64.bundle file from VMware official download page. When I am running it by searching ...
0
votes
2answers
960 views

Failed to load library libOpenCL.so.1, although it exists

I have installed ocl-icd-opencl-dev and I try to run a simple OpenCL app, called vadd: $ ./vadd ./vadd: error while loading shared libraries: libOpenCL.so.1: cannot open shared object file: No such ...
3
votes
0answers
210 views

Hiding processes on Unix/Linux

I found an interesting article about how to hide specific processes on linux from process monitoring tools like ps, top, lsof, ... Person states that there are several possible ways to hide processes:...
0
votes
0answers
22 views

File extensions for intermediate files needed for static / shared libraries

I have a library which until now was just a static library. The file naming scheme that I used was the following: foo.c -> foo.s -> foo.o bar.c -> bar.s -> bar.o }-> libfoobar.a Now ...
1
vote
1answer
106 views

How I can get version from library for example libSDL2-image.so.0

I am trying to find a way to determine which version of SDL2-Image is installed on my system, but I have not found anything useful for a bash script. I tried with the following to find just the ...
0
votes
1answer
49 views

Dynamic loader: Strange behavior (Debian 8)

I'm trying to setup and run a scientific application on Debian 8 guest OS (OpenVZ containerized environment). Since the OS-bundled GNU C++ library is quite old and doesn't contain all needed symbols, ...
1
vote
0answers
159 views

Only list direct (resolved) dependency paths with ldd, readelf or objdump

With ldd I can get a flat list of unique, fully resolved paths to all shared libraries that an executable depends on. For a script where I'm bundling a binary, I'm copying over these shared libs. ...
0
votes
0answers
139 views

What is the entry point of a so (shared object?)'s source code?

Specifically I'm trying to port libcroco's functionality to a cross-platform BASIC dialect and need to know where to start looking at the code. In short, what is the equivalent of Window's DLLMAIN?
1
vote
0answers
147 views

Accidently moved /usr/lib64 how can I restore

I was trying to free up space and clueless moved /usr/lib64/ to "/srv/maraba_ssd_scratch/apelin/root_files/usr_lib64". The next thing I was going to do is create a symlink in usr for lib64 to point to ...
5
votes
1answer
4k views

error while loading shared libraries; file too short

I am working on a CentOS 7 workstation. I had installed Rstudio and it was working fine until recently. But now, if I try to launch it at http://localhost:8787/ I get an error that says Unable to ...
0
votes
0answers
122 views

QNX throws an error as login: -sh: cant access shared libraries

When I am trying to login with non root user the QNX throws an error as login: -sh: cant access shared libraries. Why is it so? I have already checked the permissions they are as below: /lib (...
1
vote
1answer
348 views

Why (and how) do I have (seemingly!) duplicate symbols in my shared libraries?

I happened to need to work out which symbols were exported by which library from a flat list of exported shared library symbols. There were just enough symbols (20 or so) in the list that I wasn't ...
0
votes
0answers
149 views

error while loading shared libraries [Packet Tracer] kali linux

When I try to open "packet tracer" in Kali Linux, the result is : ./PacketTracer7: error while loading shared libraries: ./libpng12.so.0: cannot read file data: Error 21
0
votes
1answer
204 views

Specifying Depends correctly in debian/control file

I'm building a runtime-shared-library package libfoo0.deb where 0 here is a major package version and adhering to the naming conventions specified in the Debian policy. The problem is I want to ...
1
vote
1answer
283 views

Activate-noawait ldconfig trigger for runtime library package

I'm reading the Debian policy section on runtime shared library package and came across the following statement: Any package installing shared libraries in one of the default library directories ...
1
vote
2answers
989 views

error while starting open ssh : /usr/sbin/sshd: /lib/libcrypt.so.1: version `XCRYPT_2.0' not found (required by /usr/sbin/sshd)

I am working on an embedded board, to access that board I need ssh to work smoothly. Currently, for debugging purpose I am using serial connection to access the board. Now, when I try to start ...
1
vote
0answers
52 views

After setcap on executable, curl_easy_perform throws out of memory error

I've cross compiled an executable to run on Debian Stretch that requires a specific version of cURL (greater than 7.56) to run, and needs specific capabilities during execution. So on the executable ...
1
vote
1answer
258 views

unixODBC: Cannot load libmaodbc.so

I'm working on an embedded platform and I am trying to access a MariaDB through unixODBC. Trying to test the connection with isql I get the response: isql -v mydsn myuser mypw [01000][unixODBC][...
1
vote
1answer
44 views

Packaging library distribution

I'm working on some shared library and now stuck with the problem that some software refused to pick the newer version, but some has to use the latest since it has some crucial changes. So I need to ...
3
votes
1answer
406 views

Where is libsystemd.so located on ARM devices?

I have an ARM Tinkerboard running Debian 9.8 (Stretch). Systemd version is 232. I'm working on a program that can be run from userland or as a daemon. If it is run as a daemon, then dlopen and dlsym ...
17
votes
1answer
2k views

Why don't Unix/Linux systems traverse through directories until they find the required version of a linked library?

I have a binary executable named "alpha" that requires a linked library (libz.so.1.2.7) which is placed at /home/username/myproduct/lib/libz.so.1.2.7 I export the same to my terminal instance before ...
0
votes
0answers
118 views

SIGSEGV on dlopen with gdb

I'm currently building a shared library. The goal is to inject this lib in a process. Unfortunaly when I inject this lib in the process I get a SIGESGV about ostream. Here is a MWE to reproduce the ...
-2
votes
1answer
43 views

Linux Prog has 24 Libs Fails LDD, and strace shows 692 “1 ENOENT” during prog library reads

I am requesting opinions on expected and desired outcome of prog initialization, specifically loading of shared libraries for a program that I do not have source code. All code delivered via RPMs. ...
0
votes
0answers
322 views

apt-get install cifs-utils corrupted system libraries — caused chaos

My Linux libraries seem to have suffered a severe corruption just after running (as root): apt-get install cifs-utils I need to correct the corruption or restore the original libraries. Note: I ...
1
vote
0answers
223 views

How to resolve the undefined symbol of magic_setparam in /lib64/libmagic.so.1 ?

I have successfully installed the command s3cmd (1.6.1) that I downloaded from the s3tools official web site. So the s3cmd software should be all right, and also the system libmagic.so.l itself is no ...

1
2 3 4 5