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

Problem with libstdc++ on CentOS 7 #11

Open
avega4gm opened this issue Sep 26, 2019 · 0 comments
Open

Problem with libstdc++ on CentOS 7 #11

avega4gm opened this issue Sep 26, 2019 · 0 comments

Comments

@avega4gm
Copy link

Hi, I got a problem related to this issue.

After upgrading netcore runtime to version 3.0, the libsass.so began to require the GLIBCXX_3.4.20 and GLIBCXX_3.4.21 dependencies, which are not in the latest libstdc++package-4.8.5-39.el7.x86_64 for CentOS 7.

What can we do about it?

Server Logs

Request starting HTTP/1.1 GET http://10.177.0.2/scss/site.min.css?v=efwvm_Fxv1Qm70jrriRu9NgbBNA
info: WebOptimizer.AssetMiddleware[1000]
Request started for '/scss/site.min.css'
fail: Microsoft.AspNetCore.Server.Kestrel[13]
Connection id "0HLQ2G5LK0LNF", Request id "0HLQ2G5LK0LNF:00000001": An unhandled exception was thrown by the application.
System.DllNotFoundException: Unable to load shared library 'libsass' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG en
at SharpScss.LibSass.sass_alloc_memory(size_t size)
at SharpScss.LibSass.StringUtf8.op_Implicit(String text)
at SharpScss.Scss.FromCore(String fromStringOrFile, Boolean fromFile, ScssOptions options)
at SharpScss.Scss.ConvertToCss(String scss, ScssOptions options)
at WebOptimizer.Sass.Compiler.ExecuteAsync(IAssetContext context)
at WebOptimizer.Asset.ExecuteAsync(HttpContext context, IWebOptimizerOptions options)
at WebOptimizer.AssetBuilder.BuildAsync(IAsset asset, HttpContext context, IWebOptimizerOptions options)
at WebOptimizer.AssetMiddleware.HandleAssetAsync(HttpContext context, IAsset asset, WebOptimizerOptions options)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished in 7.1930000000000005ms 500

ldd libsass.so

./libsass.so: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by ./libsass.so)
./libsass.so: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ./libsass.so)
	linux-vdso.so.1 =>  (0x00007ffe51d15000)
	libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007f035aae6000)
	libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f035a7df000)
	libm.so.6 => /usr/lib64/libm.so.6 (0x00007f035a4dd000)
	libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1 (0x00007f035a2c7000)
	libc.so.6 => /usr/lib64/libc.so.6 (0x00007f0359efa000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f035b1ab000)

dotnet --info

Host (useful for support):
  Version: 3.0.0
  Commit:  7d57652f33

.NET Core SDKs installed:
  No SDKs were found.

.NET Core runtimes installed:
  Microsoft.AspNetCore.App 3.0.0 [/usr/share/dotnet3/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.0.0 [/usr/share/dotnet3/shared/Microsoft.NETCore.App]

strings /lib64/libstdc++.so.6 | grep GLIB

GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBC_2.3
GLIBC_2.2.5
GLIBC_2.14
GLIBC_2.4
GLIBC_2.3.2
GLIBCXX_DEBUG_MESSAGE_LENGTH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant