mkfs.jffs2 not compiling, which acl.h?

Glen Johnson gjohnson at valcom.com
Wed Dec 6 08:56:23 EST 2006


Linux-mtd,
First off I am using uClinux-dist 2006-08-03 source code with the
m68k-uclinux-tools-20060615 cross compiler.  What I am trying to do is
compile the latest version of the mtd-utils.  I used git to retrieve the
latest version of the mtd-utils and put those files into
uClinux-dist/user/mtd-utils directory.  When I run make the compile
stops complaining that it can't find <sys/acl.h> and then gives errors
like listed below.
mkfs.jffs2.c:1093: error: 'ACL_MASK' undeclared (first use in this function)
mkfs.jffs2.c:1094: error: 'ACL_OTHER' undeclared (first use in this
function)
mkfs.jffs2.c:1100: error: 'ACL_USER' undeclared (first use in this function)
mkfs.jffs2.c:1101: error: 'ACL_GROUP' undeclared (first use in this
function)

I ran find uClinux-dist/ -name acl.h and got this list of files.
./linux-2.6.x/include/config/fs/posix/acl.h
./linux-2.6.x/fs/ext3/acl.h
./linux-2.6.x/fs/ext2/acl.h
./user/asterisk/include/asterisk/acl.h
./user/bind/lib/dns/include/dns/acl.h

After checking each of these files I found that ACL_* were not defined
in any of them.  I then ran grep -r ACL_MASK ./ and found ACL_MASK was
defined in the header file <linux/posix_acl.h> .  I tried #include
<linux/posix_acl.h> in place of <sys/acl.h> and got warnings about not
other info.  If I #include <asm-m68knommu/atomic.h> all the warnings and
errors dissappear.

Do I really have to include both <asm-m68knommu/atomic.h> and
<linux/posix_acl.h> in place of <sys/acl.h>?  By the way I never found
sys/acl.h anywhere in uClinux-dist.  What is the proper way to handle this?
Thank you,
Glen Johnson




More information about the linux-mtd mailing list