A few months ago, I built a C software that used libxml2 as a shared library, on a debian. I created a .deb file for installation of the software, and Ubuntu users could make it run.
Today, the latest version of Ubuntu has a greater version of libxml2. So now, the software doesn't run, it asks for a previous version of libxml2 and the only way to make it work is building the software while linking on the new version of libxml2.
So my question is, is it possible to link against a shared library without requiring a specific version (taking the risk the software could not work on some version) ?
If it's not, then what is the real advantage of linking with a shared library if you can't deploy your software on any Linux distribution ?
Thanks for help.
Best regards, Vincent.