Squid: "Undefined symbol "_ZTVNSt3__117bad_function_callE" after upgrade to 2.8
-
I "manually" fixed this issue easily, without moving any library anywhere, because that could break other executables that depend on libc++.so.
Simply:
scp the squid binary to your FreeBSD/Linux Desktop.
if you do:patchelf --print-rpath squid
You will see:
/usr/local/lib:/usr/lib:/usr/local/lib
This is the default RPATH of the executable.
We can change this by doing:patchelf --set-rpath /lib:/usr/local/lib:/usr/lib:/usr/local/lib squid
This will force squid to look into the /lib folder first. There lives a version of libc++.so.1 that is compatible with squid.
After this, just copy back the squid executable to /usr/local/sbin/ .Problem solved
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.