libstdc++ "no version information available"
I’m trying to run PhantomJS (from phantomjs-1.9.8-linux-x86_64.tar.bz2) but it fails with an error related to libstdc
bin/phantomjs: /usr/lib/libstdc++.so.6: no version information available (required by bin/phantomjs)
This doesn’t happen if I replace libstdc.so.6 by a version downloaded from Ubuntu 14.04.
How to reproduce:
# install dependencies
apk --update add curl tar bzip2 freetype fontconfig libstdc++
# install glibc
curl -O https://circle-artifacts.com/gh/andyshinn/alpine-pkg-glibc/12/artifacts/0/home/ubuntu/alpine-pkg-glibc/packages/builder/x86_64/glibc-2.22-r5.apk
curl -O https://circle-artifacts.com/gh/andyshinn/alpine-pkg-glibc/12/artifacts/0/home/ubuntu/alpine-pkg-glibc/packages/builder/x86_64/glibc-bin-2.22-r5.apk
apk add --allow-untrusted glibc-*.apk
mkdir /lib64
ln -s /usr/glibc-compat/lib/ld-linux-x86-64.so.2 /lib64
/usr/glibc-compat/sbin/ldconfig /lib /lib64 /usr/lib /usr/glibc-compat/lib
# get phantomjs
curl -L -O https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2
tar xf phantomjs-1.9.8-linux-x86_64.tar.bz2
# run it
./phantomjs-1.9.8-linux-x86_64/bin/phantomjs
(from redmine: issue id 4903, created on 2015-11-27, closed on 2015-11-30)