2002-10-10 04:33:01

by Vikram

[permalink] [raw]
Subject: 2.5.41 : ipv6 compile failure?


tried to compile 2.5.41 with ipv6 support , i get the following build
failure:

<snip>

gcc -Wp,-MD,net/ipv6/.addrconf.o.d -D__KERNEL__ -Iinclude -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i686 -Iarch/i386/mach-generic -nostdinc -iwithprefix include
-DKBUILD_BASENAME=addrconf -c -o net/ipv6/addrconf.o net/ipv6/addrconf.c
net/ipv6/addrconf.c: In function `ipv6_addr_type':
net/ipv6/addrconf.c:155: case label does not reduce to an integer constant
net/ipv6/addrconf.c:159: case label does not reduce to an integer constant
net/ipv6/addrconf.c:163: case label does not reduce to an integer constant
net/ipv6/addrconf.c:156: warning: unreachable code at beginning of switch
statement
make[2]: *** [net/ipv6/addrconf.o] Error 1
make[1]: *** [net/ipv6] Error 2
make: *** [net] Error 2

</snip>

apologies if this is redundant.



Vikram



2002-10-10 05:15:09

by Arnaldo Carvalho de Melo

[permalink] [raw]
Subject: Re: 2.5.41 : ipv6 compile failure?

Em Wed, Oct 09, 2002 at 09:38:38PM -0700, Vikram escreveu:
>
> tried to compile 2.5.41 with ipv6 support , i get the following build
> failure:

This is fixed already in DaveM's tree and I believe in Linus's too, so
wait for 2.5.42.

- Arnaldo

2002-10-10 05:22:09

by David Miller

[permalink] [raw]
Subject: Re: 2.5.41 : ipv6 compile failure?

From: Vikram <[email protected]>
Date: Wed, 9 Oct 2002 21:38:38 -0700 (PDT)

tried to compile 2.5.41 with ipv6 support , i get the following build
failure:
...
apologies if this is redundant.

Known failure fixed in Linus's tree already.

Change the __constant_hto*() to plain hto*() in the case
statements on the lines the compiler complains about.