Bug 269709 - graphics/p5-Barcode-ZBar does not work
Summary: graphics/p5-Barcode-ZBar does not work
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Michael Gmelin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-20 10:02 UTC by Konstantin Stroykovskiy
Modified: 2024-12-15 13:10 UTC (History)
1 user (show)

See Also:
bonkor: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(-)