buildkernel issue with ip_carp.c w/ device carp

eculp at bafirst.com eculp at bafirst.com
Mon Nov 14 05:53:01 PST 2005


Quoting Ruslan Ermilov <ru at FreeBSD.org>:

> On Sun, Nov 13, 2005 at 06:44:29AM -0600, eculp at bafirst.com wrote:
>> In today's current I am having an issue on all my test machines
>> compiling the kernel with "device carp"   Compilation breaks at
>> ip_carp.c  Removing device carp everything compiles fine.
>>
>>   5652 cc -c -O2 -pipe -fno-strict-aliasing  -Wall -Wredundant-decls
>> -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes
>> -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99
>> -nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL
>> -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common
>> -finline-limit=8000 --param inline-unit-growth=100 --param
>> large-function-growth=1000  -mno-align-long-strings
>> -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
>> -mno-sse3 -ffreestanding -Werror  /usr/src/sys/netinet/ip_carp.c
>>   5653 /usr/src/sys/netinet/ip_carp.c: In function `carp_send_arp':
>>   5654 /usr/src/sys/netinet/ip_carp.c:1053: warning: implicit
>> declaration of function `LLADDR'
>>   5655 /usr/src/sys/netinet/ip_carp.c:1053: warning: nested extern
>> declaration of `LLADDR'
>>   5656 /usr/src/sys/netinet/ip_carp.c:1053: warning: passing arg 3 of
>> `arp_ifinit2' makes pointer from integer without a cast
>>   5657 /usr/src/sys/netinet/ip_carp.c: In function `carp_iamatch':
>>   5658 /usr/src/sys/netinet/ip_carp.c:1148: warning: nested extern
>> declaration of `LLADDR'
>>   5659 /usr/src/sys/netinet/ip_carp.c:1053: warning: redundant
>> redeclaration of 'LLADDR'
>>   5660 /usr/src/sys/netinet/ip_carp.c:1053: warning: previous implicit
>> declaration of 'LLADDR' was here
>>   5661 /usr/src/sys/netinet/ip_carp.c:1148: warning: assignment makes
>> pointer from integer without a cast
>>   5662 /usr/src/sys/netinet/ip_carp.c:1166: warning: nested extern
>> declaration of `LLADDR'
>>   5663 /usr/src/sys/netinet/ip_carp.c:1053: warning: redundant
>> redeclaration of 'LLADDR'
>>   5664 /usr/src/sys/netinet/ip_carp.c:1053: warning: previous implicit
>> declaration of 'LLADDR' was here
>>   5665 /usr/src/sys/netinet/ip_carp.c:1166: warning: assignment makes
>> pointer from integer without a cast
>>   5666 /usr/src/sys/netinet/ip_carp.c: In function `carp_forus':
>>   5667 /usr/src/sys/netinet/ip_carp.c:1254: warning: nested extern
>> declaration of `LLADDR'
>>   5668 /usr/src/sys/netinet/ip_carp.c:1053: warning: redundant
>> redeclaration of 'LLADDR'
>>   5669 /usr/src/sys/netinet/ip_carp.c:1053: warning: previous implicit
>> declaration of 'LLADDR' was here
>>   5670 /usr/src/sys/netinet/ip_carp.c:1254: warning: passing arg 2 of
>> `bcmp' makes pointer from integer without a cast
>>   5671 /usr/src/sys/netinet/ip_carp.c: In function `carp_ioctl':
>>   5672 /usr/src/sys/netinet/ip_carp.c:1866: warning: nested extern
>> declaration of `LLADDR'
>>   5673 /usr/src/sys/netinet/ip_carp.c:1053: warning: redundant
>> redeclaration of 'LLADDR'
>>   5674 /usr/src/sys/netinet/ip_carp.c:1053: warning: previous implicit
>> declaration of 'LLADDR' was here
>>   5675 /usr/src/sys/netinet/ip_carp.c:1866: error: subscripted value
>> is neither array nor pointer
>>   5676 /usr/src/sys/netinet/ip_carp.c:1867: error: subscripted value
>> is neither array nor pointer
>>   5677 /usr/src/sys/netinet/ip_carp.c:1868: error: subscripted value
>> is neither array nor pointer
>>   5678 /usr/src/sys/netinet/ip_carp.c:1869: error: subscripted value
>> is neither array nor pointer
>>   5679 /usr/src/sys/netinet/ip_carp.c:1870: error: subscripted value
>> is neither array nor pointer
>>   5680 /usr/src/sys/netinet/ip_carp.c:1871: error: subscripted value
>> is neither array nor pointer
>>   5681 *** Error code 1
>>
> Should be fixed in sys/netinet/ip_carp.c,v 1.37.
>
Hi Ruslan,

Thanks a lot.  I haven't built a new kernel yet becasue it seems that 
my first buildworld this morning didn't make it through and cvsuped 
again and am waiting, so far so good.  Thanks again and have a great 
week,

ed

> Cheers,
> --
> Ruslan Ermilov
> ru at FreeBSD.org
> FreeBSD committer
>





More information about the freebsd-current mailing list