graphics/p5-Barcode-ZBar depends of libzbar.so but libzbar.so is not mentioned in LDDLFLAGS string in resulting Makefile LDDLFLAGS = -shared -L/usr/local/lib/perl5/5.32/mach/CORE -lperl -L/usr/local/lib -fstack-protector-strong So: [kostya@www:~]$ ldd /usr/local/lib/perl5/site_perl/mach/5.32/auto/Barcode/ZBar/ZBar.so | grep zbar [kostya@www:~]$ and if we start perl-script with use we can see: [kostya@www:~]$ perl -e 'use Barcode::ZBar;' ld-elf.so.1: /usr/local/lib/perl5/site_perl/mach/5.32/auto/Barcode/ZBar/ZBar.so: Undefined symbol "zbar_get_symbol_name" [kostya@www:~]$ if we change string LDDLFLAGS to LDDLFLAGS = -shared -L/usr/local/lib/perl5/5.32/mach/CORE -lperl -lzbar -L/usr/local/lib -fstack-protector-strong library work fine.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=1aece41b9285f894934c3f55270ac69ccb993226 commit 1aece41b9285f894934c3f55270ac69ccb993226 Author: Michael Gmelin <grembo@FreeBSD.org> AuthorDate: 2024-12-15 13:06:47 +0000 Commit: Michael Gmelin <grembo@FreeBSD.org> CommitDate: 2024-12-15 13:08:45 +0000 graphics/p5-Barcode-ZBar: Runtime fix Link to zbar library. PR: 269709 graphics/p5-Barcode-ZBar/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)