openwrt / packages

Community maintained packages for OpenWrt. Documentation for submitting pull requests is in CONTRIBUTING.md
GNU General Public License v2.0
4.05k stars 3.51k forks source link

perl-dbi: Can't load '/usr/lib/perl5/5.28/auto/DBI/DBI.so #24757

Open freebyte opened 3 months ago

freebyte commented 3 months ago

Issue template (remove lines from top till here)

Maintainer: @\neheb (https://github.com/openwrt/packages/tree/openwrt-22.03/lang/perl-dbi) Environment:

Linux OpenWrt 5.15.150 #0 SMP Fri Mar 22 22:09:42 2024 aarch64 GNU/Linux OpenWRT version: 23.05.3 r23809-234f1a2efa

Description:

Running:

cat dbread.pl 
#!/usr/bin/perl
use strict;
use DBI;

results in

Can't load '/usr/lib/perl5/5.28/auto/DBI/DBI.so' for module DBI: Error relocating /usr/lib/perl5/5.28/auto/DBI/DBI.so: Perl_croak_nocontext: symbol not found at /usr/lib/perl5/5.28/DynaLoader.pm line 159.
 at /usr/lib/perl5/5.28/DBI.pm line 119.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.28/DBI.pm line 119.
Compilation failed in require at dbread.pl line 3.
BEGIN failed--compilation aborted at dbread.pl line 3.

Any way to fix that?

esaaprillia commented 3 months ago

opkg install perl-dbi

root@OpenWrt:~# perl
use strict;
use DBI;