[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 5 of 5] libxl: fix link issue on uclibc when using yajl



2011/12/19 Ian Campbell <Ian.Campbell@xxxxxxxxxx>:
> On Sun, 2011-12-18 at 12:48 +0000, Roger Pau Monne wrote:
>> # HG changeset patch
>> # User Roger Pau Monne <roger.pau@xxxxxxxxxxxxx>
>> # Date 1324171782 -3600
>> # Node ID 6780cbdfa64b148b0c372a4f82448f707ad2be59
>> # Parent Â7bcb3a61ce8846f8e7834d14c460c0f4b4869222
>> libxl: fix link issue on uclibc when using yajl
>>
>> yajl makes use of the isnan isinf functions. On Glibc, these are
>> provided by libc, but on uClibc you need to link with -lm (like the
>> spec says), so ensure we do so.
>
> If libyajl needs those symbols then it should link against libm itself
> and not rely ion the application to do so. There should be no need for
> an application using liyajl to do this itself when linking dynamically.

I've compiled yajl with -lm, but the same error comes up when
compiling libxl if -lm is not added also. Will look into it deeply.

> I suspect this is a bug in libyajl.

Probably

> (if adding -lm were correct then it would be better to just do it
> unconditionally)
>
> Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.