Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Feb 2023 10:02:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        perl@FreeBSD.org
Subject:   [Bug 269709] graphics/p5-Barcode-ZBar does not work
Message-ID:  <bug-269709-14331@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269709

            Bug ID: 269709
           Summary: graphics/p5-Barcode-ZBar does not work
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: perl@FreeBSD.org
          Reporter: bonkor@gmail.com
          Assignee: perl@FreeBSD.org
             Flags: maintainer-feedback?(perl@FreeBSD.org)

graphics/p5-Barcode-ZBar depends of libzbar.so but libzbar.so is not mentio=
ned
in LDDLFLAGS string in resulting Makefile
LDDLFLAGS =3D -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 z=
bar
[kostya@www:~]$=20
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: Undefin=
ed
symbol "zbar_get_symbol_name"
[kostya@www:~]$

if we change string LDDLFLAGS to
LDDLFLAGS =3D -shared  -L/usr/local/lib/perl5/5.32/mach/CORE -lperl -lzbar
-L/usr/local/lib -fstack-protector-strong

library work fine.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269709-14331>