[yocto] libcap compile error

Alexander Kanavin alexander.kanavin at linux.intel.com
Tue Oct 24 05:19:23 PDT 2017


On 10/24/2017 12:23 PM, Remco Poelstra wrote:
> I’m new with the Yocto project and I’m still trying to find my way.
> I’m using a Hachiko board using Architech SDK and have managed to build 
> and run the standard image.
> As a next step I wanted to include the avahi mdns implementation. In 
> order to do so I included IMAGE_INSTALL_append = “ avahi”
> When I now run bitbake, I get the following error for libcap_2.22.bb:
> | cap_file.c:8:23: fatal error: sys/xattr.h: No such file or directory
> 
> The compiler has a switch 
> ‘--sysroot=/home/architech/architech_sdk/architech/hachiko-tiny/yocto/build/tmp/sysroots/hachiko’, 
> which indeed does not include this file.
> Is that the location where the file should be? How can I add it? Is this 
> a more general bug in Yocto or just my local setup?

libcap 2.22 is very old, so your SDK must be using a very old release of 
Yocto (2014 or earlier). It's difficult to provide help for that. 
Perhaps you could address your question to the makers of the SDK and 
find out if they have anything more recent?

Alex



More information about the yocto mailing list