openwrt / openwrt/packages

<perl - Compress::Zlib> not allowed while "strict subs" in use at /usr/lib/perl5/5.28/IO/Compress/Zlib/Extra.pm

Open
#8,326 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Maintainer: @cshoredaniel , @robho @Naoir
Environment: (kirkwood, NSA310, OpenWrt master - Linux version 4.14.103 () (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r9136-f4d6e8f98f)) #0 Fri Mar 1 22:51:19 2019 )

Description:
After fresh install of package "perlbase-compress - 5.28.1-1" I have below issue

root@NSA310:~# perl -MCompress::Zlib -e '1'
Bareword "GZIP_FEXTRA_SUBFIELD_ID_SIZE" not allowed while "strict subs" in use at /usr/lib/perl5/5.28/IO/Compress/Zlib/Extra.pm line 40.
Bareword "GZIP_FEXTRA_SUBFIELD_MAX_SIZE" not allowed while "strict subs" in use at /usr/lib/perl5/5.28/IO/Compress/Zlib/Extra.pm line 47.
Compilation failed in require at /usr/lib/perl5/5.28/IO/Compress/Gzip.pm line 16.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.28/IO/Compress/Gzip.pm line 16.
Compilation failed in require at /usr/lib/perl5/5.28/Compress/Zlib.pm line 12.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.28/Compress/Zlib.pm line 12.
Compilation failed in require.
BEGIN failed--compilation aborted.

Also I have issue that perl have to be compile with image. Otherwise modules are not seen by perl.

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

Start by reproducing perl -MCompress::Zlib -e '1' in the reported OpenWrt environment, then inspect the perlbase-compress package and the referenced IO/Compress/Zlib/Extra.pm, Gzip.pm, and Compress/Zlib.pm paths. Done means Compress::Zlib loads without the strict-subs errors and the installed modules are visible without requiring the reported image compilation workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.