ld-elf.so.1: /usr/local/lib/firefox/libxul.so: Undefined symbol "epoll_shim_read" libepoll-shim is installed. Looks like libxul.so hasn't been linked with that.
Please: which version of Firefox, which version of FreeBSD? No problem here; % pkg info -x firefox firefox-90.0.2,2 % date ; uname -KrU Fri 30 Jul 2021 08:41:39 BST 14.0-CURRENT 1400026 1400026 %
I got this too on 12.2-RELEASE-p6 with latest FF from packages.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=f9af88868ddbbc81bf16226dc529a550a387e589 commit f9af88868ddbbc81bf16226dc529a550a387e589 Author: Christoph Moench-Tegeder <cmt@FreeBSD.org> AuthorDate: 2021-08-14 21:13:09 +0000 Commit: Christoph Moench-Tegeder <cmt@FreeBSD.org> CommitDate: 2021-08-14 21:13:09 +0000 www/firefox: depend on libepoll-shim libxul.so clearly links against libepoll-shim, and we have reports of firefox failing to start without libepoll-shim. this also affects mail/thunderbird (once we land it), so fix the problem in bsd.gecko.mk. First reports are against firefox 90, set the version cutoff accordingly. PR: 257490 Reported by: Maxim Filimonov Mk/bsd.gecko.mk | 3 +++ www/firefox/Makefile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)
A commit in branch 2021Q3 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=ddd062a23ce3d4bd78b98d6ecfae2afa4725753b commit ddd062a23ce3d4bd78b98d6ecfae2afa4725753b Author: Christoph Moench-Tegeder <cmt@FreeBSD.org> AuthorDate: 2021-08-14 21:13:09 +0000 Commit: Christoph Moench-Tegeder <cmt@FreeBSD.org> CommitDate: 2021-08-14 21:17:13 +0000 www/firefox: depend on libepoll-shim libxul.so clearly links against libepoll-shim, and we have reports of firefox failing to start without libepoll-shim. this also affects mail/thunderbird (once we land it), so fix the problem in bsd.gecko.mk. First reports are against firefox 90, set the version cutoff accordingly. PR: 257490 Reported by: Maxim Filimonov (cherry picked from commit f9af88868ddbbc81bf16226dc529a550a387e589) Mk/bsd.gecko.mk | 3 +++ www/firefox/Makefile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)
So, first register the dependency.. Then: Whad does "ldd /usr/local/lib/firefox/libxul.so" and "/usr/bin/objdump -T /usr/local/lib/libepoll-shim.so" show?
Likely a duplicate of bug 248232. FreeBSD >= 13.0 has eventfd, so libepoll-shim isn't used.
eventfd from libepoll-shim is unusable by Firefox, see https://github.com/jiixyj/epoll-shim/issues/23.