Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [shared-library]

The tag has no usage guidance.

1
vote
0answers
29 views

Access dll in linux

Okay so I have a bunch of .dll files that are compiled on windows (though I could recompile them on linux if that was necessary) that I want to use. The final idea I am having is to write a .so ...
4
votes
1answer
39 views

Placed library in /usr/lib, but ldconfig doesn't put it in cache

I'm starting a project that requires an external shared library third-party.so. I've placed it in /usr/lib. However, when I run sudo ldconfig -v, it's not listed. ldconfig -p | grep third-party.so ...
2
votes
0answers
64 views

Linux access windows share without loading to RAM

I have a laptop running an Arch-based Linux system and frequently need to access a windows share at my workplace. This is really annoying since it takes ages to load. Particularly, one folder is ...
1
vote
0answers
37 views

cannot find libarary error

I am trying to install a software "W" which requires some non standard packages like "XYZ". I am installing XYZ as instructed in the related site using the following commands ./configure -C make ...
0
votes
2answers
245 views

How to link to a shared library with a relative path?

In the man page for ld.so(8), it says that When resolving library dependencies, the dynamic linker first inspects each dependency string to see if it contains a slash (this can occur if a library ...
1
vote
1answer
69 views

Building shared library which is executable and linkable using Cmake

How to create an executable shared-library using cmake? Something like: libtest.so :: linkable shared library libtest.so :: executable too Note: gcc/g++ options are known to achieve the ...
0
votes
2answers
85 views

ldd shows no location after arrow; library does not exist on system

I want to create a chroot environment that has access to hand-picked programs but is completely isolated from the rest of the system. I created three folders in this chroot folder: bin, lib, lib64. I ...
1
vote
1answer
33 views

Are the addresses inside a shared library file virtual addresses, or relocatable addresses?

Are the addresses inside a shared library file virtual addresses, or relocatable addresses? Does the answer depend on whether the shared library file was built with GCC’s -fPIC option? Originated ...
0
votes
2answers
124 views

What is the difference between Shared object file and Relocatable file?

https://linux-audit.com/elf-binaries-on-linux-understanding-and-analysis/ says The type field tells us what the purpose of the file is. There are a few common file types. CORE (value 4) DYN (...
0
votes
1answer
76 views

What kinds of files can be dynamically loaded?

Operating System Concepts, by Silberschatz A., Galvin P. B., Gagne G. - Operating System Concepts, 9th Edition - 2012 says 8.1.4 Dynamic Loading In our discussion so far, it has been necessary ...
1
vote
1answer
138 views

What does “unused direct dependencies” mean?

When using the ldd command there is an option, -u, to print unused direct dependencies as stated in the on-line help. For example: ldd -u /bin/gcc Unused direct dependencies: /lib64/...
-1
votes
1answer
95 views

Why cannot 64-bit shared libraries be used by 32-bit code?

On GNU/Linux, x86/x86-64, in general, what is the reason that (at least sometimes, maybe there are exceptions) 64-bit library code cannot be used by a 32-bit program? I'm aware of many of the ...
0
votes
1answer
43 views

Mint 19 - Pidgin IM - Error while launching: libpurple.so.0: cannot open shared object file

System: Linux Mint 19 Cinnamon 64-bit, based on Ubuntu 18.04. Pidgin: Built from source, version 2.13.0. Pidgin would not launch from the GUI, so I tried it from terminal if I can see any error and ...
2
votes
1answer
83 views

install different version of GCC side by side

My primary problem is in my Fedora 28, GCC8 is installed. Now, this gives libgfortran.so.5. But many of my applications are not updated and still depends on libgfortran.so.3 So, how can I solve the ...
-1
votes
1answer
26 views

Can I programmatically remove funcionality from a shared library that is not used by a specified executable? [closed]

I have a library taking up a lot of disk space. Only one program I use links to that library. I am pretty sure that the program uses only a tiny fraction of the functionality provided by that library. ...
4
votes
3answers
549 views

Centos 7, I thought “yum install ___” was supposed to get all the dependencies, too?

I'm trying to get back into *nix again after many years away, and I'm running into a few headaches that I'm hoping you can help me with. I want to install Trillian onto my CentOS 7 box. I went to ...
2
votes
1answer
721 views

What do the multiple GLIBC versions mean in the output of ldd?

The ldd program reports some missing shared libraries that my shared library needs. (I built it on a different machine with Red Hat Linux 7 and want to run it on another with Red Hat Linux 6.) In the ...
2
votes
1answer
350 views

How to ensure that a shared library will have its memory pages shared by several processes?

Let me first describe what I want to do, followed by what I manage to do, and finally my issue. Goal: implementing flush+flush cache attack in C I am trying to implement in C the flush+flush cache ...
0
votes
2answers
211 views

Creating a link to a shared library

I have a library ( ZendDebugger.so ) which in turn requires the openssl library but it doesn't find a reference to it. Indeed when ZendDebugger.so loads, it prints this error on the error log ( which ...
0
votes
1answer
60 views

Is the shared library object loaded as shared memory for the program?

I was coding some C when I started asking myself about free() inside a shared library and SIGKILL, and so on. Then, after some reading and re-thinking, I came up to this simple question. CONTEXT : ...
0
votes
1answer
227 views

What differences and relations are between the various `libc.so`?

On Lubntu 18.04 $ whereis libc libc: /usr/lib/x86_64-linux-gnu/libc.a /usr/lib/x86_64-linux-gnu/libc.so /usr/share/man/man7/libc.7.gz $ locate libc.so /lib/i386-linux-gnu/libc.so.6 /lib/x86_64-linux-...
0
votes
1answer
101 views

Are there any circumstances in which ld ignores LD_LIBRARY_PATH?

I've just come across a little problem with ld which I just can't explain. Let's say I have compiled a library in my home directory and installed it all under ~/root. The shared library file can be ...
4
votes
1answer
332 views

Fix hardcoded dynamic linking for executable

I have an executable file called reg with the following shared library dependencies: [terminal]$ ldd ./reg linux-vdso.so.1 => (0x00007ffc40d90000) libpthread.so.0 => /lib64/libpthread.so.0 (...
0
votes
1answer
250 views

Are shared library ABI compatible as long as their versions are the same?

Suppose I have a program compiled that's linked against libc.so.6 on one system (e.g., Ubuntu x64). If I take this binary to another system that has the same libc version 6 (e.g., Fedora x64), it ...
0
votes
0answers
142 views

Debian MadCoin Install Problem

I have this issue, I try to run ./MadCoin-qt it's wallet and i receive this errror: ./MadCoin-qt: error while loading shared libraries: libminiupnpc.so.8: cannot open shared object file: No such file ...
1
vote
2answers
270 views

How to resolve Depends: libwinpr2-2?

When I want to install any package like gedit: sudo apt-get clean sudo apt-get autoclean apt install gedit Output is: You might want to run 'apt --fix-broken install' to correct these. The ...
0
votes
1answer
26 views

How to install a shared library when installing to a system path?

I am experimenting with how to distribute a simple graphics library for Linux using a Makefile. The shared library is called libsgtk.so. Here is my first attempt for the Makefile: CFLAGS= -pthread \ ...
0
votes
0answers
96 views

gdalinfo: error while loading shared libraries: libNCSEcw.so.0: cannot open shared object file: No such file or directory

which gdalinfo returns /usr/bin/gdalinfo. This directory contains 'libNCSEcw.so.0' file. I have added include /usr/bin to /etc/ld.so.conf and have run ldconfig. Error persists. UPDATE: distribution ...
0
votes
0answers
543 views

libpython2.7.so.1.0()(64bit) not found by yum

So I'm trying to install Azure on CentOS with yum: link. But it keeps telling me it needs libpython2.7.so.1.0: [root@minnow02 Desktop]# yum install azure-cli Loaded plugins: fastestmirror, refresh-...
0
votes
1answer
118 views

Pandoc is missing a library file [closed]

pandoc-citeproc is missing a library file: [max@arch ~]$ pandoc-citeproc pandoc-citeproc: error while loading shared libraries: libHStext-icu-0.7.0.1-qGJENUzIfHIw3gGVnpCOt-ghc8.2.2.so: cannot open ...
3
votes
1answer
85 views

Shared library minor version management

I have a simple program called main: #include <iostream> #include "random.h" int main() { std::cout << "The program has started\n"; return get_another_random_number(); } ...
1
vote
1answer
1k views

Finding libssl on a customer's Linux

We're using a library which needs to load libssl in a version 1.0.*. It doesn't work with libssl.so.1.1. We need it to work on any Linux system. We try to load various versions and this usually works,...
0
votes
0answers
213 views

Object library not found by shared object library

I'm trying to build a shared object library but when I produce the shared object library it says the object file is not found. OSError: lib1.o: cannot open shared object file: No such file or ...
0
votes
1answer
508 views

Library is found by ldconfig but not by ldd for any program using this library

Running arch linux, I have qt5-base installed, which provides libQt5Core.so.5. Running ldconfig finds the shared object: $ sudo ldconfig -v | grep libQt5Core libQt5Core.so.5 -> libQt5Core.so.5.10....
3
votes
0answers
519 views

anaconda Qt vs system Qt

The anaconda python framework includes its own Qt shared libraries, among other ones. Because of the nature of the framework, it must appear first in the PATH environment variable so its python ...
-1
votes
1answer
233 views

How do I fix an APT that complains about missing liblber? [closed]

# apt update /usr/lib/apt/methods/https: error while loading shared libraries: liblber-2.4.so.2: cannot open shared object /usr/lib/apt/methods/https: error while loading shared libraries: liblber-2.4....
2
votes
1answer
60 views

How does Qubes do memory management, especially with regard to shared objects?

I'm just reading about Qubes OS, and I have a very simple question -- how does it do memory management and shared object use? Feel free to correct any misconceptions or errs in vocab, but we have the ...
1
vote
1answer
318 views

Perf Error While Loading Shared Libraries

I was on CentOS 7.3 on x86_64 using perf compiled on the system itself from Kernel 4.13.7 source. It worked without any issue and was able to profile whichever application I wanted to. For some ...
1
vote
1answer
181 views

In what library on Linux are the system calls and how is this library linked to the executable object file that contains the system calls?

I know that the system calls are not in the C standard Library. Is there any library (some sort of a system library) where the system calls are? If there is such a library how is this library linked ...
1
vote
1answer
4k 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 ...
1
vote
0answers
34 views

Is there a standard/accepted way for a plugin library to identify its location on disk?

I am working on a C program that has a plugin architecture. We build and package both .rpm and .deb packages. Some plugins have additional non-binary resources, such as image files, or script files ...
0
votes
1answer
466 views

Stata 14 fails to start on RHEL 7.x, with “libpng12.so.0” error. How do I install libpng12?

The proprietary software Stata version 14 breaks on RHEL 7.3. Stata says: stata-se: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory So ...
0
votes
1answer
237 views

How to tell libgs to use another freetype implementation?

So after a year of use my printer decided to not print anymore. After troubleshooting for a bit I noticed that the cups error log shows something like gs: symbol lookup error: <path>/libgs.so....
2
votes
1answer
63 views

How to run an application compiled in a newer version of Ubuntu in an old one?

I have an application compiled in Ubuntu 16.04 that depends on many libraries, like Qt, boost and many others with the version that comes with that version. However, I need to run this application in ...
1
vote
1answer
65 views

Compile with recent gcc on RedHat6: How to distribute the software?

My software compiles on a variety of OSes, including RHEL7. I have a request to build it to run on RHEL6. My problem is that my C++ code relies a lot on C++11 features that are not present in gcc-4.4, ...
0
votes
0answers
657 views

“Error while loading shared libraries” even though the library in question is present in /usr/lib

I am trying to run Scala on my Linux Manjaro laptop, but whenever I try to run the program, it displays the following error: ./scala: error while loading shared libraries: libgtkada.so.2.24.4: cannot ...
2
votes
1answer
527 views

What is the correct arrangement of symlinks to allow both openssl 1.1.0 and 1.0.2 shared libraries to co-exist?

I want to have openssl-1.0.2 and openssl-1.1.0 both available for dynamic linking to different applications. I'm slightly unsure about this, because I would expect 1.0.2 to be installed in a file ...
-1
votes
1answer
324 views

db2start fails with error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

Installed db2 10.5 but installation completes with warning that db2start failed while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory. i have both ...
0
votes
1answer
3k views

How to Change Text in Shared Libraries (*.so files) in Linux

When I search text in a folder using bash I can see that text is in binary file. I would like to change the text in *.so file. Regards.
0
votes
2answers
556 views

How to distribute a portable Linux commercial closed-source program? [closed]

First of, I've found this similar question How to make a portable Linux app? but it doesn't really address my questions, it's more about how to compile to make the application portable which I already ...