Re: world not build

From: Ruslan Ermilov <ru_at_freebsd.org>
Date: Tue, 29 Apr 2008 10:36:11 +0400
On Fri, Apr 25, 2008 at 09:49:38PM +0400, Alex Keda wrote:
> I update source 2-3 hour ago
> ==============
> cc -O2 -pipe 
> -I/usr/src/usr.bin/fstat/zfs/../../../sys/cddl/compat/opensolaris 
> -I/usr/src/usr.bin/fstat/zfs/../../../cddl/compat/opensolaris/include 
> -I/usr/src/usr.bin/fstat/zfs/../../../cddl/compat/opensolaris/lib/libumem 
> -I/usr/src/usr.bin/fstat/zfs/../../../cddl/contrib/opensolaris/lib/libzpool/common 
> -I/usr/src/usr.bin/fstat/zfs/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs 
> -I/usr/src/usr.bin/fstat/zfs/../../../sys/cddl/contrib/opensolaris/uts/common 
> -I/usr/src/usr.bin/fstat/zfs/../../../sys/cddl/contrib/opensolaris/uts/common/sys 
> -I/usr/src/usr.bin/fstat/zfs/../../../cddl/contrib/opensolaris/head 
> -I/usr/src/usr.bin/fstat/zfs/.. -Wsystem-headers -Werror -Wno-pointer-sign 
> -c /usr/src/usr.bin/fstat/zfs/zfs.c
> cc -O2 -pipe  -D_KVM_VNODE -DZFS -Wsystem-headers -Werror -Wall 
> -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes 
> -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual 
> -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter 
> -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls 
> -Wno-pointer-sign -c /usr/src/usr.bin/fstat/zfs/zfs.c
> /usr/src/usr.bin/fstat/zfs/zfs.c:38:29: error: sys/zfs_context.h: No such 
> file or directory
> /usr/src/usr.bin/fstat/zfs/zfs.c:39:21: error: sys/spa.h: No such file or 
> directory
> /usr/src/usr.bin/fstat/zfs/zfs.c:40:26: error: sys/spa_impl.h: No such file 
> or directory
> /usr/src/usr.bin/fstat/zfs/zfs.c:41:21: error: sys/dmu.h: No such file or 
> directory
> /usr/src/usr.bin/fstat/zfs/zfs.c:42:21: error: sys/zap.h: No such file or 
> directory
> /usr/src/usr.bin/fstat/zfs/zfs.c:43:24: error: sys/fs/zfs.h: No such file 
> or directory
> /usr/src/usr.bin/fstat/zfs/zfs.c:44:27: error: sys/zfs_znode.h: No such 
> file or directory
> /usr/src/usr.bin/fstat/zfs/zfs.c:51:1: error: "ZFS" redefined
> <command-line>: error: this is the location of the previous definition
> /usr/src/usr.bin/fstat/zfs/zfs.c:53:19: error: fstat.h: No such file or 
> directory
> cc1: warnings being treated as errors
> /usr/src/usr.bin/fstat/zfs/zfs.c:63: warning: 'struct filestat' declared 
> inside parameter list
> /usr/src/usr.bin/fstat/zfs/zfs.c:63: warning: its scope is only this 
> definition or declaration, which is probably not what you want
> /usr/src/usr.bin/fstat/zfs/zfs.c:64: warning: no previous prototype for 
> 'zfs_filestat'
> /usr/src/usr.bin/fstat/zfs/zfs.c: In function 'zfs_filestat':
> /usr/src/usr.bin/fstat/zfs/zfs.c:66: error: 'znode_phys_t' undeclared 
> (first use in this function)
> /usr/src/usr.bin/fstat/zfs/zfs.c:66: error: (Each undeclared identifier is 
> reported only once
> /usr/src/usr.bin/fstat/zfs/zfs.c:66: error: for each function it appears 
> in.)
> /usr/src/usr.bin/fstat/zfs/zfs.c:66: error: expected ';' before 'zphys'
> /usr/src/usr.bin/fstat/zfs/zfs.c:76: warning: implicit declaration of 
> function 'dprintf'
> /usr/src/usr.bin/fstat/zfs/zfs.c:76: warning: nested extern declaration of 
> 'dprintf'
> /usr/src/usr.bin/fstat/zfs/zfs.c:86: warning: implicit declaration of 
> function 'getvnodedata'
> /usr/src/usr.bin/fstat/zfs/zfs.c:86: warning: nested extern declaration of 
> 'getvnodedata'
> /usr/src/usr.bin/fstat/zfs/zfs.c:86: warning: assignment makes pointer from 
> integer without a cast
> /usr/src/usr.bin/fstat/zfs/zfs.c:87: warning: implicit declaration of 
> function 'KVM_READ'
> /usr/src/usr.bin/fstat/zfs/zfs.c:87: warning: nested extern declaration of 
> 'KVM_READ'
> /usr/src/usr.bin/fstat/zfs/zfs.c:89: error: 'Pid' undeclared (first use in 
> this function)
> /usr/src/usr.bin/fstat/zfs/zfs.c:104: error: 'zphys' undeclared (first use 
> in this function)
> /usr/src/usr.bin/fstat/zfs/zfs.c:111: warning: implicit declaration of 
> function 'getvnodemount'
> /usr/src/usr.bin/fstat/zfs/zfs.c:111: warning: nested extern declaration of 
> 'getvnodemount'
> /usr/src/usr.bin/fstat/zfs/zfs.c:111: warning: assignment makes pointer 
> from integer without a cast
> /usr/src/usr.bin/fstat/zfs/zfs.c:118: error: dereferencing pointer to 
> incomplete type
> /usr/src/usr.bin/fstat/zfs/zfs.c:119: error: dereferencing pointer to 
> incomplete type
> /usr/src/usr.bin/fstat/zfs/zfs.c:125: error: dereferencing pointer to 
> incomplete type
> /usr/src/usr.bin/fstat/zfs/zfs.c:126: error: dereferencing pointer to 
> incomplete type
> /usr/src/usr.bin/fstat/zfs/zfs.c:127: error: dereferencing pointer to 
> incomplete type
> *** Error code 1
> 
> Stop in /usr/src/usr.bin/fstat.
> *** Error code 1
> 
This is a known issue since February.  I'll commit a fix shortly.
In the meantime, ``rm -r /usr/obj/usr/src/usr.bin/fstat/zfs''
before attempting to rebuild should work around the problem.


Cheers,
-- 
Ruslan Ermilov
ru_at_FreeBSD.org
FreeBSD committer
Received on Tue Apr 29 2008 - 04:56:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:30 UTC