Thanks a lot Dan ! I replaced -lcrypto and -lssl in configure with my versions and it worked like a charm !
Thanks again for all the help, appreciate it ! -Rohit On Sat, May 31, 2014 at 5:25 PM, Dan Fandrich <d...@coneharvesters.com> wrote: > On Sat, May 31, 2014 at 01:31:55PM +0530, Rohit Goel wrote: > > I tried the suggested approach. > > It now links to the renamed SSL libraries as well as the default SSL > libraries. > > Is that a direct link or is it linked through another library, such as > libssh2 > or libldap? > > > This is how I ran config > > env PKG_CONFIG_PATH=<myopenssl>/lib/pkgconfig configure CFLAGS="-m64 > -fPIC" > > --with-ssl --enable-static=no > > That ought to work. > > > Result of ldd > > libcrypto.so.6 <- default version of crypto > > libcdscrypto.so.0.9.8 <- my version of crypto > > libk5crypto.so.3 > > libssl.so.6 <- default version of ssl > > libcdsssl.so.0.9.8 <- my version of ssl > > ldd also shows transitive links. objdump -x libcurl.so.4 | grep NEEDED > will show the direct links. > > > When I see config.log, it has > > > > configure:24169: checking for CRYPTO_lock in -lcrypto > > configure:24196: gcc -o conftest -m64 -fPIC -O2 -Wno-system-headers -I > > <myopenssl>/include -L<myopenssl>/lib conftest.c -lcrypto -lcdsssl > > -lcdscrypto -ldl -lldap -lz -lrt >&5 > > > > Please suggest how to fix. > > Ahah, configure has hard-coded -lcrypto for this particular check. That > should > really be rewritten to use 'pkg-config --libs libcrypto' instead. > > >>> Dan > ------------------------------------------------------------------- > List admin: http://cool.haxx.se/list/listinfo/curl-library > Etiquette: http://curl.haxx.se/mail/etiquette.html >
------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html