Perl 5.10 prototype mismatch

Bug #303765 reported by Dan Scott
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
perl (Debian)
Fix Released
Unknown
perl (Ubuntu)
Fix Released
Low
Unassigned
Intrepid
Won't Fix
Undecided
Unassigned
Jaunty
Fix Released
Low
Unassigned

Bug Description

Binary package hint: perl

Matches Debian bug 480428 (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=480428)

Perl 5.10 on Intrepid Ibex (x86-32 platform) has the following problem:

$ perl -e "require '_h2ph_pre.ph'"
Prototype mismatch: sub main::__LONG_MAX__ () vs none at /usr/lib/perl/5.10/_h2ph_pre.ph line 291.
Constant subroutine __LONG_MAX__ redefined at /usr/lib/perl/5.10/_h2ph_pre.ph line 291.

Compare lines 188 and 291 of /usr/lib/perl/5.10/_h2ph_pre.ph - looks like the simple fix would be to remove the "gross hack".

$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10

$ apt-cache policy perl
perl:
  Installed: 5.10.0-11.1ubuntu2
  Candidate: 5.10.0-11.1ubuntu2
  Version table:
 *** 5.10.0-11.1ubuntu2 0
        500 http://ubuntu.mirror.rafal.ca intrepid/main Packages
        100 /var/lib/dpkg/status

I expected the 'require' line to work silently. (The warning manifests itself in actual running code from http://open-ils.org/ and isn't just a theoretical problem.)

Tags: patch
Revision history for this message
Dan Scott (denials) wrote :

The attached patch removes the "gross hack" and resolves the problem.

Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

Thanks for reporting this bug and any supporting documentation. Since this bug has enough information provided for a developer to begin work, I'm going to mark it as confirmed and let them handle it from here. Thanks for taking the time to make Ubuntu better!

If you need a fix for the bug in previous versions of Ubuntu, please do steps 1 and 2 of the SRU Procedure [1] to bring the need to a developer's attention.

[1]: https://wiki.ubuntu.com/StableReleaseUpdates#Procedure

Thanks for including the patch.

Changed in perl:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
bcrowell (launchpadcrowell07) wrote :

This bug breaks the package "when" (in universe).

Changed in perl:
status: Unknown → Fix Released
Revision history for this message
Colin Watson (cjwatson) wrote :

This appears to be fixed in Jaunty thanks to the corresponding fix in Debian. Apparently this is more than just a spurious warning in Intrepid, though, so I'll approve the Intrepid task pending further details of the breakage.

Changed in perl (Ubuntu Jaunty):
status: Triaged → Fix Released
Dan Wells (dbw2)
Changed in perl (Ubuntu Jaunty):
status: Fix Released → Fix Committed
status: Fix Committed → Fix Released
tags: added: patch
Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

Ubuntu 8.10, Intrepid Ibex, reached EOL on 2010-04-29.

Please see this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

Please feel free to report any other bugs you may find.

Changed in perl (Ubuntu Intrepid):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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