Libraries
Cheat sheet · https://pcornel.dk/topic.php?topic=2908
Answer
Libraries are reusable code: static libraries (.a) built into programs and shared libraries (.so) loaded at runtime. Development packages add headers (-dev, -devel).
Remember
Runtime needs the .so; building needs headers too. Library versions follow sonames (libfoo.so.1) — an incompatible upgrade breaks programs linked to the old soname.
First checks
git status / git log --oneline -5— repository stateldd <binary>— shared librariesldconfig -p | grep <lib>— libraries in the linker cachemake --version; gcc --version— build tools
Verify in this order
program linked against a library soname → library installed → loaded at runtime
Where it usually breaks
First mismatch in persistent intent → provider/parser/generator → kernel/userspace runtime → dependency/security context → logs/counters → consumer-visible read-back; preserve identity/native diagnostic/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2908