-
Notifications
You must be signed in to change notification settings - Fork 989
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
[bug] conan 2.x: linking against a shared lib with private shared dependencies fails on Linux #13000
Comments
Hi @SpaceIm This seems to be mixing versions. I am trying: conan create . --version=1.6.39 --build=missing -o *:shared=True In Linux, with Conan 2.0 (2.0.0-develop2 branch), and it works fine. The command syntax you report above |
I don't know conan v2 commands so yes it's probably not exactly the command I've mentioned. |
In the meantime, since libz.so is quite common in system path, you may not be able to reproduce this issue locally. |
I am using conanio/gcc6 docker image to test it, if that makes it pass here locally, it should also work in c3i, same base images? Maybe @uilianries or @prince-chrismc can have a look to the failure in C3i |
Here is another example where
|
Closed by #13010, thanks for reporting! |
Thanks. I'll take a look when I have time (for example by comparing with a canonical CMake config file generated by Are you sure that |
Thanks @SpaceIm for the suggestion, I'll open an issue so we can have some time to study those cases. |
Environment details
Steps to reproduce
On Linux, run conan create *:shared=True against any recipe with private dependencies, and see link errors in test package:
conan create . libpng/1.6.39@ -o *:shared=True
Logs
As explained in conan-io/conan-center-index#15538 (comment), I think something is missing in
CMakeDeps
(and I guess allDeps
like generators) so that CMake can understand that-rpath-link
must be injected withcpp_info.libdirs
of private transitive libs.This issue is hidden in conan v1 because everything is public.
The text was updated successfully, but these errors were encountered: