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

Build mix from source hit 'GLIBC_2.18' not found in envoy #9358

Closed
dove-young opened this issue Oct 16, 2018 · 3 comments
Closed

Build mix from source hit 'GLIBC_2.18' not found in envoy #9358

dove-young opened this issue Oct 16, 2018 · 3 comments

Comments

@dove-young
Copy link

Describe the bug

Build mix found error /root/go/out/linux_amd64/release/envoy: /lib64/libc.so.6: version 'GLIBC_2.18' not found (required by /root/go/out/linux_amd64/release/envoy)

Run envoy manually also trigger this error.

[root@advise1 istio]# /root/go/out/linux_amd64/release/envoy
/root/go/out/linux_amd64/release/envoy: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /root/go/out/linux_amd64/release/envoy)
[root@advise1 istio]#

Build glibc-2.18 and install it to /opt/glibc-2.18, then run envoy again.

[root@advise1 istio]# LD_LIBRARY_PATH=/opt/glibc-2.18/lib /root/go/out/linux_amd64/release/envoy --help
Segmentation fault
[root@advise1 istio]# LD_PRELOAD=/opt/glibc-2.18/lib/libc-2.18.so; /root/go/out/linux_amd64/release/envoy --help
/root/go/out/linux_amd64/release/envoy: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /root/go/out/linux_amd64/release/envoy)
[root@advise1 istio]#

Expected behavior

Build instruction would mention that this does not work in CentOS 7.x.

And it would be better to fetch an envoy binary which works in CentOS 7.x in Istio`s Makefile

GLIBC includes in CentOS 7 is 2.17
Steps to reproduce the bug

Build mix in CentOS 7.x

cd /root/go/src/istio.io/istio
make

Version

Master code at commit b76a5a8

Installation
Not installed. Just build.

Environment

CentOS 7

@dove-young
Copy link
Author

There is a way to fix it.

  • Let user to build a separate glibc-2.18 in CentOS
wget http://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.gz
tar zxvf glibc-2.18.tar.gz
cd glibc-2.18
mkdir build
cd build
../configure --prefix=/opt/glibc-2.18
make -j4
make install
  • Specify customized glibc-2.18 path to environment variable GLIBC_PATH
    • export GLIBC_PATH=/opt/glibc-2.18/lib
  • Modify mixer/test/client/env/envoy.go to accept environment variable GLIBC_PATH
  • Then build will go smoothly

@stale
Copy link

stale bot commented Jan 15, 2019

This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in the next 30 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 15, 2019
@stale
Copy link

stale bot commented Feb 14, 2019

This issue has been automatically closed because it has not had activity in the last month and a half. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.

@stale stale bot closed this as completed Feb 14, 2019
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