Message ID | 20210303204850.1556365-1-rsalvaterra@gmail.com |
---|---|
State | Not Applicable |
Headers | show |
Series | iproute2: fix build with a newer toolchain | expand |
Reviewed-by: Philip Prindeville <philipp@redfish-solutions.com> > On Mar 3, 2021, at 1:48 PM, Rui Salvaterra <rsalvaterra@gmail.com> wrote: > > GCC 10.2.0 complains loudly of missing limits.h. Add a patch to fix this. > > Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com> > --- > .../050-fix-build-include-limits.patch | 23 +++++++++++++++++++ > 1 file changed, 23 insertions(+) > create mode 100644 package/network/utils/iproute2/patches/050-fix-build-include-limits.patch > > diff --git a/package/network/utils/iproute2/patches/050-fix-build-include-limits.patch b/package/network/utils/iproute2/patches/050-fix-build-include-limits.patch > new file mode 100644 > index 0000000000..df7d9a0fb7 > --- /dev/null > +++ b/package/network/utils/iproute2/patches/050-fix-build-include-limits.patch > @@ -0,0 +1,23 @@ > +--- a/lib/bpf_glue.c > ++++ b/lib/bpf_glue.c > +@@ -4,6 +4,9 @@ > + * Authors: Hangbin Liu <haliu@redhat.com> > + * > + */ > ++ > ++#include <limits.h> > ++ > + #include "bpf_util.h" > + #ifdef HAVE_LIBBPF > + #include <bpf/bpf.h> > +--- a/lib/bpf_libbpf.c > ++++ b/lib/bpf_libbpf.c > +@@ -5,6 +5,8 @@ > + * > + */ > + > ++#include <limits.h> > ++ > + #include <stdio.h> > + #include <stdlib.h> > + #include <unistd.h> > -- > 2.30.1 > > > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Hi, On Wed, 3 Mar 2021 at 20:48, Rui Salvaterra <rsalvaterra@gmail.com> wrote: > > GCC 10.2.0 complains loudly of missing limits.h. Add a patch to fix this. > > Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com> As a side note, I tried building from a pristine master today and tc *always* fails to build for me, being a -j n or at -j 1 (that should exclude possible race conditions). It's not possible I'm the only one seeing this. :/ Cheers, Rui
diff --git a/package/network/utils/iproute2/patches/050-fix-build-include-limits.patch b/package/network/utils/iproute2/patches/050-fix-build-include-limits.patch new file mode 100644 index 0000000000..df7d9a0fb7 --- /dev/null +++ b/package/network/utils/iproute2/patches/050-fix-build-include-limits.patch @@ -0,0 +1,23 @@ +--- a/lib/bpf_glue.c ++++ b/lib/bpf_glue.c +@@ -4,6 +4,9 @@ + * Authors: Hangbin Liu <haliu@redhat.com> + * + */ ++ ++#include <limits.h> ++ + #include "bpf_util.h" + #ifdef HAVE_LIBBPF + #include <bpf/bpf.h> +--- a/lib/bpf_libbpf.c ++++ b/lib/bpf_libbpf.c +@@ -5,6 +5,8 @@ + * + */ + ++#include <limits.h> ++ + #include <stdio.h> + #include <stdlib.h> + #include <unistd.h>
GCC 10.2.0 complains loudly of missing limits.h. Add a patch to fix this. Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com> --- .../050-fix-build-include-limits.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 package/network/utils/iproute2/patches/050-fix-build-include-limits.patch