decode-dimms gives warnings about SEEK_SET redefined

Bug #340476 reported by Ralph Corderoy
4
Affects Status Importance Assigned to Milestone
i2c-tools (Debian)
Fix Released
Unknown
i2c-tools (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Binary package hint: i2c-tools

Ubuntu 8.10, i2c-tools 3.0.1-1.

decode-dimms generates three warnings from Perl on running.

    $ decode-dimms >/dev/null
    Constant subroutine main::SEEK_SET redefined at /usr/bin/decode-dimms line 42
            main::BEGIN() called at /usr/bin/decode-dimms line 42
            eval {...} called at /usr/bin/decode-dimms line 42
    Constant subroutine main::SEEK_CUR redefined at /usr/bin/decode-dimms line 42
            main::BEGIN() called at /usr/bin/decode-dimms line 42
            eval {...} called at /usr/bin/decode-dimms line 42
    Constant subroutine main::SEEK_END redefined at /usr/bin/decode-dimms line 42
            main::BEGIN() called at /usr/bin/decode-dimms line 42
            eval {...} called at /usr/bin/decode-dimms line 42
    $

It's because it's pulling in stuff from Fcntl that's already arrived
from POSIX. Here's a simpler way to produce the same warnings.

    perl -we 'use POSIX; use Fcntl qw(:DEFAULT :seek)'

Revision history for this message
Alessio Treglia (quadrispro) wrote :

Forwarded to the Debian maintainer.

Changed in i2c-tools (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Changed in i2c-tools (Debian):
status: Unknown → Fix Released
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.