title: Linking to wrong library version in a C++ application
body: <p>I'm troubleshooting a C++ binary on RHEL/CentOS 5, which has problems with the openssl shared libraries. I don't do much C/C++ programming, and I'm having trouble finding the root issue.</p>
  
  <p>What seems to be going wrong is that the application is linking to specific versions of libcrypto and libssl (0.9.8), instead of the symlinked paths of <code>/lib/libcrypto.so.6</code> and <code>/lib/libssl.so.6</code>. Since the openssl libs have been updated since this was compiled, it's now broken. </p>
  
  <p><code>ldd</code> shows the following 2 problems with the binary:</p>
  
  <pre><code>libcrypto.so.0.9.8 =&gt; not found
  libssl.so.0.9.8 =&gt; not found
  </code></pre>
  
  <p>[EDIT] I obtained the source, and it built correctly. I'm going to have to go with the simplest possible explanation, the build machine was misconfigured with non-standard libraries, and the makefiles are fine.</p>