Personal tools
You are here: Home Issue tracker Compilation error: xattr.h not found

#83 — Compilation error: xattr.h not found

State Rejected
Version: 0.6.9
Area Process
Issue type Bug
Severity Medium
Submitted by Axel Pätzke
Submitted on Aug 16, 2010
Responsible Seth Heeren
Target release:
Return to tracker
Last modified on Aug 16, 2010 by Seth Heeren
By trying to compile the stable release of zfs-fuse-0.6.9
I get an error message as follows:
______________________________________________

CC-Compile-Output:

linux-9frm:/opt/zfs/zfs-fuse-0.6.9/src> sudo scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
cd lib/libumem && make && rm -f libumem.a && ln -s .libs/libumem.a
make all-am
make[1]: Entering directory `/opt/zfs/zfs-fuse-0.6.9/src/lib/libumem'
make[1]: Leaving directory `/opt/zfs/zfs-fuse-0.6.9/src/lib/libumem'
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: fatal error: attr/xattr.h: No such file or
directory
compilation terminated.
scons: *** [zfs-fuse/zfs_operations.o] Error 1
scons: building terminated because of errors.
______________________________________________

but <find / -type f -name xattr.h>
came out with the following:

/usr/include/sys/xattr.h
/usr/include/linux/xattr.h
/usr/src/linux-2.6.34-12-obj/x86_64/desktop/include/config/reiserfs/fs/xattr.h
/usr/src/linux-2.6.34-12-obj/x86_64/desktop/include/config/ext3/fs/xattr.h
/usr/src/linux-2.6.34-12-obj/x86_64/desktop/include/config/ext4/fs/xattr.h
/usr/src/linux-2.6.34-12-obj/x86_64/desktop/include/config/cifs/xattr.h
/usr/src/linux-2.6.34-12-obj/x86_64/desktop/include/config/ext2/fs/xattr.h
/usr/src/linux-2.6.34-12-obj/x86_64/desktop/include/config/jffs2/fs/xattr.h
/usr/src/linux-2.6.34-12-obj/x86_64/desktop/include/config/ubifs/fs/xattr.h
/usr/src/linux-2.6.34-12/include/linux/xattr.h
/usr/src/linux-2.6.34-12/fs/gfs2/xattr.h
/usr/src/linux-2.6.34-12/fs/ext3/xattr.h
/usr/src/linux-2.6.34-12/fs/ext4/xattr.h
/usr/src/linux-2.6.34-12/fs/ext2/xattr.h
/usr/src/linux-2.6.34-12/fs/jffs2/xattr.h
/usr/src/linux-2.6.34-12/fs/ocfs2/xattr.h
/usr/src/linux-2.6.34-12/fs/btrfs/xattr.h

______________________________________________

My Distro: OpenSuse 11.3
______________________________________________

getconf GNU_LIBC_VERSION:
glibc 2.11.2
______________________________________________

getconf GNU_LIBPTHREAD_VERSION:
NPTL 2.11.2
______________________________________________

/lib/libc.so.6:
GNU C Library stable release version 2.11.2 (20100531), by Roland McGrath et al.
Copyright (C) 2009 Free Software Foundation, Inc.
Configured for i686-suse linux.
Compiled by GNU CC version 4.5.0 20100604 [gcc-4_5-branch revision 160292].
Compiled on a Linux 2.6.32 system on 2010-07-19.
Available extensions:
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        NoVersion patch for broken glibc 2.0 binaries
        Native POSIX Threads Library by Ulrich Drepper et al
        BIND-8.2.3-T5B
______________________________________________
gcc --version:
gcc (SUSE Linux) 4.5.0 20100604 [gcc-4_5-branch revision 160292]
Copyright (C) 2010 Free Software Foundation, Inc.
______________________________________________
uname -a:
Linux linux-9frm 2.6.34-12-desktop #1 SMP PREEMPT 2010-06-29 02:39:08 +0200
x86_64 x86_64 x86_64 GNU/Linux

______________________________________________

I've installed everything as mentioned in your <Prerequisites> file beforehand.
Steps to reproduce:
Started the computer from the scratch.
Had no other running programs on.
Shutted down every unnecessary daemon.
Same error output.
Added by Seth Heeren on Aug 16, 2010 01:18 PM
Responsible manager: (UNASSIGNED)sgheeren
Did you look at this page before?

    http://zfs-fuse.net/documentation

I'm not sure where you are finding "our" <Prerequisites>
It is certainly not in any file from our repository.

From the zfs-fuse.net homepage:

    su -c "yum install -y fuse-devel libattr-devel libaio-devel libacl-devel zlib-devel fuse-devel scons openssl-devel"

HTH
Added by Seth Heeren on Aug 16, 2010 02:35 PM
Issue state: unconfirmedrejected
I just checked it by installing openSUSE 11.2 (i686 k.v2.6.31.5)

Indeed, s/yum/zypper more or less works out of the box:


bash$ sudo zypper install -y fuse-devel libattr-devel libaio-devel libacl-devel zlib-devel fuse-devel scons openssl-devel git

Or, if your place was _really_ barren and naked like mine:

bash$ sudo zypper install gcc automake libtool make

(you'll want /usr/local/sbin added to your PATH because that is the default installation prefix for dev builds).