Questions tagged [shared-libraries]

Shared libraries are libraries that are loaded by programs when they start. A single shared copy of each library is loaded into physical memory and may be used by multiple processes at the same time. This reduces memory use and improves system performance. This tag should never be used alone.

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr while using System.loadLibrary to load a .so(obfuscated) file i extracted from another app

I am trying to create a custom library which will be used in my Android app. In this library I am trying to use/import a .so file named libtestingfunc.so I got from another apk file, using System....
VFX's user avatar
  • 1
0 votes
1 answer
42 views

How to know the Linux package name I need to install in order to get a missing C/C++ library?

When working on a C++ open source project, I've notice that the following header file #include <cpp/poppler-document.h> #include <cpp/poppler-page.h> #include <cpp/poppler-version.h> ...
Rubem Pacelli's user avatar
0 votes
1 answer
43 views

Python3: c-type segfault from multithreaded C shared library

I've looked at other StackOverflow related questions and answers and followed the information given. I am still having trouble. Running Python3 on Linux which accesses a shared C library (.so). The C ...
user2205930's user avatar
  • 1,046
2 votes
0 answers
41 views

Implement C function in go

I'm trying to write a OpenVPN plugin in go. OpenVPN provides a interface as C header file. The header contains a function signature int openvpn_plugin_open_v3(const int version, struct ...
jkroepke's user avatar
0 votes
0 answers
22 views

Guacamole: Support for protocol "rdp" is not installed [closed]

I'm trying to dive into the internal workings of the guacamole software. Thus I tried to build the guacd application following the instructions. At the configure step, I got positive response for RDP ...
Stephan Richter's user avatar
0 votes
0 answers
24 views

gcc unrecognized command-line option '-soname'

Raspbian (bullseye) I'm going through A guide to understanding Linux software libraries in C I got as far as creating the dynamic library which is where I've run into an issue. I have compiled my ...
DrBwts's user avatar
  • 3,470
-1 votes
0 answers
61 views

Overriding global exported variables in shared libraries

I have a library with a global variable declared like so: namespace SOME_NAMESPACE { extern "C" SomethingElse<SomeType> some_var; SomethingElse<SomeType> some_var = ...
t348575's user avatar
  • 672
0 votes
0 answers
31 views

How do you install and share Bootstrap from Angular Shared Lib

I am creating multiple application (projects) in an Angular workspace, following this approach in Angular Documentation (https://angular.io/guide/file-structure). This is the monorepo multiple ...
user512514's user avatar
-2 votes
0 answers
25 views

Should I create a new library or microservice to avoid duplicate functionality [closed]

I am working in microservice ecosystem. I need to either create a new utility library or new service that will have common functionalities used by multiple other services. Functionalities are as ...
Onkar's user avatar
  • 1
0 votes
0 answers
31 views

All Jenkins jobs are getting triggered upon any changes in shared library

I have configured shared library for pipeline job, now hundreds of jobs are pointing to my single shared library. Upon making any changes in shared library files it triggers all the jenkins jobs ...
Ramesh Thiyagarajan's user avatar
0 votes
0 answers
14 views

How can I use value in .properties file for choice parameters in Jenkinsfile?

I would like to know how I write Jenkinsfile to set the contents of the following properties file for choice param. resources/platform.properties windows10 22h2 windows10 21h2 windows8.1 windows8 ...
KimiTom's user avatar
  • 37
0 votes
0 answers
52 views

PyQt5: QtCore.abi3.so: undefined symbol: _ZdaPvm, version Qt_5 on Python3.8 Ubuntu22

I'm tring to execute a program using package qtpy, but there is a ImportError. For intuitive, I wrote a simply test.py. test.py from PyQt5.QtCore import PYQT_VERSION from PyQt5.QtCore import ...
Malloc's user avatar
  • 41
0 votes
1 answer
46 views

How can i load shared library in Tcl 8.4 version?

I am working with tcl version 8.4 and I want to use the tcl Thread package, but it is not built-in with version 8.4, so I tried to download and use the package directly. I downloaded the thread2.8.8 ...
re-nos's user avatar
  • 1
0 votes
1 answer
17 views

Jenkins helper class not printing to console

I have a Jenkins shared-library under src/org/helpers I have a groovy file ErrorHolder.groovy package org.helpers class ErrorHolder { private String message = "" def echo_error(...
Rami Hassan's user avatar
1 vote
1 answer
54 views

Error linking a Linux shared library in NASM - 'readdressing R_X86_64_PC32 to symbol "foo"'

I am currently re-coding some functions from the standard C library in NASM x64. At the moment I only have two functions: strlen: bits 64 section .text global strlen strlen: ...
Virgil G.'s user avatar
  • 117
1 vote
0 answers
32 views

Android shared java library

Context: I am working on an android application that uses multiple libraries. One of those libraries can vary depending on the device (implementation can differ) To avoid having to build multiple ...
Simon Ackermann's user avatar
0 votes
1 answer
79 views

How call included libraries functions?

I have C++ shared library like this: extern "C"{ #include <foo.h> int test(int a){ return 1; } } I can lookup and call function int test(int a);, but exported C ...
abgr's user avatar
  • 63
-1 votes
0 answers
18 views

How to create makefile (SO library) for glib library, and what all path is should include for compilation in c in Vim editor in ubuntu 22.04

--Glib folder --Project_root/ ├── records/ │ ├── headers/ │ │ ├── student_management.h │ │ │ ├── src/ │ │ ├── student_management.c │ │ │ ├── ...
Pre_01's user avatar
  • 1
0 votes
0 answers
23 views

SHT is corrupt and has some overlapping sections in an elf file. How I can fix it?

I'm trying to reverse engineer a so library with IDA Pro. Although, I'm getting following error while trying to load the library into IDA Pro. The SHT is corrupt and has some overlapping sections that ...
Refet's user avatar
  • 129
0 votes
0 answers
71 views

makeinfo: loadable library and perl binaries are mismatched

I recently upgraded Ubuntu on my system to version 22.04.3 LTS (Jammy Jellyfish) which broke my cross-compiler toolchain, which consists of binutils and gcc configured for the i686 architecture. ...
Tom Finet's user avatar
  • 485
1 vote
1 answer
52 views

Can I enforce a linker warning/error when multiple symbol definitions are present?

Assume I have liba.so and libb.so and both define a symbol foo. For better comprehension, let's assume both libraries are compiled from a single file each and foo is a C function like this: int foo(...
andreee's user avatar
  • 4,489
0 votes
1 answer
16 views

Does anyone know about the Static Shared Library?

Does anyone know about the Static Shared Library? Please describe the difference between it and the static library, and the difference between it and the shared library. My own understanding is that ...
Yue Zhou's user avatar
-1 votes
0 answers
16 views

Dependency Handling

Imagine there is an application that depends on dynamic libraries which we call LibFoo1 and LibFoo2 But LibFoo1 also depends on LibFoo2 app => LibFoo1, LibFoo2 LibFoo1 => LibFoo2 What is the ...
Redman's user avatar
  • 35
0 votes
0 answers
40 views

C/C++ [GCC] - How to determine if library code is compiled as static (.a) or dynamic (.so)?

I have a C/C++ dynamic library which some users compile and use as static. The issue arises where I have a constructor/deconstructor in my dynamic library which causes an error when compiling as ...
user2205930's user avatar
  • 1,046
1 vote
1 answer
80 views

Why C app fail because of shared library?

This is my example which is based on official code. I run example and get error FFMpeg_MJPEG-transcode-VP9_C_Universe$ myExample/build-host/myExample myExample/build-host/myExample: error while ...
Андрей Тернити's user avatar
0 votes
0 answers
28 views

How to fail CMake+Clang build in case of unresolved symbols?

I am trying to check that my shared libraries and executables have no unresolved symbols before running them. As far as I know it is done by adding compiler option -Wl,-z,defs, see this answer. My ...
Fedor's user avatar
  • 17.3k
0 votes
1 answer
19 views

Better way to copy from shared folder to SharePoint?

I kindly ask, which is the better way to copy from fa shared folder to a SharePoint site. The data volume is like 270GB and more less 900000 files. Is there any PowerShell script, or by promt? Or is ...
ulisses's user avatar
  • 1,549
0 votes
1 answer
31 views

How to Prevent CMake from Generating Library Symlinks when Using VERSION and SOVERSION

I have a build system which uses CMake to generate a primary daemon and a handfull of shared libraries which are dynamically loaded based on configuration at runtime (via dlopen). Now, however, I ...
MysteryMoose's user avatar
  • 2,213
0 votes
0 answers
13 views

Use global environment variables to change Jenkins constants in shared-library

So I have 2 Jenkins instances and I want them to use the same shared-library for common Constants, but change some Constants depending on the environment. I thought of defining a global environment ...
Learner's user avatar
  • 198
3 votes
1 answer
79 views

How does one consistently set rpath on a dynamic library and compile time?

I spent an inordinate amount of time this past week adding comprehensive OS, Perl Version, and cmark version tests to the Perl CommonMark module (pull request). Most of my time was spent trying to get ...
theory's user avatar
  • 9,236
-3 votes
1 answer
60 views

Create a SO library for math functions in linux using C in vscode

The project structure: project_root/ ├── headers/ │ ├── math_functions.h ├── src/ │ ├── math_functions.c │ ├── main.c Now, Create a SO library and execute the program and ...
Pre_01's user avatar
  • 1
0 votes
0 answers
22 views

Use GitHub libraries on Google App Script - Can´t access

I want to connect some libraries from GitHub to my project on Google App Script. But I have no solution for that. I´m trying the function below => function GH_libraries() { var url = 'https://...
William Belini's user avatar
2 votes
2 answers
77 views

Why is a linux shared library .so possibly larger in memory than on disk?

I'm starting to code more in linux and trying to get a better feel for the environment/APIs which are very different from windows. Anyhow, I'm dabbling with shared libraries .so (versus a windows .dll)...
vengy's user avatar
  • 1,742
0 votes
0 answers
57 views

OpenCv's CMake tooling can't find library 'gio-2.0' (Ubuntu22)?

when I used CMake to configure the source code, there was always warning messages, like these: -- ADE: Downloading v0.1.2b.zip from https://github.com/opencv/ade/archive/v0.1.2b.zip -- Checking for ...
Malloc's user avatar
  • 41
-1 votes
0 answers
39 views

Undefined reference to folly::detail and other calls

I need to use folly library to import a module into my project. I have followed the steps on folly GitHub README.md file. Steps followed: Step 1: sudo ./build/fbcode_builder/getdeps.py install-system-...
Gauravshinde's user avatar
0 votes
0 answers
95 views

Angular 10 -> Angular 16, Using Shared CSS Library, Build/Serve time is over 40 minutes

I have a production-scale Angular solution that I've just upgraded from Angular 10 -> Angular 16. Most of that went pretty well. We have a shared styling solution and a shared component solution so ...
Charlie's user avatar
0 votes
1 answer
34 views

MacOS Dynamic library issues using a Makefile written for Linux platforms

I have to build a Geant4 code which was made on Linux and I have to make it work on MacOS. The problem is that the code requires a custom library (libTvectors), which I do have and I am compiling. ...
Cristina Clisu-Stan's user avatar
0 votes
1 answer
12 views

running the same executable on a different machine returns coredump and ldd coredump

I built an executable (mybin.out) on my Ubuntu 23.04 and put it and all its dependencies (shared libraries) in a folder (folder name=execfolder). I copied the folder to another Linux machine (Ubuntu ...
Askr Askr's user avatar
0 votes
0 answers
20 views

Pack static libs into single shared lib, paho-mqtt not working

I'm trying to pack several static libs into single shared lib. Everything works except paho-mqtt3c.a. In CMakeLists.txt, I have included the header files: include_directories(${PROJECT_SOURCE_DIR}/inc/...
Seraph's user avatar
  • 175
0 votes
1 answer
98 views

How to disable unneeded Java libraries built into RAD Studio?

I am using Delphi 11 CE for developing an app for Android. The libraries automatically added to each project by Delphi are in the project manager, target platform Android and libraries. The list also ...
Peter Kloß's user avatar
0 votes
0 answers
7 views

libraries mismatch between application and plugins

I have an application (imsd server) that dynamically loads a plugin I'm maintaining, that's releases as a shared library. The whole thing is running on Centos7.3.1611 The problem apparently is that ...
irio lavagno's user avatar
3 votes
0 answers
45 views

Using a library linked in a bootloader within an application flashed by that bootloader

I am developing a bootloader for an embedded system using adapted GCC toolchain that only supports C. The purpose of the bootloader is flashing an application code and verifying its integrity on boot. ...
patvax's user avatar
  • 371
2 votes
3 answers
60 views

Linking a shared library

Trying to link a shared library throws an undefined reference in main. The exact error is: /usr/bin/ld: /tmp/cc3pGAwi.o: in function `main': main.c:(.text+0x1e): undefined reference to `sum' collect2: ...
lonk's user avatar
  • 21
0 votes
1 answer
23 views

Angular Library Dependency Injection issues

I'm having some dificulties understanding exactly what I'm doing wrong but I'm trying to have an angular lib with a couple of services which need DI and then use these services in an app. As of right ...
Joaogl's user avatar
  • 89
0 votes
0 answers
22 views

Module Federation shared library loading half from remote/ half from host?

I have a StylesLibrary exporting two components for example button and form. They are imported like StylesLibrary/button and StylesLibrary/form Host using StylesLibrary v1.0.0 (Host uses both button ...
macro's user avatar
  • 31
0 votes
0 answers
20 views

RUNPATH is disappearing from search path after some libs are found [duplicate]

I'm compiling a software with CMake and GCC under Ubuntu 18. Here's the relevant CMake line: set(CMAKE_INSTALL_RPATH "$ORIGIN/../lib/") setting the runpath relative to the origin. Once ...
Cyril's user avatar
  • 559
0 votes
1 answer
27 views

Linker Errors when Building Shared Library with LLVM and C++

I'm working on a project where I'm trying to build a shared library using C++ and LLVM. The goal is to generate LLVM IR from an Abstract Syntax Tree (AST) representation of a programming language. ...
KAGE's user avatar
  • 1
0 votes
0 answers
23 views

Performance of loading multiple assets for an icon library in React

I am currently implementing a commmon components library ni React for one of my projects, and I have an Icon component that takes an icon name as a prop and displays an SVG icon. The structure of the ...
souyahia's user avatar
  • 210
0 votes
0 answers
54 views

Ctypes LoadLibrary gives FileNotFoundError -- do you have to include header files when loading a C++ DLL in Python with ctypes?

I am attempting to load two C++ DLLs in a Python program using ctypes, however, one of the modules throws an error despite the other loading completely fine. Here is the code: import ctypes os....
fault's user avatar
  • 29
0 votes
0 answers
21 views

Protect Android Native Librays

The Problem I have a lot of shared librays (.so) that I need for my project. But I noticed that everyone can extract the apk file and rename it to .zip, and can copy and use the shared librays. What I ...
Jochengehtab's user avatar

1
2 3 4 5
159