Ld magically overrides statically linked symbols
问题 For a few days we are dealing with very strange problem. I can't understand how it even happens - when a third-party (MATLAB) program uses our shared library, it somehow overrides some of our symbols (boost, to be precise) with it's own. Those symbols are statically linked and (!!) local. Here is the deal - we use boost 1.47, MATLAB has boost 1.40. Currently, library call segfaults on a call from OUR library to their boost (regex). So, here is the magic: We have no library dependencies, ldd: