Subject: Re: carp_stats in netstat -- INET6 ?
To: Rui Paulo <rpaulo@fnop.net>
From: Liam J. Foy <liamfoy@sepulcrum.org>
List: current-users
Date: 05/23/2006 16:50:28
On 23 May 2006, at 15:39, Rui Paulo wrote:
> On 2006.05.23 08:45:14 +0100, Iain Hibbert wrote:
>> Hi,
>> CVS update last night, build failed.
>>
>> # compile netstat/inet.o
>> /home/tools/bin/i386--netbsdelf-gcc -O2 -Wall -Wstrict-prototypes
>> -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-
>> traditional
>> -Werror -DIPSEC -nostdinc -isystem /home/obj/destdir.i386/usr/
>> include
>> -c /home/plunky/src/usr.bin/netstat/inet.c
>> /home/plunky/src/usr.bin/netstat/inet.c:639: warning: no previous
>> prototype for `carp_stats'
>>
>> *** Failed target: inet.o
>>
>> which seems to be because carp_stats() is prototyped inside #ifdef
>> INET6
>> but defined in full view.. patch attached seems to work (I dont
>> think
>> CARP is IPv6 only?)
>
> You are correct, I applied your patch.
> Thanks.
Thanks folks.
---
Liam J. Foy
<liamjfoy@netbsd.org>
<liamfoy@sepulcrum.org>
BSDPortal.org