[U-Boot-Users] Re: [patch #9/11] VLAN/CDP networking support.

Masami Komiya mkomiya at sonare.it
Sat Apr 17 07:37:39 CEST 2004

Dear Pantelis,

net/net.c can't be compiled with my poor mipsel-linux-gcc 2.96.
The message is :
mipsel-linux-gcc -g  -Os   -D__KERNEL__ -DTEXT_BASE=0xBFC00000 
-I/home/mkomiya/u-boot.mk/include -fno-builtin -ffreestanding -nostdinc -isystem 
/usr/local/lib/gcc-lib/mipsel-linux/2.96-sdelinuxmips-030324/include -pipe  -DCONFIG_MIPS 
-D__MIPS__ -mcpu=r4600 -EL -mabicalls -Wall -Wstrict-prototypes -c -o net.o net.c
net.c:135: initializer element is not constant
net.c:136: initializer element is not constant

It seems to be falled in the loop by
ushort NetOurVLAN = ntohs(-1)
ushort NetOurNativeVLAN = htons(-1)

Could you intialize these variables in the program ?

Best regards,

Masami Komiya

Wolfgang Denk wrote:
> In message <406988D8.4090604 at intracom.gr> you wrote:
>>The following patch adds networking support for
>>VLANs (802.1q), and CDP (Cisco Discovery Protocol).
> Cool!!! Added. Thanks.
> Best regards,
> Wolfgang Denk

More information about the U-Boot mailing list