Questions tagged [shared-library]
The shared-library tag has no usage guidance.
290
questions
0
votes
1
answer
15
views
/usr/bin/ld: cannot find -lstdc++
I am using ubuntu 14.04 64 bit OS
when i am running my verilog code in synopsys vcs it shows me the following error, i think there might some missing packages in ubuntu, i search through but i didn't ...
0
votes
1
answer
32
views
apt packages - static vs dynamic libraries
I use Ubuntu 18.04. I install libraries using apt, for example:
sudo apt install freeglut3-dev
Does apt always install dynamic libraries or I can determine if a package contains static or dynamic ...
-1
votes
0
answers
12
views
shared library and changing dir get errir while loading shared libraries
My program is /root/mypg:
I contains mypg libs.
When I run my pg in /root/mypg , It's okey.But when I change /root/mypg to another dir, I get the famous error : error while loading shared librraies: ...
0
votes
2
answers
50
views
Cannot link to matlab libmat.so and libmx.so under Eclipse IDE
I am trying to compile matcreat.cpp under Eclipse C++ IDE. It allows to exchange matlab data with c++ programs. At some point I compile the program :
/*
* matcreat.cpp - MAT-file creation program
*
...
0
votes
0
answers
47
views
PHP Extensions Are Not Enabled
I am running RHEL 7 and I am trying to use PHP 8.1. PHP is installing and the extensions are installed (per-Yum) but not enabled per-PHP.
For example, if I run php -m | grep dom from the command line ...
1
vote
2
answers
66
views
How do I "install" a shared libray
I am developing a C++ application that uses external libraries, using gcc. For instance libtiff and libpng. I obtained these by apt-get and everything is working fine.
But then I added another third ...
1
vote
1
answer
366
views
Unable to load shared library 'libdl.so' or one of its dependencies
I'm trying to compile a project and the compilation fails due to a missing library.
System.DllNotFoundException: Unable to load shared library 'libdl.so' or one of its dependencies. In order to help ...
0
votes
1
answer
43
views
How to link using -lfoo when there are versioned names of libfoo but no libfoo.so
Suppose /usr/lib/x86_64-linux-gnu/ contains libfoo:
libfoo.so.2 -> libfoo.so.2.0.0 (symbolic link)
libfoo.so.2.0.0
Notably missing is libfoo.so.
Suppose there is a program /usr/local/bin/...
1
vote
2
answers
201
views
Using wkhtmltopdf on RHEL returns libpng15.so.15 shared library not found
To give a little background, I am using wkhtmltopdf to convert a local .html to a .pdf for use as evidence for our pipeline/release.
However this html that is generated has some remote scripts and ...
0
votes
0
answers
123
views
Error while loading shared libraries: libyaml-0.so.2: file too short
I've installed flatpak on ARCH-LINUX and rebooted, the next thing to do was test it on terminal, then I typed: flatpak
And then:
flatpak: error while loading shared libraries: /usr/lib/libyaml-0.so.2: ...
0
votes
1
answer
55
views
How do you list a program's all library dependencies, configs when the program has attached flags/options?
How do you list all of a program's dependencies (libraries) and configs even if it gets argv given to it which changes the dependencies let's say?
0
votes
1
answer
679
views
How do you reload .so files (dynamic libraries) in Linux?
I don't remember the command anymore, but in basically every Linux distro there's a command for reloading .so files and other libraries. How's it called?
It's something similar to ld I think. I tried ...
1
vote
1
answer
147
views
ELF: Dump paths to .so files imported by binary
I am trying to dump the full paths of the shared libraries that are imported by an ELF file (/usr/bin/ls)
Using readelf --dyn-syms /usr/bin/ls I get the name of the libraries, but not where they are ...
0
votes
1
answer
124
views
/usr/lib vs /etc/ld.so.conf.d
TL;DR Why is it better to place a symlink to a shared library at /etc/lib(64)/ or why is it better to create a *.conf file in /etc/ld.so.conf.d/
.conf file
Assuming i have my custom binary at /opt/...
0
votes
2
answers
207
views
Finding out functions/variables used in the code from a given shared library
I'm analysing a large C++ project on linux platform(redhat), specifically the shared libraries used in it. How can I find which symbols(functions/variables) are used in this project from a particular ...
0
votes
0
answers
207
views
Usage of objcopy / elfedit to patchelf symbol (versions) in elf file
The context is as follows: on my o.s. there is (already) liba.so.v2 of "liba" which contains the string 'symbol_version-2' as the symbol version for its functions , e.g. functionX@version-2 ...
0
votes
0
answers
555
views
shutdown: Kernel Panic; error while loading shared libraries: libgcrypt.so.20
System Information
System: Kernel: 5.4.0-92-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 5.2.7 Distro: Linux Mint 20.3 Una base: Ubuntu 20.04 focal
I am getting the following ...
0
votes
0
answers
19
views
Identical .so shared libraries (with no symbols) are generated when compiling different C source files
At the institution I work for we have a User Exit made in Pro*C (SQL embedded in C language). We are having some troubles because identical shared libraries are generated when compiling different ...
0
votes
0
answers
35
views
Error while compiling GMT(generic mapping tool on centos7) with GDAL
I am having the following error while compiling GMT with GDAL and I am unable to figure out the root cause of it.
GDAL has been compiled from the source (following this link). Dependencies too has ...
1
vote
1
answer
48
views
Why is libinput packaged as libinput10?
I'm writing documentation for touchpad hackers at linuxtouchpad.org and I'm trying to explain which debian package has the build dependencies for libinput (i.e. is it sudo apt build-dep libinput or ...
1
vote
0
answers
19
views
Watch all imoprt function of share library [closed]
How can I simply watch all function in import and export table in share library (so) with some shell script .
Without open in Ida or thomething like that.
0
votes
1
answer
73
views
How do I know if a shared object (.so) has ASLR enabled?
And what happens if the base adress the .so wants is not free, will loading the so fails, or will the dynamic loader perform relocation ?
1
vote
1
answer
368
views
switch_root: failed to execute /sbin/init: Too many levels of symbolic links
So, recently I was doing the Linux from scratch project and I had multiple terminals open, so I was continuing to make it, and by accident I typed the line in another terminal tab (root), and it ...
0
votes
1
answer
150
views
Detect all the OS packages that are needed to be installed in order to use the path
Given a path, I want to detect all the OS packages that needed to be installed, in order to use it. For example:
> /bin/rpm -qf --queryformat "[%{NAME}]\n" /usr/bin/tcsh
tcsh
Sometimes ...
0
votes
1
answer
49
views
Is the memory usage of typical software exaggerated?
Suppose multiple processes are using the same shared library (such as Gtk). Presumably, they mmap the library file, and physically, the RAM is shared?
However, the size of the library gets added to ...
0
votes
3
answers
651
views
Wine can't find DLLs
The problem that I currently have with my wine installation is that it doesn't find the DLLs to start the game, he says something like:
0100:err:module:import_dll Library D3DCOMPILER_43.dll (which is ...
1
vote
1
answer
261
views
How to Resolve "error while loading shared libraries: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory" on Ubuntu 20.04
I installed Swift for Ubuntu using the latest toolchain available. At the time of writing, that version is 5.4.3. I downloaded it from https://swift.org/download/#releases
I installed many ...
0
votes
0
answers
38
views
What to do when you have a newer version of a shared library?
I want to execute an executable, which depends on libsnmp-dev, of which I do not have the source. This binary depends on some shared libraries. When I execute ldd <application> to inspect, I get:...
0
votes
1
answer
173
views
How to find all possible locations for libraries and header files on any distro?
I found that the location of libraries and header files are very different on different distributions. For Example on Fedora you have /usr/lib64/libbfd.a while on Ubuntu you have /usr/lib/x86_64-linux-...
0
votes
2
answers
89
views
auCDtect: Fatal error: glibc detected an invalid stdio handle
I'm trying to use auCDtect to check the authenticity of my audio files. I can run the linux binary successfully on my Synology NAS (DS918+) with the addition of libstdc++-libc6.2-2.so.3. I wanted to ...
0
votes
0
answers
356
views
Installing the latest version of libpcap & libpcap-dev
In my docker container I run the following command to install the pcap lib: apt-get install -y libpcap-dev
When I run apt list --installed I see this weird output:
libpcap-dev/oldstable,now 1.8.1-6 ...
0
votes
1
answer
49
views
how can share variables between different apps
how can update the foo variable from another app?
$ cat app1.sh
#!/bin/bash
//foo can be changed from the internet, but for example, I give it foo=1
export foo=1
while true
do
echo "$foo+2&...
0
votes
1
answer
153
views
OpenBSD GCC Upgrade [closed]
I'm attempting to upgrade the GCC library in OpenBSD from 4.2.1 to 11.2.0 (for a project, and a personal challenge). So far, everywhere I looked was unsuccessful. I know it's probably something ...
0
votes
2
answers
365
views
Is it safe to remove a shared lib while programs which depends on it is executing?
Is it allowed to delete (for example, with the rm command) some shared library without any danger when programs that depend on it are executed? I thought so, because if the program was running, then ...
0
votes
0
answers
307
views
Library missing after port update on FreeBSD
I have been confronted with some strange behavior after upgrading my ports with
portupgrade --all --interactive
I always miss "libsamba-credentials.so.0" (from "/usr/local/lib", ...
0
votes
0
answers
38
views
centos7-librdkafka.so missing dependencies
I'm building a software that uses centos7-librdkafka.so, but this library fails to load. I've run
ldd /app/bin/Debug/net5.0/runtimes/linux-x64/native/centos7-librdkafka.so
And it says:
ldd /app/bin/...
1
vote
0
answers
186
views
Error using glib2 from yum: "libgio-2.0.so.0: undefined symbol: g_free"
I am trying to build all of the dependencies for Weasyprint 52.5 for AWS Lambda. Despite being a python library, Weasyprint has a large number of OS dependencies.
I'm creating a lambda layer by ...
0
votes
1
answer
85
views
Can you force a shared object to run as root or use setuid or setgid if its caller is not one of those?
My App needs to have write access to /dev/input/event*. On my Ubuntu system /dev/input/event* is owned by root:input. My app runs fine if I use sudo, but I'm trying to avoid that. So I set my App ...
0
votes
1
answer
348
views
How to resolve shared library file errors while compilation [closed]
I'm compiling my project using Makefile & I'm getting the following error.
[rahul@wbms-dev wdb]$ make
/orasw/app/oracle/product/client_19c/bin/proc INCLUDE=/orasw/app/oracle/product/client_19c/lib ...
0
votes
0
answers
104
views
Shared library fetching fails if LD_LIBRARY_PATH isn't exported
By looking at /etc/ld.so.conf.d there is a libc.conf file that point to /usr/local/lib that contains the .so file necessary to run my application correctly. Even running ldconfig -v it is showed that ...
0
votes
1
answer
1k
views
libreadline.so.6: cannot open shared object file. Have libreadline-7 and dev
Im getting the error below while trying to run vtysh for some network simulations
vtysh: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or ...
0
votes
1
answer
138
views
Kernel Make requires libssl0.9.8?
Im getting the error below while running make while trying to recompile kernel linux 4.15.0 for my Ubuntu 18.04 VM.
openssl: error while loading shared libraries: libssl.so.0.9.8: cannot open shared ...
0
votes
0
answers
107
views
Dynamic library on Debian stable error: libOpenCL.so.1: cannot open shared object
On Debian stable when trying to fix error
$ mpv
mpv: error while loading shared libraries: libOpenCL.so.1: cannot open shared object
I have run
sudo apt install ocl-icd-opencl-dev
to no avail. Can ...
0
votes
0
answers
293
views
Issue with a lot of programs: error while loading shared libraries: libsrt.so.1.4: cannot open shared object file
I am using arch and I think this happened after a btrfs root snapshot restore, but I am not sure.
/etc/ld.so.conf.d/ consists of fakeroot.conf and openmpi.conf.
My /usr/local/lib is empty, however:
ls ...
1
vote
0
answers
154
views
libc.so.6 version error
I was installing node-red and it gave me an error stating that the library libatomic.so.1 was missing but i had it in one of my directories.
After some searching i found out that i had to edit the /...
3
votes
0
answers
62
views
Is there any solution to ltrace calls made by libs opened using dlopen()?
I wrote different two different types of queues. Bundled them in different .sos. I have a driver main.c which tests functions offered by those queues. main.c makes use dlfcn.h to load, unload required ...
2
votes
1
answer
95
views
Why does this SO (shared object) end in .3gf?
On ubuntu trusty tahr, when I install libblas3 from the repository, it installs a file at /usr/lib/libblas.so.3gf. Under focal fossa, it behaves differently and installs under /usr/lib/x86_64-linux-...
1
vote
1
answer
743
views
Install a second G++ on Debian using official packages only?
I need a newer G++ for a project, but all tutorials will tell you to download the sources, compile them and "simply" install them then use it. Which is something I don't want since it's not ...
0
votes
1
answer
161
views
How to link 32 bit shared library (.so file) to 32 bit executable?
Short question
I tried to use gcc -m32 -c file.c -o file.o -Llib -llibname command to link my 32 bit shared library (.so file) to 32 bit executable. But it seems like library not added.
Long question
...
1
vote
2
answers
1k
views
Cent OS 7 libpng16.so.16 can't open shared object file
I am attempting to use a program XPDFReader on CentOS 7 it keeps throwing the error error while loading shared libraries: libpng16.so.16: cannot open shared object file: No such file or directory I ...