[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <c916c62c-c67e-bfcc-8e42-bd7bc0e8c145@nvidia.com>
Date: Mon, 22 Feb 2021 12:39:03 +0200
From: Roi Dayan <roid@...dia.com>
To: Petr Machata <petrm@...dia.com>
CC: <netdev@...r.kernel.org>, David Ahern <dsahern@...il.com>,
"Stephen Hemminger" <stephen@...workplumber.org>
Subject: Re: [PATCH iproute2 v4 1/1] build: Fix link errors on some systems
On 2021-02-22 12:36 PM, Roi Dayan wrote:
>
>
> On 2021-01-12 2:21 PM, Petr Machata wrote:
>>
>> Roi Dayan <roid@...dia.com> writes:
>>
>>> Since moving get_rate() and get_size() from tc to lib, on some
>>> systems we fail to link because of missing math lib.
>>> Move the functions that require math lib to their own c file
>>> and add -lm to dcb that now use those functions.
>>>
>>> ../lib/libutil.a(utils.o): In function `get_rate':
>>> utils.c:(.text+0x10dc): undefined reference to `floor'
>>> ../lib/libutil.a(utils.o): In function `get_size':
>>> utils.c:(.text+0x1394): undefined reference to `floor'
>>> ../lib/libutil.a(json_print.o): In function `sprint_size':
>>> json_print.c:(.text+0x14c0): undefined reference to `rint'
>>> json_print.c:(.text+0x14f4): undefined reference to `rint'
>>> json_print.c:(.text+0x157c): undefined reference to `rint'
>>>
>>> Fixes: f3be0e6366ac ("lib: Move get_rate(), get_rate64() from tc here")
>>> Fixes: 44396bdfcc0a ("lib: Move get_size() from tc here")
>>> Fixes: adbe5de96662 ("lib: Move sprint_size() from tc here, add
>>> print_size()")
>>>
>>> Signed-off-by: Roi Dayan <roid@...dia.com>
>>
>> Looking good:
>>
>> $ ldd ip/ip | grep libm.so
>> $ ldd dcb/dcb | grep libm.so
>> libm.so.6 => /lib64/libm.so.6 (0x00007f204d0c2000)
>>
>> Reviewed-by: Petr Machata <petrm@...dia.com>
>> Tested-by: Petr Machata <petrm@...dia.com>
>>
>
> Hi,
>
> Pinging about this commit. I noticed it was not taken.
> anything you want me to update? push again?
>
> Thanks,
> Roi
sorry, my mistake. wrong git clone :)
Powered by blists - more mailing lists