Bug 269709

Summary: graphics/p5-Barcode-ZBar does not work
Product: Ports & Packages Reporter: Konstantin Stroykovskiy <bonkor>
Component: Individual Port(s)Assignee: Michael Gmelin <grembo>
Status: Closed FIXED    
Severity: Affects Many People CC: grembo
Priority: --- Flags: bonkor: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   

Description Konstantin Stroykovskiy 2023-02-20 10:02:49 UTC
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.
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-12-15 13:09:36 UTC
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(-)