question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Builds broken on Ubuntu 19.04

See original GitHub issue

The dependency on LibGit2Sharp brings in a binary dependency on an old and insecure version of libssl on Linux which is no available (because of the security vulnerabilities).

/home/brwilso/.nuget/packages/nerdbank.gitversioning/3.0.26/build/Nerdbank.GitVersioning.targets(63,5): error MSB4018: ---> System.DllNotFoundException: Unable to load shared library '/home/brwilso/.nuget/packages/nerdbank.gitversioning/3.0.26/build/MSBuildCore/../runtimes/linux-x64/native/libgit2-572e4d8.so' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libssl.so.1.0.0: cannot open shared object file: No such file or directory [/home/brwilso/dev/xunit/xunit/src/xunit.v3.assert/xunit.v3.assert.csproj]

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11

github_iconTop GitHub Comments

4reactions
NickMSWcommented, Oct 21, 2019

I’m also seeing this issue on my Alpine builds: root/.nuget/packages/nerdbank.gitversioning/3.0.26/build/Nerdbank.GitVersioning.targets(63,5): error MSB4018: ---> System.DllNotFoundException: Unable to load shared library '/root/.nuget/packages/nerdbank.gitversioning/3.0.26/build/MSBuildCore/../runtimes/alpine-x64/native/libgit2-572e4d8.so' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: Error loading shared library libssl.so.1.0.0: No such file or directory (needed by /root/.nuget/packages/nerdbank.gitversioning/3.0.26/build/MSBuildCore/../runtimes/alpine-x64/native/libgit2-572e4d8.so)

0reactions
ethomsoncommented, Oct 16, 2019

I don’t think that the problem is on the native side. (Looking at the build logs, I do see No error message was set by the native library, or whatever that message is precisely. That’s the message that LibGit2Sharp sets when git_error_last returns NULL.)

What’s actually happening is:

LibGit2Sharp calls libgit2 libgit2 calls back into LibGit2Sharp (the custom transport)

The custom transport is failing, but didn’t set an error message with libgit2 libgit2 just reports the failure back to LibGit2Sharp LibGit2Sharp queries libgit2 to get the error message, but LibGit2Sharp (the custom transport) itself didn’t set that error message.

Anyway, sans proxy and default credentials, this did work when it was using ye olde HTTP APIs. When I hurriedly moved it over to HttpClientHandler, I broke something.

I’ll see if I can find some time to kick this a little bit further down the road.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ubuntu 19.04 problems install upgrades
I would suggest the following: Option # 1: Try fixing the missing packages by running the following command in the terminal:
Read more >
Is there an issue building on Ubuntu 19.04 - For Developers
I use Ubuntu 19.04 to build my images for ipq806x, mvebu and ar71xx/ath79, for master, 19.07 and 18.06 branches. Default toolchain options ...
Read more >
Missing Ubuntu 19.04 (disco) builds on PPA · Issue #3011
Ubuntu's build is now so old that some 19.08 packages won't even install. It would be really nice if disco was added to...
Read more >
Ubuntu 19.04 apt broken dependency: mono - linux
I'm having an issue with apt on ubuntu 19.04. Every time I try to install or upgrade an apt package the following error...
Read more >
installation and setup issues under ubuntu 19.04
I have tried to set-up cpseis under ubuntu 19.04. ... Pls Build the thirdparty folder first. I'll try to help you as you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found