title: How to fix conflicting library issue while compiling qt on centos 7 x64
body: <p>While trying to do make on small QT program on linux. I am getting warnings as </p>
  
  <pre><code>/usr/bin/ld: warning: libssl.so.10, needed by /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libQt5Network.so, may conflict with libssl.so.1.0.0
  /usr/bin/ld: warning: libcrypto.so.10, needed by /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libQt5Network.so, may conflict with libcrypto.so.1.0.0
  </code></pre>
  
  <p>How can i solve the conflict ?</p>
  
  <p>basically above path </p>
  
  <pre><code>/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/
  </code></pre>
  
  <p>=</p>
  
  <pre><code>/usr/lib64
  </code></pre>
  
  <p>i have centos 7 x64</p>
  
  <pre><code>[root@ ]# yum list qt*
  Loaded plugins: fastestmirror, replace
  Loading mirror speeds from cached hostfile
   * epel: mirror.umd.edu
   * webtatic: us-east.repo.webtatic.com
  Installed Packages
  qt5-qtbase.x86_64           5.6.2-1.el7     @base
  qt5-qtbase-common.noarch    5.6.2-1.el7     @base
  qt5-qtbase-devel.x86_64     5.6.2-1.el7     @base
  qt5-qtbase-gui.x86_64       5.6.2-1.el7     @base
  qt5-rpm-macros.noarch       5.6.2-1.el7     @base
  </code></pre>
  
  <p><code>ldd MyProgram</code> gives</p>
  
  <pre><code>[root@ ]# ldd MyProgram
          linux-vdso.so.1 =&gt;  (0x00007ffe575d9000)
          libssl.so.1.0.0 =&gt; /opt/openssl-1.0.2l/lib/libssl.so.1.0.0 (0x00007f899c9f0000)
          libcrypto.so.1.0.0 =&gt; /opt/openssl-1.0.2l/lib/libcrypto.so.1.0.0 (0x00007f899c59e000)
          libQt5Network.so.5 =&gt; /lib64/libQt5Network.so.5 (0x00007f899c435000)
          libQt5Core.so.5 =&gt; /lib64/libQt5Core.so.5 (0x00007f899bfac000)
          libpthread.so.0 =&gt; /lib64/libpthread.so.0 (0x00007f899bd8f000)
          libstdc++.so.6 =&gt; /lib64/libstdc++.so.6 (0x00007f899ba87000)
          libm.so.6 =&gt; /lib64/libm.so.6 (0x00007f899b785000)
          libgcc_s.so.1 =&gt; /lib64/libgcc_s.so.1 (0x00007f899b56e000)
          libc.so.6 =&gt; /lib64/libc.so.6 (0x00007f899b1ad000)
          libdl.so.2 =&gt; /lib64/libdl.so.2 (0x00007f899afa9000)
          libz.so.1 =&gt; /lib64/libz.so.1 (0x00007f899ad92000)
          libproxy.so.1 =&gt; /lib64/libproxy.so.1 (0x00007f899ab71000)
          libssl.so.10 =&gt; /lib64/libssl.so.10 (0x00007f899a8ff000)
          libcrypto.so.10 =&gt; /lib64/libcrypto.so.10 (0x00007f899a49d000)
          libicui18n.so.50 =&gt; /lib64/libicui18n.so.50 (0x00007f899a09e000)
          libicuuc.so.50 =&gt; /lib64/libicuuc.so.50 (0x00007f8999d25000)
          libicudata.so.50 =&gt; /lib64/libicudata.so.50 (0x00007f8998750000)
          libpcre16.so.0 =&gt; /lib64/libpcre16.so.0 (0x00007f89984f8000)
          libgthread-2.0.so.0 =&gt; /lib64/libgthread-2.0.so.0 (0x00007f89982f6000)
          libglib-2.0.so.0 =&gt; /lib64/libglib-2.0.so.0 (0x00007f8997fbe000)
          librt.so.1 =&gt; /lib64/librt.so.1 (0x00007f8997db6000)
          libsystemd.so.0 =&gt; /lib64/libsystemd.so.0 (0x00007f8997d8e000)
          /lib64/ld-linux-x86-64.so.2 (0x00005594debbe000)
          libmodman.so.1 =&gt; /lib64/libmodman.so.1 (0x00007f8997b85000)
          libgssapi_krb5.so.2 =&gt; /lib64/libgssapi_krb5.so.2 (0x00007f8997937000)
          libkrb5.so.3 =&gt; /lib64/libkrb5.so.3 (0x00007f8997650000)
          libcom_err.so.2 =&gt; /lib64/libcom_err.so.2 (0x00007f899744b000)
          libk5crypto.so.3 =&gt; /lib64/libk5crypto.so.3 (0x00007f8997219000)
          libcap.so.2 =&gt; /lib64/libcap.so.2 (0x00007f8997013000)
          libselinux.so.1 =&gt; /lib64/libselinux.so.1 (0x00007f8996dec000)
          liblzma.so.5 =&gt; /lib64/liblzma.so.5 (0x00007f8996bc6000)
          libgcrypt.so.11 =&gt; /lib64/libgcrypt.so.11 (0x00007f8996944000)
          libgpg-error.so.0 =&gt; /lib64/libgpg-error.so.0 (0x00007f899673f000)
          libresolv.so.2 =&gt; /lib64/libresolv.so.2 (0x00007f8996525000)
          libdw.so.1 =&gt; /lib64/libdw.so.1 (0x00007f89962dc000)
          libkrb5support.so.0 =&gt; /lib64/libkrb5support.so.0 (0x00007f89960cd000)
          libkeyutils.so.1 =&gt; /lib64/libkeyutils.so.1 (0x00007f8995ec9000)
          libattr.so.1 =&gt; /lib64/libattr.so.1 (0x00007f8995cc3000)
          libpcre.so.1 =&gt; /lib64/libpcre.so.1 (0x00007f8995a62000)
          libelf.so.1 =&gt; /lib64/libelf.so.1 (0x00007f8995849000)
          libbz2.so.1 =&gt; /lib64/libbz2.so.1 (0x00007f8995639000)
  </code></pre>
  
  <hr>
  
  <p>edit1:</p>
  
  <pre><code>[root@ lib64]# ls -lah libssl*
  -rwxr-xr-x 1 root root 308K May 30 11:31 libssl3.so
  lrwxrwxrwx 1 root root   16 Sep 19 07:46 libssl.so -&gt; libssl.so.1.0.2k
  lrwxrwxrwx 1 root root   16 Sep 19 07:45 libssl.so.10 -&gt; libssl.so.1.0.2k
  -rwxr-xr-x 1 root root 460K Aug  4 02:41 libssl.so.1.0.2k
  
  
  [root@ lib64]# ls -lah libcrypto*
  lrwxrwxrwx 1 root root   19 Sep 19 07:46 libcrypto.so -&gt; libcrypto.so.1.0.2k
  lrwxrwxrwx 1 root root   19 Sep 19 07:45 libcrypto.so.10 -&gt; libcrypto.so.1.0.2k
  -rwxr-xr-x 1 root root 2.4M Aug  4 02:41 libcrypto.so.1.0.2k
  </code></pre>