alpine-pkg-glibc icon indicating copy to clipboard operation
alpine-pkg-glibc copied to clipboard

/usr/lib/libstdc++.so.6: no version information available

Open turnon opened this issue 6 years ago • 14 comments

When working with heroku-cli in alpine container, it outputs

/usr/local/lib/heroku/bin/node: /usr/lib/libstdc++.so.6: no version information available (required by /usr/local/lib/heroku/bin/node)

though it works well. Just want to know why ...

Dockerfile as below:

https://github.com/turnon/heroku/blob/master/Dockerfile

turnon avatar Jun 25 '18 01:06 turnon

Your URL is corret, but the associated hyperlink is broken. The reason why it is failing seems to be the missing option ldconfig -p, which usually returns the required version information, and will successively lead to the displayed error message.

I am currently running into a similar issue, and unsuccessfully tried to resolve it so far.

dennlinger avatar Jul 02 '18 09:07 dennlinger

I found that installing libstdc++6 (instead of libstdc++) fixed the warnings in my case.

RomainMuller avatar Mar 07 '19 11:03 RomainMuller

@RomainMuller how did you managed to install libstdc++6? I'm having a similiar issue on my Synology NAS but can't seem to install libstdc++6.

schumi2004 avatar Apr 15 '19 09:04 schumi2004

Also same node issue on Synology NAS (intel processor, I think).

travisfranck avatar Jul 11 '19 17:07 travisfranck

I am also running into this issue after crafting a script to install hugo on an alpine docker instance. Here is the script:

#!/bin/sh

HUGO_VERSION="0.57.0"
GLIBC_VERSION="2.30-r0"

apk --no-cache add make
apk --no-cache add zip
export HUGO_BINARY="hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz"
wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
wget "https://github.com/sgerrand/alpine-pkg-glibc/releases/download/$GLIBC_VERSION/glibc-$GLIBC_VERSION.apk"
apk --no-cache add "glibc-$GLIBC_VERSION.apk"
rm "glibc-$GLIBC_VERSION.apk"
wget "https://github.com/sgerrand/alpine-pkg-glibc/releases/download/$GLIBC_VERSION/glibc-bin-$GLIBC_VERSION.apk"
apk --no-cache add "glibc-bin-$GLIBC_VERSION.apk"
rm "glibc-bin-$GLIBC_VERSION.apk"
wget "https://github.com/sgerrand/alpine-pkg-glibc/releases/download/$GLIBC_VERSION/glibc-i18n-$GLIBC_VERSION.apk"
apk --no-cache add "glibc-i18n-$GLIBC_VERSION.apk"
rm "glibc-i18n-$GLIBC_VERSION.apk"
wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_BINARY}
tar xzf ${HUGO_BINARY}
rm -r ${HUGO_BINARY}
mv hugo /usr/bin
/usr/bin/hugo version

The relevant warning message:

$ /usr/bin/hugo version
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
Hugo Static Site Generator v0.57.0-9B00E647/extended linux/amd64 BuildDate: 2019-08-14T08:12:12Z

Is there any update on how to remedy this? It seems to be working, but I'd hate for something to break because of a precarious lucky coincidence.

jeichenhofer avatar Aug 31 '19 01:08 jeichenhofer

Getting the same error messages with Mathematica 12.0 running on Alpine-Term on Samsung Galaxy Note 9. Mathematica also seems to be working fine, but getting the error messages when starting up nontheless.

ZZZXXX0110 avatar Sep 05 '19 01:09 ZZZXXX0110

The relevant warning message:

$ /usr/bin/hugo version
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
Hugo Static Site Generator v0.57.0-9B00E647/extended linux/amd64 BuildDate: 2019-08-14T08:12:12Z

Is there any update on how to remedy this? It seems to be working, but I'd hate for something to break because of a precarious lucky coincidence.

@jeichenhofer Did you find an answer on this?

mneundorfer avatar Oct 08 '19 10:10 mneundorfer

The relevant warning message:

$ /usr/bin/hugo version
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
/usr/bin/hugo: /usr/lib/libstdc++.so.6: no version information available (required by /usr/bin/hugo)
Hugo Static Site Generator v0.57.0-9B00E647/extended linux/amd64 BuildDate: 2019-08-14T08:12:12Z

Is there any update on how to remedy this? It seems to be working, but I'd hate for something to break because of a precarious lucky coincidence.

@jeichenhofer Did you find an answer on this?

Unfortunately I did not. The warning messages still appear, but nothing has broken yet.

jeichenhofer avatar Oct 09 '19 22:10 jeichenhofer

running into this as well. a bit scary not knowing if anything will break in production.

eddiewang avatar Dec 23 '19 04:12 eddiewang

I believe to have a working solution for the problem:

# Snippet from Dockerfile 
#   based on Alpine 3.11 + Hugo Extended 0.62.2
RUN set -x && \
  apk add --no-cache --update \
    libc6-compat \
    libstdc++
$ docker build --tag webdevotion/hugo-extended-build .
$ docker run --rm -it webdevotion/hugo-extended-build:latest hugo version

Hugo Static Site Generator v0.62.2-83E50184/extended linux/amd64

Pointers were taken from this Medium Post by @flemay and one of the comments.

webdevotion avatar Jan 15 '20 22:01 webdevotion

@webdevotion Hope the solution in the comment works. I ended up just using the standard hugo version, not the extended, as I didn't need SASS/SCSS support and it works fine with Alpine. :) https://github.com/flemay/docker-hugo

flemay avatar Feb 10 '20 04:02 flemay

I am also facing similar issue in alpine container on cpp executable, In my case I am only getting the issue when its using stdc++6.0.28.

ls -lrt /usr/lib/libstdc++.so.6*

-rwxr-xr-x 1 root root 1657328 May 18 2020 /usr/lib/libstdc++.so.6.0.28 lrwxrwxrwx 1 root root 28 Jul 6 05:32 /usr/lib/libstdc++.so.6 -> /usr/lib/libstdc++.so.6.0.28

i dont see the issue when running alpine container with stdlibc++19 which i copied from centos container.

-rwxr-xr-x 1 root root 995840 Jun 26 05:22 /usr/lib/libstdc++.so.6.0.19 lrwxrwxrwx 1 root root 28 Jul 6 05:32 /usr/lib/libstdc++.so.6 -> /usr/lib/libstdc++.so.6.0.19

libstdc++.so.6.0.28 getting installed while running "apk add build-base" which installing libstdc++.

Is there way install libstdc++19 on alpine container?

shettyrag avatar Jul 06 '21 07:07 shettyrag

Hello,

I am starting our custom application in alpine:3 docker image.

Application executable has been build with pkg: pkg ci/out/application.js --targets node12-alpine-x64 --output ci/out/application and added into apline image.

When starting it, I got following warnings on boot:

application: /usr/lib/libstdc++.so.6: no version information available (required by application)
application: /usr/lib/libstdc++.so.6: no version information available (required by application)
application: /usr/lib/libstdc++.so.6: no version information available (required by application)
application: /usr/lib/libstdc++.so.6: no version information available (required by application)
application: /usr/lib/libstdc++.so.6: no version information available (required by application)
information

Application is working, but I cant remove those error messages.

Dockerfile looks like:

FROM alpine:3
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

ENV GLIBC_REPO=https://github.com/sgerrand/alpine-pkg-glibc
ENV GLIBC_VERSION=2.33-r0

RUN set -ex && \
    apk --update add libstdc++ && \
    for pkg in glibc-${GLIBC_VERSION} glibc-bin-${GLIBC_VERSION}; \
        do curl -sSL ${GLIBC_REPO}/releases/download/${GLIBC_VERSION}/${pkg}.apk -o /tmp/${pkg}.apk; done && \
    apk add --allow-untrusted /tmp/*.apk && \
    rm -v /tmp/*.apk && \
    /usr/glibc-compat/sbin/ldconfig /lib /usr/glibc-compat/lib

COPY --chown=1001:0 ci/out/ /app/
USER 1001
CMD [ "/app/application" ]  

ldd application response:

/lib64/ld-linux-x86-64.so.2 (0x7fde2bb31000)
        libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7fde2bb31000)
        librt.so.1 => /lib64/ld-linux-x86-64.so.2 (0x7fde2bb31000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7fde2b990000)
        libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7fde2bb31000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7fde2b976000)
        libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7fde2bb31000)
        libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7fde2bb31000)
Error relocating aggregation: gnu_get_libc_version: symbol not found
Error relocating aggregation: __register_atfork: symbol not found
Error relocating aggregation: __strdup: symbol not found
Error relocating aggregation: setcontext: symbol not found
Error relocating aggregation: makecontext: symbol not found
Error relocating aggregation: backtrace: symbol not found
Error relocating aggregation: getcontext: symbol not found

Please note if I switch to debian:stretch everything works fine.

Also, on Debian, ldconfig -p return 81 libs, and on Alpine /usr/glibc-compat/sbin/ldconfig -p returns 46 libs...

Not sure what I need to do to skip those errors on boot...

Thanks in advance.

majstorki88 avatar Aug 05 '21 08:08 majstorki88

I input playwright install Error reporting: /opt/conda/envs/py38/lib/python3.8/site-packages/playwright/driver/node: /usr/lib/libstdc++.so.6: no version information available (required by /opt/conda/envs/py38/lib/python3.8/site-packages/playwright/driver/node) /opt/conda/envs/py38/lib/python3.8/site-packages/playwright/driver/node: /usr/lib/libstdc++.so.6: no version information available (required by /opt/conda/envs/py38/lib/python3.8/site-packages/playwright/driver/node)

2424004764 avatar Jan 02 '24 07:01 2424004764