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

error: version lookup error: version `GLIBCXX_3.4.26' not found #51

Closed
ForNeVeR opened this issue Dec 5, 2021 · 2 comments · Fixed by #52
Closed

error: version lookup error: version `GLIBCXX_3.4.26' not found #51

ForNeVeR opened this issue Dec 5, 2021 · 2 comments · Fixed by #52
Assignees
Labels
kind:bug Something isn't working

Comments

@ForNeVeR
Copy link
Owner

ForNeVeR commented Dec 5, 2021

It turns out that 1.7.9 build was built in an updated environment (Appveyor upgraded something under the covers).

This means that it requires a bit newer Ubuntu 18.04.4 environment than the previous version.

In particular, this Dockerfile with a sample tdlib app will fail:

FROM mcr.microsoft.com/dotnet/core/runtime:3.1 AS base
WORKDIR /app

FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
WORKDIR /src
COPY ["ConsoleApp30/ConsoleApp30.csproj", "ConsoleApp30/"]
RUN dotnet restore "ConsoleApp30/ConsoleApp30.csproj"
COPY . .
WORKDIR "/src/ConsoleApp30"
RUN dotnet build "ConsoleApp30.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "ConsoleApp30.csproj" -c Release -o /app/publish

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENV LD_DEBUG=libs
ENTRYPOINT ["dotnet", "ConsoleApp30.dll"]

Thanks to ENV LD_DEBUG=libs, we can inspect what's happening there:

/usr/lib/x86_64-linux-gnu/libstdc++.so.6: error: version lookup error: version `GLIBCXX_3.4.26' not found (required by /app/runtimes/linux-x64/native/libtdjson.so) (fatal)

So, we require GLIBCXX_3.4.26 capability which isn't included into libstdc++.so.6 available in mcr.microsoft.com/dotnet/core/runtime:3.1. GLIBCXX_3.4.25 is available, though:

# apt-get install binutils
# strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25 | grep GLIBCXX
[…]
GLIBCXX_3.4.25
@ForNeVeR ForNeVeR added the kind:bug Something isn't working label Dec 5, 2021
@ForNeVeR ForNeVeR self-assigned this Dec 5, 2021
@ForNeVeR ForNeVeR closed this as completed Dec 5, 2021
@ForNeVeR ForNeVeR reopened this Dec 5, 2021
@ForNeVeR
Copy link
Owner Author

ForNeVeR commented Dec 5, 2021

I'm still figuring out how to convince that image to get an updated version of libstdc++6.

@ForNeVeR
Copy link
Owner Author

ForNeVeR commented Dec 5, 2021

Okay, I think it would be better to just build with default Ubuntu 18.04 environment and not that crazy env Appveyor provides us. Trying to dockerize the Linux build…

ForNeVeR added a commit that referenced this issue Dec 5, 2021
ForNeVeR added a commit that referenced this issue Dec 5, 2021
ForNeVeR added a commit that referenced this issue Dec 5, 2021
ForNeVeR added a commit that referenced this issue Dec 5, 2021
ForNeVeR added a commit that referenced this issue Dec 5, 2021
ForNeVeR added a commit that referenced this issue Dec 5, 2021
ForNeVeR added a commit that referenced this issue Dec 5, 2021
ForNeVeR added a commit that referenced this issue Dec 5, 2021
ForNeVeR added a commit that referenced this issue Dec 5, 2021
ForNeVeR added a commit that referenced this issue Dec 5, 2021
ForNeVeR added a commit that referenced this issue Dec 5, 2021
ForNeVeR added a commit that referenced this issue Dec 5, 2021
ForNeVeR added a commit that referenced this issue Dec 5, 2021
ForNeVeR added a commit that referenced this issue Dec 5, 2021
ForNeVeR added a commit that referenced this issue Dec 5, 2021
ForNeVeR added a commit that referenced this issue Dec 5, 2021
ForNeVeR added a commit that referenced this issue Dec 7, 2021
ForNeVeR added a commit that referenced this issue Dec 7, 2021
ForNeVeR added a commit that referenced this issue Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant