c++ - Linux, Shared library uses functions from main program instead of other shared libraries -



c++ - Linux, Shared library uses functions from main program instead of other shared libraries -

i'm building shared library loaded application (which have no command of). library uses other shared libraries in turn uses other shared libraries, complex not unusual.

the problem main application have functions nowadays in 1 of libraries farther downwards in chain, more specific openldap in turn uses openssl functions:

main app->my library->openldap libraries->openssl libraries

my guess main application implementing openssl either static linkage or simple copy/paste of source code.

my question is: can command functions openldap uses library or have recompile openldap static linkage openssl?

since openssl updated quite due security issues don't want static re-create of if don't have to. , why re-distribute proprietary re-create of openldap when it's part of distributions packages...

right have executable overriding otherwise system's default selection of openssl library. within executable's rights that, , can't stop it.

statically linking openssl in library may not solution either. 1 thing, if executable utilize different version? another, if openssl has global variables? have 2 copies of library in same process, not thought , may cause bugs.

to me, best reply have on linux not consider sort of thing problem. if executable loads bad version of openssl, not library's fault. @ can check version loaded , reject run if it's known incompatible library reason.

c++ c linux shared-libraries

Comments

Popular posts from this blog

php - Edges appear in image after resizing -

ios8 - iOS custom keyboard - preserve state between appearances -

Delphi change the assembly code of a running process -