Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Jun 2010 01:24:59 +0200
From:      Thomas <freebsdlists@bsdunix.ch>
To:        stable@freebsd.org
Subject:   Is crunchgen broken?
Message-ID:  <4C0839CB.2070802@bsdunix.ch>

next in thread | raw e-mail | index | archive | help
Hello

I tryed to use crunchgen. It's not working for me. I always get a
NFS4ACL error.

root@bert:/usr/src/release/i386# crunchgen boot_crunch.conf
Run "make -f boot_crunch.mk" to build crunched binary.

(cd /usr/src/sbin/tunefs &&  make -DRELEASE_CRUNCH -Dlint  depend &&
make -DRELEASE_CRUNCH -Dlint  tunefs.o)
cc -mtune=native -O2 -fno-strict-aliasing -pipe -march=native -std=gnu99
-fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k
-Wno-uninitialized -Wno-pointer-sign -c /usr/src/sbin/tunefs/tunefs.c
/usr/src/sbin/tunefs/tunefs.c: In function 'main':
/usr/src/sbin/tunefs/tunefs.c:274: error: 'FS_NFS4ACLS' undeclared
(first use in this function)
/usr/src/sbin/tunefs/tunefs.c:274: error: (Each undeclared identifier is
reported only once
/usr/src/sbin/tunefs/tunefs.c:274: error: for each function it appears in.)
/usr/src/sbin/tunefs/tunefs.c: In function 'printfs':
/usr/src/sbin/tunefs/tunefs.c:475: error: 'FS_NFS4ACLS' undeclared
(first use in this function)
*** Error code 1

Stop in /usr/src/sbin/tunefs.
*** Error code 1


root@bert:/usr/src/usr.sbin/crunch/examples# crunchgen kcopy.conf
Run "make -f kcopy.mk" to build crunched binary.
root@bert:/usr/src/usr.sbin/crunch/examples# make -f kcopy.mk


(cd /usr/src/sbin/mount &&  make   depend && make   mount.o mount_fs.o
getmntopts.o vfslist.o)
cc -mtune=native -O2 -fno-strict-aliasing -pipe -march=native -std=gnu99
-fstack-protector -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/sbin/mount/mount.c
/usr/src/sbin/mount/mount.c:114: error: 'MNT_NFS4ACLS' undeclared here
(not in a function)
/usr/src/sbin/mount/mount.c: In function 'flags2opts':
/usr/src/sbin/mount/mount.c:922: error: invalid operands to binary &
*** Error code 1


I also tried the example as described in man (1) crunchgen:

root@bert:/usr/src/usr.sbin/crunch/examples# crunchgen -m Makefile
kcopy.conf
Run "make -f Makefile" to build crunched binary.
root@bert:/usr/src/usr.sbin/crunch/examples# make objs

(cd /usr/src/sbin/mount &&  make   depend && make   mount.o mount_fs.o
getmntopts.o vfslist.o)
cc -mtune=native -O2 -fno-strict-aliasing -pipe -march=native -std=gnu99
-fstack-protector -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/sbin/mount/mount.c
/usr/src/sbin/mount/mount.c:114: error: 'MNT_NFS4ACLS' undeclared here
(not in a function)
/usr/src/sbin/mount/mount.c: In function 'flags2opts':
/usr/src/sbin/mount/mount.c:922: error: invalid operands to binary &

How can i fix this?

my system:
FreeBSD 8.0-STABLE #11: Sun Apr 18 15:55:23 CEST 2010
root@bert/usr/obj/usr/src/sys/GENERIC  i386


Regards,
Thomas



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