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

Use lib prefix for native library names for consistency #39717

Merged
merged 3 commits into from
Jul 22, 2020

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Jul 21, 2020

#33236 added lib prefix to the native libraries, but it was missed in number of places.

@ghost
Copy link

ghost commented Jul 21, 2020

Tagging subscribers to this area: @safern, @ViktorHofer
Notify danmosemsft if you want to be subscribed.

@@ -6,6 +6,6 @@ internal static partial class Interop
internal static partial class Libraries
{
internal const string Odbc32 = "libodbc.so.2";
internal const string MsQuic = "msquic";
internal const string MsQuic = "libmsquic.so";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have fixed up msquic just for consistency

Copy link
Member

@ViktorHofer ViktorHofer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we didn't see any failures since the rename, does that mean that this is dead code?

@jkotas
Copy link
Member Author

jkotas commented Jul 21, 2020

The loader has fallback that tries multiple library names with different prefixes / suffixes. It is what made it work.

@jkotas
Copy link
Member Author

jkotas commented Jul 21, 2020

It was discovered in CoreRT dotnet/corert#8241 since the native AOT is more sensitive to details like this.

@safern
Copy link
Member

safern commented Jul 21, 2020

Should/can we add some validation for the names of native libraries we produce on Unix to make sure they all have lib and so that if we add a new one we catch if the name is wrong?

@jkotas
Copy link
Member Author

jkotas commented Jul 21, 2020

I would expect that codereviews would be good enough to catch wrong native library name if we add more of them.

@jkotas jkotas merged commit d8cf13e into dotnet:master Jul 22, 2020
@jkotas jkotas deleted the lib-prefix branch July 22, 2020 03:40
Jacksondr5 pushed a commit to Jacksondr5/runtime that referenced this pull request Aug 10, 2020
@karelz karelz added this to the 5.0.0 milestone Aug 18, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants