SourceForge has been redesigned. Learn more.
Close

#39 4.1 build fails, wrong location of xattr.h

closed-fixed
nobody
None
5
2011-02-23
2010-09-30
Anonymous
No

unsquashfs_xattr.c:28:24: error: attr/xattr.h: File or directory not found

The file is in sys/, not attr/, on my systems. sed -i 's@attr/xattr.h@sys/xattr.h@' *.c

Discussion

  • Phillip Lougher

    Phillip Lougher - 2010-09-30

    and your systems are running which distro?

     
  • curaga

    curaga - 2010-10-02

    LFS. But I don't see how this is relevant.

    ref http://library.gnome.org/devel/glib/stable/glib-building.html
    "getxattr() and friends can be provided by glibc or by the standalone libattr library."

    I don't have libattr installed, and it is not needed for xattrs. As said in the link above, the glibc header is in sys/, while libattr puts the (completely same usage-wise) header into attr/. I don't think you should depend on libattr when this functionality is in glibc.

     
  • Nobody/Anonymous

    It is a bit confusing having two files called xattr.h and one of them is in the wrong include path.

    Am using Mainline .36 kernel on Mandriva.

     
  • Phillip Lougher

    Phillip Lougher - 2011-02-23

    Fxed in git.

     
  • Phillip Lougher

    Phillip Lougher - 2011-02-23
    • status: open --> closed-fixed
     

Log in to post a comment.