Subject: Re: undefined reference to `clock_gettime' (again)

Re: undefined reference to `clock_gettime' (again)

From: Bram Matthys (Syzop) <syzop_at_vulnscan.org>
Date: Sun, 14 Dec 2008 15:40:18 +0100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Daniel Stenberg wrote:
> On Sun, 14 Dec 2008, Bram Matthys (Syzop) wrote:
>
>> I've already made the ircd use pkg-config to grab the libs, but it
>> seems c-ares doesn't provide them all, so it's not of much use then:
>>
>> syzop_at_vulnscan:~/Unreal3.2/extras/c-ares-1.6.0$ pkg-config --libs
>
> Isn't --static supposed to be used too if you want the required libs for
> static linking? -lrt is mention in the "Libs.private" section which
> according to the pkg-config man page I read means:
>
> "This line should list any private libraries in use. Private libraries
> are libraries which are not exposed through your library, but are
> needed in
> the case of static linking. "

Ah, thanks. I did try --static, but not --static --libs, which did the trick
indeed :).

$ pkg-config --static --libs libcares.pc
- -L/home/syzop/Unreal3.2/extras/c-ares/lib -lcares -lrt

Thanks again,

        Bram.

- --
Bram Matthys
Software developer/IT consultant syzop_at_vulnscan.org
PGP key: www.vulnscan.org/pubkey.asc
PGP fp: 8DD4 437E 9BA8 09AA 0A8D 1811 E1C3 D65F E6ED 2AA2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)

iD8DBQFJRRrS46ioc5305a8RAvrnAKCGtlmRpHYJ7/fNEA47kqPXw68xZQCeJWCB
WNZJSU5JxjM0EFvrRikl2Fw=
=k7yD
-----END PGP SIGNATURE-----
Received on 2008-12-14