Personal tools
You are here: Home Issue tracker compilation: zfs-fuse/zfs_operations.c:37:24: error: attr/xattr.h: No such file or directory

#86 — compilation: zfs-fuse/zfs_operations.c:37:24: error: attr/xattr.h: No such file or directory

State Unconfirmed
Version: 0.6.9
Area Process
Issue type Bug
Severity Medium
Submitted by Ruslanas Gzibovskis
Submitted on Sep 07, 2010
Responsible Seth Heeren
Target release: 0.7.0
Return to tracker
Last modified on Sep 19, 2010 by Seth Heeren
zfs-fuse/zfs_operations.c:37:24: error: attr/xattr.h: No such file or directory
zfs-fuse/zfs_operations.c: In function 'zfsfuse_getxattr':
zfs-fuse/zfs_operations.c:378: error: 'ENOATTR' undeclared (first use in this function)
zfs-fuse/zfs_operations.c:378: error: (Each undeclared identifier is reported only once
zfs-fuse/zfs_operations.c:378: error: for each function it appears in.)
zfs-fuse/zfs_operations.c: In function 'zfsfuse_removexattr':
zfs-fuse/zfs_operations.c:449: error: 'ENOATTR' undeclared (first use in this function)
scons: *** [zfs-fuse/zfs_operations.o] Error 1
scons: building terminated because of errors.



getconf GNU_LIBPTHREAD_VERSION
NPTL 2.7

 /lib/libc.so.6
GNU C Library stable release version 2.7, by Roland McGrath et al.
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.3.2.
Compiled on a Linux >>2.6.26-2-686<< system on 2010-06-05.
Available extensions:
    crypt add-on version 2.1 by Michael Glad and others
    GNU Libidn by Simon Josefsson
    Native POSIX Threads Library by Ulrich Drepper et al
    BIND-8.2.3-T5B
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.

gcc --version
gcc (Debian 4.3.2-1.1) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

uname -a
Linux noc-rg 2.6.26-2-686 #1 SMP Thu Aug 19 03:44:10 UTC 2010 i686 GNU/Linux

fuse-utils: 2.8.1-1.2~bpo50+1
libfuse-dev: 2.8.1-1.2~bpo50+1

Seccond run of scons:

zfs-fuse-0.6.9/src# scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
gcc -o zfs-fuse/zfs_operations.o -c -pipe -Wall -std=c99 -Wno-switch -Wno-unused -Wno-missing-braces -Wno-parentheses -Wno-uninitialized -fno-strict-aliasing -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DTEXT_DOMAIN=\"zfs-fuse\" -s -O2 -DNDEBUG -D_KERNEL -DLINUX_AIO -Ilib/libavl/include -Ilib/libnvpair/include -Ilib/libumem/include -Ilib/libzfscommon/include -Ilib/libsolkerncompat/include zfs-fuse/zfs_operations.c

zfs-fuse/zfs_operations.c:37:24: error: attr/xattr.h: No such file or directory
zfs-fuse/zfs_operations.c: In function 'zfsfuse_getxattr':
zfs-fuse/zfs_operations.c:378: error: 'ENOATTR' undeclared (first use in this function)
zfs-fuse/zfs_operations.c:378: error: (Each undeclared identifier is reported only once
zfs-fuse/zfs_operations.c:378: error: for each function it appears in.)
zfs-fuse/zfs_operations.c: In function 'zfsfuse_removexattr':
zfs-fuse/zfs_operations.c:449: error: 'ENOATTR' undeclared (first use in this function)
scons: *** [zfs-fuse/zfs_operations.o] Error 1
scons: building terminated because of errors.

hope it will help ;)
Steps to reproduce:
following INSTALL instructions:

Compiling
---------

If you don't have SCons yet, do the usual 'sudo apt-get install scons',
'emerge scons' or 'yum install scons'.

To compile follow these steps:

  1) cd src
  2) scons
Added by Ruslanas Gzibovskis on Sep 07, 2010 04:40 AM
installed libattr1-dev and attr on debian lenny and it passed
Added by (anonymous) on Sep 07, 2010 05:04 AM
glad you found it

see also, although the best instructions are still on the homepage zfs-fuse.net:

http://zfs-fuse.net/documentation/howto..

Added by Seth Heeren on Sep 19, 2010 06:48 PM
Target release: None0.7.0
Responsible manager: (UNASSIGNED)sgheeren
the bug hug will call the info files to attentionand hopefully this will be fixed by 0.7.0