-
Notifications
You must be signed in to change notification settings - Fork 42
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
libcurl "no version information available" #62
Comments
It's unclear. The version of cmake that is in Ubuntu Focal is 3.16, so we don't regularly test with something older than that. If you build with a newer CMake, does the issue go away? |
This is built on 18.04 as required due to some Nvidia dependencies. At the moment, we do not have the ability to update the cmake version due to some other libraries failing with newer cmake versions. |
Ah, I think I see what is going on. The |
I will try that! [It is built in a docker and it is very likely for libcurl4 not to be installed] |
@clalancette I confirm that installing |
OK, great. There is likely a bug here, so I'll leave this open. But since we don't see it "in real life", it is going to be low priority. |
No issue, I have the workaround at the moment. Thanks for the support! |
I'm seeing this error when I build ROS 2 core packages with the cmake arg |
Looking into this a little, I guess it has something to do with the system installed version of cmake originally building against a different version or environment, compared to the vendored libcurl. E.g. It's easy to reproduce the error by running
I tried building cmake locally, and with it I don't see the "no version information available" errors. Although, it looks like cmake was built without linking against libcurl, so I'm not sure if it's a valid experiment. |
@jacobperron On my side, I had the issue when building from source on Ubuntu 18.04 but not on 20.04. |
IIUC, the version of libcurl we're building is not compatible with the system installed version, which cmake depends on: https://gitlab.kitware.com/cmake/cmake/-/issues/20872 So, I'm not sure that building libcurl_vendor on systems that cause cmake to dynamically link against libcurl would ever work. |
@jacobperron is right; I'm pretty sure the problem is that cmake itself depends on libcurl, and when we try to replace it with the vendored package it gets upset. Honestly, I think the right solution here may be to stop vendoring |
I was about to ask what was/is the original reason for vendoring curl? |
This is the commit that added it: 290ff82 . But it looks like the curl package is available on all of our target platforms. I'm going to give a shot at removing the vendor package completely and see if things still work on Windows, in particular. |
I'm removing it locally for my project, since we can rely on the system version. But if we can remove it in general that would be cool. |
See #64 |
Hi,
I receive the following warning when compiling ros2 as well as other code using the libcurl_vendor library.
I tried both the foxy branch as well as ros2 branch:
Foxy branch:
Ros2 branch:
CMake version:
Would this be due to an "old cmake version"?
The text was updated successfully, but these errors were encountered: