[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CABMX=WyV7t-RcdM103z9sqvvicxvnTtX-OW_OyL9MA5j_4ho1w@mail.gmail.com>
Date: Wed, 27 Feb 2013 17:27:30 +0100
From: nello martuscielli <ppc.addon@...il.com>
To: Stephen Hemminger <stephen@...workplumber.org>
Cc: netdev@...r.kernel.org
Subject: Re: iproute-3.8.0 build error on Linux ppc64
On Wed, Feb 27, 2013 at 4:28 PM, Stephen Hemminger
<stephen@...workplumber.org> wrote:
__omissis
>> >
>> > gcc -Wall -Wstrict-prototypes -Werror -Wmissing-prototypes
>> > -Wmissing-declarations -Wold-style-definition -O2 -I../include
>> > -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\"
>> > -D_GNU_SOURCE -c -o ipntable.o ipntable.c
>> > cc1: warnings being treated as errors
>> > ipntable.c: In function 'print_ntable':
>> > ipntable.c:435:3: error: format '%llu' expects type 'long long
>
> Pushed up a fix for this using casts.
> Would rather have used inttypes.h but that was incompatible with kernel's __u64.
thanks a lot, this fix ipntable.c .
Now I got this same type build error on tcp_metrics.c
[...]
gcc -Wall -Wstrict-prototypes -Werror -Wmissing-prototypes
-Wmissing-declarations -Wold-style-definition -O2 -I../include
-DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\"
-D_GNU_SOURCE -c -o tcp_metrics.o tcp_metrics.c
cc1: warnings being treated as errors
tcp_metrics.c: In function 'process_msg':
tcp_metrics.c:172:4: error: format '%llu' expects type 'long long
unsigned int', but argument 3 has type '__u64'
tcp_metrics.c:172:4: error: format '%03llu' expects type 'long long
unsigned int', but argument 4 has type '__u64'
tcp_metrics.c:232:4: error: format '%llu' expects type 'long long
unsigned int', but argument 4 has type '__u64'
tcp_metrics.c:232:4: error: format '%03llu' expects type 'long long
unsigned int', but argument 5 has type '__u64'
make[1]: *** [tcp_metrics.o] Error 1
make[1]: Leaving directory `/root/iproute2-3.8.0/ip'
make: *** [all] Error 2
Nello
--
LinuxPPC64 user.
--
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