[lxc-devel] [PATCH v2] ensure clock_gettime symbol is found

Stéphane Graber stgraber at ubuntu.com
Fri Feb 22 16:01:28 UTC 2013


On 02/22/2013 10:55 AM, Dwight Engen wrote:
> got link error liblxc.so: undefined reference to `clock_gettime'
> clock_gettime is used by lxclock.c and is in librt, or bionic libc.
> 
> Signed-off-by: Dwight Engen <dwight.engen at oracle.com>

Acked-by: Stéphane Graber <stgraber at ubuntu.com>

And pushed to staging. Thanks.

> ---
>  configure.ac | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/configure.ac b/configure.ac
> index a133d16..88959ff 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -289,6 +289,7 @@ AC_CHECK_FUNCS([fgetln],
>  
>  # Check for some libraries
>  AC_SEARCH_LIBS(sem_open, [rt pthread])
> +AC_SEARCH_LIBS(clock_gettime, [rt])
>  
>  # Check for some standard binaries
>  AC_PROG_GCC_TRADITIONAL
> 


-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20130222/c3e158f8/attachment.pgp>


More information about the lxc-devel mailing list