rrthomas / plptools

Tools for connection to EPOC devices
GNU General Public License v2.0
19 stars 8 forks source link

Won't build on arch linux - fatal error: attr/xattr.h: No such file or directory #4

Closed soweliniko closed 5 years ago

soweliniko commented 5 years ago

hello, when I try and build the plptools on my 64-bit arch linux machine, I get this error:

fuse.c:23:10: fatal error: attr/xattr.h: No such file or directory
   23 | #include <attr/xattr.h>
      |          ^~~~~~~~~~~~~~

I'm not sure what's causing this, but it won't build. I'm following the instructions in the README.

rrthomas commented 5 years ago

This is a missing header file from libattr.

soweliniko commented 5 years ago

and how do I get this header file? I have the library, I can't find any other versions of it in the arch repos.

rrthomas commented 5 years ago

I don't know, what header files does the library supply in arch? What version is the library?

rrthomas commented 5 years ago

OK, this appears to be a change in libattr. Thanks for bringing it to my attention.

rrthomas commented 5 years ago

Unfortunately, there isn't a backwards-compatible fix. However, you should be able to get it working quickly by changing the #include that fails to #include <sys/xattr.h>.

rrthomas commented 5 years ago

I've now pushed a fix; I'd be most grateful if you could test it!

soweliniko commented 5 years ago

fix works, thank you!

rrthomas commented 5 years ago

Thanks for confirming; I've released 1.0.15.