Squid: "Undefined symbol "_ZTVNSt3__117bad_function_callE" after upgrade to 2.8
-
I just upgrded my PFSense from 2.7.2 to 2.8; upgrading operations completed fine.
Then I wanted to add Squid package as well, installing it after having completed this upgrade.
Squid installation process completed regularly. But after a very simple config, daemon didn't start in any way. When I tried by CLI, I received this error message:
"ld-elf.so.1: /usr/local/sbin/squid: Undefined symbol "_ZTVNSt3__117bad_function_callE"Maybe Squid last release (0.5.3) is not compatible with libc++ in FreeBSD 15.0 ?
-
I have the same issue after upgrading from 2.7.2 to 2.8.0.
When trying to start squid the below message is shown in syslog:php-fpm[71339]: /pkg_edit.php: The command '/usr/local/sbin/squid -f /usr/local/etc/squid/squid.conf' returned exit code '1', the output was 'ld-elf.so.1: /usr/local/sbin/squid: Undefined symbol "_ZTVNSt3__117bad_function_callE"'
-
Hey that is familiar :
[2.8.0-RELEASE][admin@fw1.man.mylocal]/root: squid -z
ld-elf.so.1: /usr/local/sbin/squid: Undefined symbol "ZTVNSt3__117bad_function callE"Hopefully it is resolved soon!
-
I also have this issue (tried upgrading this morning and had to roll back). No idea if this works as I can't try again until tomorrow.
https://dannyda.com/2025/05/30/how-to-fix-pfsense-community-edition-pfsense-ce-2-8-0-squid-issue/
-
This worked for me, but I don't understand why and if this lib can cause any problems later on.
-
@guilhermemulato That's why I'm not moving forward with 2.8.0 until they fix this issue.
-
@kom that did not resolve the issue for me. Seeing a few other 2.8 gremlins - might look to downgrade for a bit.
-
Apparently just uninstalling then reinstalling squid will fix this issue. The new squid cleans up files left behind by old squid.
-
Is this issue fixed if you reinstall squid after updating?
-
@aGeekhere said in Squid: "Undefined symbol "_ZTVNSt3__117bad_function_callE" after upgrade to 2.8:
Is this issue fixed if you reinstall squid after updating?
Before reinstalling, you need to move the library so that it's no longer present in /usr/lib (e.g. by running "mv /usr/lib/libc++.so.1 /root").
See:
https://forum.netgate.com/topic/197595/now-available-pfsense-ce-2-8-0-release/7
https://forum.netgate.com/topic/195424/after-upgrade-to-24-11-squid-doesn-t-start/42 -
@snow said in Squid: "Undefined symbol "_ZTVNSt3__117bad_function_callE" after upgrade to 2.8:
https://forum.netgate.com/topic/197595/now-available-pfsense-ce-2-8-0-release/7
Hmm so should the order be
uninstall squid,
update pfsense + reboot
mv /usr/lib/libc++.so.1 /root
install squid -
Yes, you can do it in the mentioned order.
-
@aGeekhere I just tried it. It does not fix the problem. I'm also not comfortable with the 'move lib somewhere else' fix as I don't know what side-effects it may have and I don't know how a future upgrade will handle it.
-
@KOM Has the issue been added to the bug tracker?
-
@aGeekhere No idea.
-
See https://redmine.pfsense.org/issues/16262