libcap compile error
Hi all,
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?
Thanks in advance.
Kind regards,
Remco Poelstra
Quoted 8 lines · Remco Poelstra
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 includedIMAGE_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 directoryThe 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
Alexander Kanavin schreef op 2017-10-24 14:19:
Quoted 4 lines
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?
Thanks for your fast response. I've contacted them to see if they have an update.
Kind regards,
Remco Poelstra
Quoted 10 lines · Remco Poelstra
Hi all,
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 includedIMAGE_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
Quoted 6 lines
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?
it seems you might be using uclibc, and xattr is absent in DISTRO_FEATURES, add
DISTRO_FEATURES_append = " xattr"
in your conf/local.conf and see if that helps.
Quoted 11 lines
Thanks in advance.
Kind regards,
Remco Poelstra
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Khem Raj schreef op 2017-10-24 18:22:
Quoted 6 lines
it seems you might be using uclibc, and xattr is absent in
DISTRO_FEATURES, add
DISTRO_FEATURES_append= " xattr"in your
conf/local.confand see if that helps.
Hi,
This did indeed resolve that issue. Unfortunately it didn't take long for another compile error to pop up. I'm investigating my options for moving to a more modern Yocto release. I hope that will prove to be more useable. Thanks for the suggestion.
Kind regards,
Remco Poelstra