Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stunnel compiling error #723

Open
kmeng1219 opened this issue Jul 25, 2023 · 4 comments
Open

stunnel compiling error #723

kmeng1219 opened this issue Jul 25, 2023 · 4 comments

Comments

@kmeng1219
Copy link

Any suggestion with the stunnel compiling error?

ERROR: stunnel-5.69-r0 do_prepare_recipe_sysroot: The file /usr/include/rpcsvc/nis_object.x is installed by both external-linaro-toolchain and libnsl2, aborting
ERROR: stunnel-5.69-r0 do_prepare_recipe_sysroot:
ERROR: stunnel-5.69-r0 do_prepare_recipe_sysroot: Function failed: extend_recipe_sysroot

My project root directory has the following folders:
meta-linaro meta-openembedded meta-qt5 meta-security meta-tegra meta-tx2 poky

libnsl2 is in poky folder.

@kraj
Copy link
Contributor

kraj commented Jul 25, 2023

I think its best to look at external toolchain you are using. if it should be a provider for libnsl2 then mark the external toolchain to provide it and then prefer it over system libnsl2 so dependent packages can use one copy/provider of this dependency. You can also delete these files from external toolchain recipe so that it can not conflict with system.

@kmeng1219
Copy link
Author

@kraj Thank you so much for your response. Yes there is some conflict between libnsl2 in stunnel (meta-openembedded) and libnsl in external-linaro-toolchain.bb (meta-linara)

Remove the libnsl2 dependency in stunnel may pass the compile. This is definitely not good solution for sure. Any other solution? Is it a way to let stunnel to use libnsl from meta-openembedded? I am not very familier with the bitbake.

@kraj
Copy link
Contributor

kraj commented Jul 26, 2023

I think removing dep is ok in a bbppend in your own layer. Or perhaps modify external toolchain recipe to remove the libnsl2 provided files in do_install

@kmeng1219
Copy link
Author

Thanks, Kraj. I will add bbappend to fix the conflict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants