BigRat fails to load unless an additional Perl path is specified

Bug #2001735 reported by Antanas Vaitkus
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libmath-bigint-gmp-perl (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

== Ubuntu release version ==

Description: Ubuntu 22.04.1 LTS
Release: 22.04

The issue manifests on a fresh install of Ubuntu 22.04.1 after installing all of the updates and the libmath-bigint-gmp-perl package. The same issue does not manifest in Debian 11.6.0.

== Package version ==

libmath-bigint-gmp-perl:
  Installed: 1.6010-1build1
  Candidate: 1.6010-1build1
  Version table:
 *** 1.6010-1build1 500
        500 http://lt.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        100 /var/lib/dpkg/status

== Expected behaviour ==

The expected behaviour is that upon installing the libmath-bigint-gmp-perl package the Math::BigRat library properly loads in Perl scripts without the need to specify any additional Perl paths.

Example of a Bash command that should silently properly execute:

$ perl -e "use Math::BigRat try => 'GMP';"

== Actual behaviour ==

Upon running the following Bash command:

$ perl -e "use Math::BigRat try => 'GMP';"

the following error message is generated instead:

> Undefined subroutine &Math::BigInt::_register_callback called at /usr/share/perl/5.34/Math/BigRat.pm line 2096.
> BEGIN failed--compilation aborted at -e line 1.

Furthermore, is the original command is run with an updated PERL5LIB variable, the library properly loads as expected, e.g.:

PERL5LIB=/usr/share/perl/5.34 perl -e "use Math::BigRat try => 'GMP';"

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libmath-bigint-gmp-perl (Ubuntu):
status: New → Confirmed
Revision history for this message
Antanas Vaitkus (antanas-vaitkus) wrote :

The issues still manifests in Ubuntu 22.04.03, but does not manifest in Ubuntu 22.10 or Ubuntu 23.04.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.