cURL / Mailing Lists / curl-library / Single Mail

curl-library

problem starting metalink-aware curl

From: Guenter <lists_at_gknw.net>
Date: Tue, 11 Sep 2012 13:25:29 +0200

Hi all,
just tried to build curl with metalink support with libmetalink 0.1.2,
but have an issue at runtime that libmetalink.so.3 cant be found ...

libmetalink is installed at default location /usr/local and there found
by configure:
./configure --disable-shared --with-libmetalink

configure:23306: checking for libmetalink options with pkg-config
configure:23320: result: found
configure:23484: checking if libmetalink is recent enough
configure:23503: gcc -o conftest -g0 -O2 -Wno-system-headers
-I/usr/local/include -L/usr/local/lib64 conftest.c -lmetalink
   -lssl -lcrypto -llber -lldap -lrt -lssl -lcrypto -ldl -lz -lz >&5
configure:23503: $? = 0
configure:23505: result: yes (0.1.2)

./src/Makefile also looks good:
LIBCURL_LIBS = -lidn -lssh2 -lssl -lcrypto -llber -lldap -lrt -lssl
-lcrypto -ldl -lz -lz
LIBMETALINK_CFLAGS = -I/usr/local/include
LIBMETALINK_LDFLAGS = -L/usr/local/lib64
LIBMETALINK_LIBS = -lmetalink
...
curl_LDADD = $(top_builddir)/lib/libcurl.la -lrt -lz -lmetalink
curl_LDFLAGS = -L/usr/local/lib64
curl_DEPENDENCIES = $(top_builddir)/lib/libcurl.la

nevertheless libtool uses the full path to libmetalink.so instead of
-lmetalink when linkung curl:

/bin/sh ../libtool --tag=CC --mode=link gcc -g0 -O2
-Wno-system-headers -I/usr/local/include -L/usr/local/lib64 -o
curl hugehelp.otool_binmode.o tool_bname.o tool_cb_dbg.o tool_cb_hdr.o
tool_cb_prg.o tool_cb_rea.o tool_cb_see.o tool_cb_wrt.o tool_cfgable.o
tool_converto tool_dirhie.o tool_doswin.o tool_easysrc.o
tool_formparse.o tool_getparam.o tool_getpass.o tool_help.o
tool_helpers.o tool_homedir.o toollibinfo.o tool_main.o tool_metalink.o
tool_mfiles.o tool_msgs.o tool_operate.o tool_operhlp.o tool_panykey.o
tool_paramhlp.o tool_parsecfg. tool_setopt.o tool_sleep.o tool_urlglob.o
tool_util.o tool_vms.o tool_writeenv.o tool_writeout.o tool_xattr.o
strtoofft.o strdup.o rawstr. nonblock.o ../lib/libcurl.la -lrt -lz
-lmetalink
libtool: link: gcc -g0 -O2 -Wno-system-headers -I/usr/local/include -o
curl hugehelp.o tool_binmode.o tool_bname.o tool_cb_dbg.o tool_cb_hd.o
tool_cb_prg.o tool_cb_rea.o tool_cb_see.o tool_cb_wrt.o tool_cfgable.o
tool_convert.o tool_dirhie.o tool_doswin.o tool_easysrc.o
tool_fomparse.o tool_getparam.o tool_getpass.o tool_help.o
tool_helpers.o tool_homedir.o tool_libinfo.o tool_main.o tool_metalink.o
tool_mfiles.o ool_msgs.o tool_operate.o tool_operhlp.o tool_panykey.o
tool_paramhlp.o tool_parsecfg.o tool_setopt.o tool_sleep.o
tool_urlglob.o tool_utilo tool_vms.o tool_writeenv.o tool_writeout.o
tool_xattr.o strtoofft.o strdup.o rawstr.o nonblock.o
-L/usr/local/lib64 ../lib/.libs/libcurla -lidn -lssh2 -llber -lldap
-lssl -lcrypto -ldl -lrt -lz /usr/local/lib64/libmetalink.so -lexpat

anone an idea what goes wrong here?
This happens on same box where I did before build and ran successfully a
curl linked with libmetalink-0.1.0-dev:
# ldd ~/bin/curl
         linux-vdso.so.1 => (0x00007fffe07ff000)
         libidn.so.11 => /usr/lib64/libidn.so.11 (0x00007f9212006000)
         libssh2.so.1 => /usr/lib64/libssh2.so.1 (0x00007f9211ddd000)
         liblber-2.4.so.2 => /usr/lib64/liblber-2.4.so.2
(0x00007f9211bce000)
         libldap-2.4.so.2 => /usr/lib64/libldap-2.4.so.2
(0x00007f9211985000)
         libssl.so.1.0.0 => /lib64/libssl.so.1.0.0 (0x00007f9211729000)
         libcrypto.so.1.0.0 => /lib64/libcrypto.so.1.0.0
(0x00007f9211378000)
         libdl.so.2 => /lib64/libdl.so.2 (0x00007f9211174000)
         librt.so.1 => /lib64/librt.so.1 (0x00007f9210f6c000)
         libz.so.1 => /lib64/libz.so.1 (0x00007f9210d56000)
         libmetalink.so.1 => /usr/local/lib64/libmetalink.so.1
(0x00007f9210b46000)
         libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007f921091b000)
         libc.so.6 => /lib64/libc.so.6 (0x00007f921058b000)
         libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f9210374000)
         libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x00007f9210159000)
         /lib64/ld-linux-x86-64.so.2 (0x00007f9212239000)
         libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f920ff3c000)

# ldd ./src/curl
         linux-vdso.so.1 => (0x00007fff585ff000)
         libidn.so.11 => /usr/lib64/libidn.so.11 (0x00007fa15b24e000)
         libssh2.so.1 => /usr/lib64/libssh2.so.1 (0x00007fa15b025000)
         liblber-2.4.so.2 => /usr/lib64/liblber-2.4.so.2
(0x00007fa15ae16000)
         libldap-2.4.so.2 => /usr/lib64/libldap-2.4.so.2
(0x00007fa15abcd000)
         libssl.so.1.0.0 => /lib64/libssl.so.1.0.0 (0x00007fa15a971000)
         libcrypto.so.1.0.0 => /lib64/libcrypto.so.1.0.0
(0x00007fa15a5c0000)
         libdl.so.2 => /lib64/libdl.so.2 (0x00007fa15a3bc000)
         librt.so.1 => /lib64/librt.so.1 (0x00007fa15a1b4000)
         libz.so.1 => /lib64/libz.so.1 (0x00007fa159f9e000)
         libmetalink.so.3 => not found
         libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007fa159d73000)
         libc.so.6 => /lib64/libc.so.6 (0x00007fa1599e3000)
         libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fa1597cc000)
         libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x00007fa1595b1000)
         /lib64/ld-linux-x86-64.so.2 (0x00007fa15b481000)
         libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fa159394000)

Gün.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-09-11