curl-users
Re: dependency issue with libcurl.so.3 vs libcurl.so.4
Date: Tue, 4 Jun 2013 12:53:09 +0200
On Tue, Jun 04, 2013 at 10:09:30AM +0000, Gopikrishnan Balasubramanian -X (gopbalas - HCL TECHNOLOGIES LIMITED at Cisco) wrote:
> bxb-cds-005:26> curl-config --libs
> -L/usr/cisco/packages/curl/curl-7.19.2/lib -lcurl
This is wrong. curl-config delivered with RHEL-6 does not point to
/usr/cisco/packages/curl/curl-7.19.2/lib. Your curl-config as well as
/usr/cisco/packages/curl/curl-7.19.2/lib come from your local curl build
and infect building your application.
In other words you do not compile and link your application against the system
libcurl.
> bxb-cds-005:27> pkg-config --libs libcurl
> -L/usr/kerberos/lib64 -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz
>
And this is result of system pkg-config libcurl module where the
/usr/cisco/packages/curl/curl-7.19.2/lib is missing.
> [root_at_frodo-iptv vqe]# ldd -v /opt/vqes/bin/vqes_cp
> linux-gate.so.1 => (0xffffe000)
> libpthread.so.0 => /lib/libpthread.so.0 (0x00b7c000)
> libm.so.6 => /lib/libm.so.6 (0x00b53000)
> libssl.so.6 => /lib/libssl.so.6 (0xf7f9e000)
> libcap.so.1 => /lib/libcap.so.1 (0xf7f9a000)
> libc.so.6 => /lib/libc.so.6 (0x00a0b000)
> libcrypto.so.6 => /lib/libcrypto.so.6 (0xf7e59000)
> /lib/ld-linux.so.2 (0x009ee000)
> libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0xf7e2b000)
> libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0xf7d98000)
> libcom_err.so.2 => /lib/libcom_err.so.2 (0xf7d95000)
> libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0xf7d6f000)
> libresolv.so.2 => /lib/libresolv.so.2 (0xf7d5c000)
> libdl.so.2 => /lib/libdl.so.2 (0x00b4d000)
> libz.so.1 => /usr/lib/libz.so.1 (0x00248000)
> libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0xf7d52000)
> libkeyutils.so.1 => /lib/libkeyutils.so.1 (0xf7d4f000)
> libselinux.so.1 => /lib/libselinux.so.1 (0xf7d38000)
> libsepol.so.1 => /lib/libsepol.so.1 (0xf7cf2000)
>
The /opt/vqes/bin/vqes_cp does not use dynamic curl library, so the error you
talk about cannot come from this executable.
-- Petr
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
- application/pgp-signature attachment: stored