samuong / alpaca

A local HTTP proxy for command-line tools. Supports PAC scripts and NTLM authentication.
Apache License 2.0
184 stars 31 forks source link

Version >=2.0.5 on Ubuntu 20.04 returns "version `GLIBC_2.XX' not found (required by alpaca)" #130

Closed bigbrozer closed 1 day ago

bigbrozer commented 2 days ago

Running alpaca from alpaca_v2.0.7_linux-amd64 on Ubuntu 20.04 LTS (glibc 2.31):

❯ alpaca 
alpaca: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by alpaca)
alpaca: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by alpaca)

I'm not sure where it does come from but this issue is starting with version >=2.0.5 (prior versions are running fine).

samuong commented 2 days ago

Hi @bigbrozer, thanks for reporting this. The v2.0.5 release was the first one to use Go 1.22 (instead of Go 1.17) to build the release binary, and I suspect this change causes it to link against a newer glibc. I think it was some of the updated dependencies that pulled in this new Go version, so it might not be possible to move back to an older Go toolchain.

Both v2.0.4 and v2.0.5 were built on Ubuntu 22.04.4 runners, and I'm wondering if going down to Ubuntu 20.04 will fix this. I've given this a try in https://github.com/samuong/alpaca/actions/runs/9768982323, are you able to download this pre-release binary and let me know if it doesn't work?

https://github.com/samuong/alpaca/actions/runs/9768982323/artifacts/1661674874

bigbrozer commented 1 day ago

Hello @samuong, thank you very much for this ! It is working like a charm. Additionally, I have performed some tests on Ubuntu 22.04, 24.04 and Archlinux (latest glibc) systems, and this is working perfectly :-)

samuong commented 1 day ago

That's great to hear, thanks for testing this! I've just released this as v2.0.8: https://github.com/samuong/alpaca/releases/tag/v2.0.8