cURL / Mailing Lists / curl-library / Single Mail


RPATH incorrect with custom SSL builds and 7.19.4

From: Quanah Gibson-Mount <>
Date: Wed, 22 Apr 2009 14:28:41 -0700

After building Curl 7.19.4 and fixing the configure issue around using a
custom openssl build, I found that the resulting binary was not executable.
This is because the compiled in rpath is missing the path to the custom
build of OpenSSL:

[build_at_build01 .libs]$ readelf -d curl
 0x0000000f (RPATH) Library rpath:

The RPATH should also have included /opt/zimbra/openssl-0.9.8k/lib as it
did in previous releases.

The end result is:

[zimbra_at_freelancer bin]$ ./curl
./curl: error while loading shared libraries: cannot open
shared object file: No such file or directory

Even though the Heimdal libraries (since they are correctly built) find
their OpenSSL lib dependencies just fine.

[zimbra_at_freelancer bin]$ ldd curl => /opt/zimbra/curl-7.19.4/lib/
(0x00002b6d55c1a000) => /usr/lib64/ (0x00000032b3e00000) => not found => /lib64/ (0x00000032b5200000) => /opt/zimbra/heimdal-1.2.1/lib/
(0x00002b6d55e70000) => /opt/zimbra/heimdal-1.2.1/lib/
(0x00002b6d5609f000) => /opt/zimbra/heimdal-1.2.1/lib/
(0x00002b6d562a5000) => /opt/zimbra/heimdal-1.2.1/lib/
(0x00002b6d56571000) => /opt/zimbra/heimdal-1.2.1/lib/
(0x00002b6d567b5000) => /lib64/ (0x00000032b3a00000) => /opt/zimbra/heimdal-1.2.1/lib/
(0x00002b6d569dd000) => /opt/zimbra/heimdal-1.2.1/lib/
(0x00002b6d56c61000) => not found => /opt/zimbra/heimdal-1.2.1/lib/
(0x00002b6d56e65000) => /lib64/ (0x00000032b5e00000) => /lib64/ (0x00000032b7200000) => /usr/lib64/ (0x00000032b4a00000) => /lib64/ (0x00000032b4200000) => /lib64/ (0x00000032b3600000) => /opt/zimbra/openssl-0.9.8k/lib/
(0x00002b6d5707a000) =>
/opt/zimbra/openssl-0.9.8k/lib/ (0x00002b6d572c6000)
        /lib64/ (0x00000032b3200000)


Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
Zimbra ::  the leader in open source messaging and collaboration
Received on 2009-04-22