cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH 8/8] unit1394.c: plug the curl tool unit test in

From: Nick Zitzmann <nick_at_chronosnet.com>
Date: Mon, 6 May 2013 14:49:58 -0600

On May 3, 2013, at 3:32 PM, Kamil Dudka <kdudka_at_redhat.com> wrote:

> diff --git a/tests/unit/unit1394.c b/tests/unit/unit1394.c
> index 11a47b9..d25e4f5 100644
> --- a/tests/unit/unit1394.c
> +++ b/tests/unit/unit1394.c

This patch breaks making tests with Metalink support enabled. I'm now getting this when running "make test":

===
libtool: link: cc -Qunused-arguments -g -O0 -pedantic -Wall -Wextra -Wpointer-arith -Wwrite-strings -Wshadow -Winline -Wnested-externs -Wmissing-declarations -Wmissing-prototypes -Wno-long-long -Wfloat-equal -Wno-multichar -Wsign-compare -Wundef -Wno-format-nonliteral -Wendif-labels -Wstrict-prototypes -Wdeclaration-after-statement -Wcast-align -Wno-system-headers -Wshorten-64-to-32 -Wunused -o unit1394 unit1394-unit1394.o unit1394-first.o ../../src/.libs/libcurltool.a ../../lib/.libs/libcurlu.a -lldap -lz -framework Security -framework CoreFoundation
Undefined symbols for architecture x86_64:
  "_metalink_get_version", referenced from:
      _getparameter in libcurltool.a(libcurltool_la-tool_getparam.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
===

It appears the problem is -lldap and -lz are there as expected, but for some reason -lmetalink isn't being passed to the linker. Yes, I did generate a new configure script prior to building.

Nick Zitzmann
<http://www.chronosnet.com/>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-05-06