[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20140528165302.078c6ff8@nehalam.linuxnetplumber.net>
Date: Wed, 28 May 2014 16:53:02 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: Natanael Copa <ncopa@...inelinux.org>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] iproute2: various header include fixes for compiling
with musl libc
On Tue, 27 May 2014 07:40:10 +0000
Natanael Copa <ncopa@...inelinux.org> wrote:
> We need limits.h for LONG_MIN and LONG_MAX, sys/param.h for MIN and
> sys/select for struct timeval.
>
> This fixes the following compile errors with musl libc:
>
> f_bpf.c: In function 'bpf_parse_opt':
> f_bpf.c:181:12: error: 'LONG_MIN' undeclared (first use in this function)
> if (h == LONG_MIN || h == LONG_MAX) {
> ^
> ...
>
> tc_util.o: In function `print_tcstats2_attr':
> tc_util.c:(.text+0x13fe): undefined reference to `MIN'
> tc_util.c:(.text+0x1465): undefined reference to `MIN'
> tc_util.c:(.text+0x14ce): undefined reference to `MIN'
> tc_util.c:(.text+0x154c): undefined reference to `MIN'
> tc_util.c:(.text+0x160a): undefined reference to `MIN'
> tc_util.o:tc_util.c:(.text+0x174e): more undefined references to `MIN' follow
> ...
>
> tc_stab.o: In function `print_size_table':
> tc_stab.c:(.text+0x40f): undefined reference to `MIN'
> ...
>
> fdb.c:247:30: error: 'ULONG_MAX' undeclared (first use in this function)
> (vni >> 24) || vni == ULONG_MAX)
> ^
>
> lnstat.h:28:17: error: field 'last_read' has incomplete type
> struct timeval last_read; /* last time of read */
> ^
>
> Signed-off-by: Natanael Copa <ncopa@...inelinux.org>
Applied
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists