Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Sep 2005 15:27:06 +0400 (MSD)
From:      Maxim Konovalov <maxim@macomnet.ru>
To:        Diomidis Spinellis <dds@aueb.gr>
Cc:        freebsd-current@freebsd.org, Stefan Sperling <stsp@stsp.in-berlin.de>
Subject:   Re: devfs_vnops.c:1182: warning: redundant redeclaration of 'devfs_ops_f'
Message-ID:  <20050920152639.H90817@mp2.macomnet.net>
In-Reply-To: <432FEEC0.3000600@aueb.gr>
References:  <20050920110800.GA32409@dice.bliss.lan> <432FEEC0.3000600@aueb.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 20 Sep 2005, 15:13+0400, Diomidis Spinellis wrote:

> Stefan Sperling wrote:
> > Hi,
> >
> > I am trying to upgrade from BETA2 to BETA4.
> >
> > A simple make buildkernel (with GENERIC) results in:
> >
> > cc -c -O -pipe -march=athlon-xp -Wall -Wredundant-decls -Wnested-externs
> > -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
> > -Wcast-qual  -fformat-extensions -std=c99 -g -nostdinc -I-  -I.
> > -I/home/FreeBSD/FreeBSD-6/src/sys
> > -I/home/FreeBSD/FreeBSD-6/src/sys/contrib/dev/acpica
> > -I/home/FreeBSD/FreeBSD-6/src/sys/contrib/altq
> > -I/home/FreeBSD/FreeBSD-6/src/sys/contrib/ipfilter
> > -I/home/FreeBSD/FreeBSD-6/src/sys/contrib/pf
> > -I/home/FreeBSD/FreeBSD-6/src/sys/contrib/dev/ath
> > -I/home/FreeBSD/FreeBSD-6/src/sys/contrib/dev/ath/freebsd
> > -I/home/FreeBSD/FreeBSD-6/src/sys/contrib/ngatm
> > -I/home/FreeBSD/FreeBSD-6/src/sys/dev/twa -D_KERNEL -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 -ffreestanding -Werror
> > /home/FreeBSD/FreeBSD-6/src/sys/fs/devfs/devfs_vnops.c
> >
> > /home/FreeBSD/FreeBSD-6/src/sys/fs/devfs/devfs_vnops.c:1182: warning:
> > redundant redeclaration of 'devfs_ops_f'
> > /home/FreeBSD/FreeBSD-6/src/sys/fs/devfs/devfs_vnops.c:71: warning:
> > previous declaration of 'devfs_ops_f' was here
> > /home/FreeBSD/FreeBSD-6/src/sys/fs/devfs/devfs_vnops.c:1193: warning:
> > redundant redeclaration of 'devfs_vnodeops'
> > /home/FreeBSD/FreeBSD-6/src/sys/fs/devfs/devfs_vnops.c:69: warning:
> > previous declaration of 'devfs_vnodeops' was here
> > /home/FreeBSD/FreeBSD-6/src/sys/fs/devfs/devfs_vnops.c:1215: warning:
> > redundant redeclaration of 'devfs_specops'
> > /home/FreeBSD/FreeBSD-6/src/sys/fs/devfs/devfs_vnops.c:70: warning:
> > previous declaration of 'devfs_specops' was here
> > *** Error code 1
> >
> > as if the compiler (gcc 3.4.4 [FreeBSD] 20050518) forgot
> > the difference between a declaration and a definition...
> >
> > thanks,
>
> Got hit by it a few minutes ago.  Until it gets fixed, by moving the structure
> definitions to the top, you can compile with make WERROR=''

FAQ actually:

http://freebsd.rambler.ru/bsdmail/freebsd-current_curr/msg00023.html

-- 
Maxim Konovalov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050920152639.H90817>