perl-dbi: Can't load '/usr/lib/perl5/5.28/auto/DBI/DBI.so
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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