openwrt / openwrt/packages

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

Open
#24,757 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

release/23.05 stale
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report points to lang/perl-dbi on the openwrt-22.03 branch and provides a dbread.pl reproducer. Start by reproducing the DBI load failure on OpenWrt 23.05.3, then inspect the package and the reported Perl DynaLoader error. Done means the example script can load DBI without the missing-symbol error.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.