Name "BerkeleyDB::Term::Db" used only once

Bug #303846 reported by John Relph
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libberkeleydb-perl (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: libberkeleydb-perl

I recently upgraded to Ubuntu 8.10 from 8.04. Now, when I use the perl module BerkeleyDB I see a warning:

Name "BerkeleyDB::Term::Db" used only once: possible typo at /usr/lib/perl5/BerkeleyDB.pm line 982.

This error is in the perl module included in the "libberkeleydb-perl" package, version 0.34-1build1 is installed.

What can I do about it?

My perl code includes "use BerkeleyDB;" and ties a hash:

tie %{$hash}, 'BerkeleyDB::Btree', -Filename => $fn, -Flags => DB_CREATE;

The error is not in my code. This code worked fine under Hardy and Gutsy. The code still works fine, but I get the warning now. And I don't want to get the warning.

$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10

Revision history for this message
frankie (frankie-etsetb) wrote :

Hi. Though it is only a warning, it is quite annoying, I work it around changing this file:

    /usr/lib/perl5/BerkeleyDB.pm

Around line 1054, change the line with _db_open_hash like this:

        my $addr;
        {
            no warnings;
            ($addr) = _db_open_hash($self, $got);
        }

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

Other bug subscribers

Related questions

Remote bug watches

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