Re: [PATCH iproute2 v3 1/1] build: Fix link errors on some systems

2021-01-12 Thread Roi Dayan
On 2021-01-11 6:51 PM, Petr Machata wrote: Roi Dayan writes: diff --git a/lib/json_print_math.c b/lib/json_print_math.c new file mode 100644 index ..3d560defcd3e --- /dev/null +++ b/lib/json_print_math.c @@ -0,0 +1,46 @@ +/* + * json_print_math.c "print regular or jso

Re: [PATCH iproute2 v3 1/1] build: Fix link errors on some systems

2021-01-11 Thread Petr Machata
Roi Dayan writes: > diff --git a/lib/json_print_math.c b/lib/json_print_math.c > new file mode 100644 > index ..3d560defcd3e > --- /dev/null > +++ b/lib/json_print_math.c > @@ -0,0 +1,46 @@ > +/* > + * json_print_math.c "print regular or json output, based on > json_writer"

[PATCH iproute2 v3 1/1] build: Fix link errors on some systems

2021-01-09 Thread Roi Dayan
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