Problem upgrading DBI using CPAN (module test suite fails)
Problem upgrading DBI using CPAN (module test suite fails)
am 06.09.2006 03:28:37 von jpease
Hi, I'm having troubles trying to upgrade the DBI module in Perl. When I
do the following (as root):
/usr/bin/perl -MCPAN -e 'install "DBI"'
it downloads the new module, builds everything, and then starts running
the make test portion of the install. During this process, I get the
following output (after a bunch of other successful tests):
t/zvpp_72childhandles....NOK 3# Failed test (t/72childhandles.t at
line 43)
# got: '0'
# expected: '10'
t/zvpp_72childhandles....NOK 4# Failed test (t/72childhandles.t at
line 50)
# got: '0'
# expected: '10'
t/zvpp_72childhandles....NOK 7# Failed test (t/72childhandles.t at
line 76)
# got: '0'
# expected: '200'
Use of uninitialized value in print at t/72childhandles.t line 89.
Use of uninitialized value in print at t/72childhandles.t line 89.
Use of uninitialized value in print at t/72childhandles.t line 89.
Use of uninitialized value in print at t/72childhandles.t line 89.
t/zvpp_72childhandles....NOK 8# Failed test (t/72childhandles.t at
line 91)
# got: '1'
# expected: '202'
t/zvpp_72childhandles....NOK 10# Failed test (t/72childhandles.t at
line 93)# undef
# doesn't match '(?-xism:^dbh)'
t/zvpp_72childhandles....NOK 11# Failed test (t/72childhandles.t at
line 94)# undef
# doesn't match '(?-xism:^sth)'
t/zvpp_72childhandles....ok 14/14# Looks like you failed 6 tests of 14.
t/zvpp_72childhandles....dubious
Test returned status 6 (wstat 1536, 0x600)
DIED. FAILED tests 3-4, 7-8, 10-11
Failed 6/14 tests, 57.14% okay
t/zvpp_80proxy...........skipped
all skipped: modules required for proxy are probably not installed
(e.g., RPC/PlClient.pm)
Failed Test Stat Wstat Total Fail Failed List of Failed
------------------------------------------------------------ -------------------
t/zvpp_72childhandles.t 6 1536 14 6 42.86% 3-4 7-8 10-11
10 tests and 140 subtests skipped.
Failed 1/49 test scripts, 97.96% okay. 6/2320 subtests failed, 99.74% okay.
make: *** [test_dynamic] Error 29
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
I already have an older version of DBI installed (need to upgrade in order
to install Bugzilla), and I don't otherwise think there's anything magical
about my existing Perl install or my server setup.
I really have no idea how to proceed from this point. Any ideas?
Re: Problem upgrading DBI using CPAN (module test suite fails)
am 06.09.2006 03:37:24 von stuart.cooper
> /usr/bin/perl -MCPAN -e 'install "DBI"'
> it downloads the new module, builds everything, and then starts running
> the make test portion of the install. During this process, I get the
> following output (after a bunch of other successful tests):
> /usr/bin/make test -- NOT OK
> Running make install
> make test had returned bad status, won't install without force
>
>
> I already have an older version of DBI installed (need to upgrade in order
> to install Bugzilla), and I don't otherwise think there's anything magical
> about my existing Perl install or my server setup.
> I really have no idea how to proceed from this point. Any ideas?
Since most of the tests passed, if you're confident enough in the new DBI
you can
/usr/bin/perl -MCPAN -e 'force install "DBI"'
Cheers,
Stuart.
Re: Problem upgrading DBI using CPAN (module test suite fails)
am 06.09.2006 04:32:52 von turkeydelight
------=_Part_128506_19406685.1157509972140
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
For what its worth ( not a whole lot), my make test failed on those same
t/72childhandles ( AIX 5.2, perl 5.6?? - i can verify tomorrow if wanted).
I decided to go on despite the errors and had no problems.....yet. Mostly
because Im in design/test phase.
my make install went without error.
On 9/5/06, Stuart Cooper wrote:
>
> > /usr/bin/perl -MCPAN -e 'install "DBI"'
>
> > it downloads the new module, builds everything, and then starts running
> > the make test portion of the install. During this process, I get the
> > following output (after a bunch of other successful tests):
>
>
>
> > /usr/bin/make test -- NOT OK
> > Running make install
> > make test had returned bad status, won't install without force
> >
> >
> > I already have an older version of DBI installed (need to upgrade in
> order
> > to install Bugzilla), and I don't otherwise think there's anything
> magical
> > about my existing Perl install or my server setup.
>
> > I really have no idea how to proceed from this point. Any ideas?
>
> Since most of the tests passed, if you're confident enough in the new DBI
> you can
> /usr/bin/perl -MCPAN -e 'force install "DBI"'
>
> Cheers,
> Stuart.
>
--
--------------------------------------------------------
Why is this technology an anathema to me?
------=_Part_128506_19406685.1157509972140--
Re: Problem upgrading DBI using CPAN (module test suite fails)
am 06.09.2006 06:24:56 von greggallen
On Sep 5, 2006, at 8:32 PM, Jack Faley ( The Tao of Jack ) wrote:
> For what its worth ( not a whole lot), my make test failed on those
> same
> t/72childhandles ( AIX 5.2, perl 5.6?? - i can verify tomorrow if
> wanted).
> I decided to go on despite the errors and had no problems.....yet.
> Mostly
> because Im in design/test phase.
> my make install went without error.
>
>
>
Do you already have the client software for your database installed?
That is normally a prerequisite.
Good Luck,
Gregg Allen
I.T. Specialist
RippyFish Records
>
To err is Human: Extremely effective mayhem requires the root password!
> On 9/5/06, Stuart Cooper wrote:
>>
>> > /usr/bin/perl -MCPAN -e 'install "DBI"'
>>
>> > it downloads the new module, builds everything, and then starts
>> running
>> > the make test portion of the install. During this process, I get the
>> > following output (after a bunch of other successful tests):
>>
>>
>>
>> > /usr/bin/make test -- NOT OK
>> > Running make install
>> > make test had returned bad status, won't install without force
>> >
>> >
>> > I already have an older version of DBI installed (need to upgrade in
>> order
>> > to install Bugzilla), and I don't otherwise think there's anything
>> magical
>> > about my existing Perl install or my server setup.
>>
>> > I really have no idea how to proceed from this point. Any ideas?
>>
>> Since most of the tests passed, if you're confident enough in the new
>> DBI
>> you can
>> /usr/bin/perl -MCPAN -e 'force install "DBI"'
>>
>> Cheers,
>> Stuart.
>>
>
>
>
> --
> --------------------------------------------------------
> Why is this technology an anathema to me?
Re: Problem upgrading DBI using CPAN (module test suite fails)
am 06.09.2006 06:44:29 von turkeydelight
------=_Part_130038_4833934.1157517869329
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
On 9/5/06, greggallen@gmail.com wrote:
>
>
>
>
> On Sep 5, 2006, at 8:32 PM, Jack Faley ( The Tao of Jack ) wrote:
>
> > For what its worth ( not a whole lot), my make test failed on those
> > same
> > t/72childhandles ( AIX 5.2, perl 5.6?? - i can verify tomorrow if
> > wanted).
> > I decided to go on despite the errors and had no problems.....yet.
> > Mostly
> > because Im in design/test phase.
> > my make install went without error.
> >
> >
> >
>
> Do you already have the client software for your database installed?
> That is normally a prerequisite.
Do you mean the runtime application or the DBD? The runtime was installed.
As far as I remember when I was installing it said the DBI needed to be
installed first and when the make test failed and I tried to install the DBD
just for kicks it needed the DBI first.
Did I answer your question?
Good Luck,
>
>
> Gregg Allen
> I.T. Specialist
> RippyFish Records
> >
>
>
> To err is Human: Extremely effective mayhem requires the root password!
>
> > On 9/5/06, Stuart Cooper wrote:
> >>
> >> > /usr/bin/perl -MCPAN -e 'install "DBI"'
> >>
> >> > it downloads the new module, builds everything, and then starts
> >> running
> >> > the make test portion of the install. During this process, I get the
> >> > following output (after a bunch of other successful tests):
> >>
> >>
> >>
> >> > /usr/bin/make test -- NOT OK
> >> > Running make install
> >> > make test had returned bad status, won't install without force
> >> >
> >> >
> >> > I already have an older version of DBI installed (need to upgrade in
> >> order
> >> > to install Bugzilla), and I don't otherwise think there's anything
> >> magical
> >> > about my existing Perl install or my server setup.
> >>
> >> > I really have no idea how to proceed from this point. Any ideas?
> >>
> >> Since most of the tests passed, if you're confident enough in the new
> >> DBI
> >> you can
> >> /usr/bin/perl -MCPAN -e 'force install "DBI"'
> >>
> >> Cheers,
> >> Stuart.
> >>
> >
> >
> >
> > --
> > --------------------------------------------------------
> > Why is this technology an anathema to me?
>
>
--
--------------------------------------------------------
Why is this technology an anathema to me?
------=_Part_130038_4833934.1157517869329--
Re: Problem upgrading DBI using CPAN (module test suite fails)
am 06.09.2006 06:48:28 von turkeydelight
------=_Part_130106_30834756.1157518108090
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Infact, though I did have the db software installed I did NOT have any
databases cataloged or aliased. Would that be the issue?
On 9/5/06, Jack Faley ( The Tao of Jack ) wrote:
>
>
>
> On 9/5/06, greggallen@gmail.com wrote:
> >
> >
> >
> >
> > On Sep 5, 2006, at 8:32 PM, Jack Faley ( The Tao of Jack ) wrote:
> >
> > > For what its worth ( not a whole lot), my make test failed on those
> > > same
> > > t/72childhandles ( AIX 5.2, perl 5.6?? - i can verify tomorrow if
> > > wanted).
> > > I decided to go on despite the errors and had no problems.....yet.
> > > Mostly
> > > because Im in design/test phase.
> > > my make install went without error.
> > >
> > >
> > >
> >
> > Do you already have the client software for your database installed?
> > That is normally a prerequisite.
>
>
>
>
>
> Do you mean the runtime application or the DBD? The runtime was installed.
> As far as I remember when I was installing it said the DBI needed to be
> installed first and when the make test failed and I tried to install the DBD
> just for kicks it needed the DBI first.
>
> Did I answer your question?
>
>
>
>
>
>
> Good Luck,
> >
> >
> > Gregg Allen
> > I.T. Specialist
> > RippyFish Records
> > >
> >
> >
> > To err is Human: Extremely effective mayhem requires the root password!
> >
> > > On 9/5/06, Stuart Cooper wrote:
> > >>
> > >> > /usr/bin/perl -MCPAN -e 'install "DBI"'
> > >>
> > >> > it downloads the new module, builds everything, and then starts
> > >> running
> > >> > the make test portion of the install. During this process, I get
> > the
> > >> > following output (after a bunch of other successful tests):
> > >>
> > >>
> > >>
> > >> > /usr/bin/make test -- NOT OK
> > >> > Running make install
> > >> > make test had returned bad status, won't install without force
> > >> >
> > >> >
> > >> > I already have an older version of DBI installed (need to upgrade
> > in
> > >> order
> > >> > to install Bugzilla), and I don't otherwise think there's anything
> > >> magical
> > >> > about my existing Perl install or my server setup.
> > >>
> > >> > I really have no idea how to proceed from this point. Any ideas?
> > >>
> > >> Since most of the tests passed, if you're confident enough in the new
> >
> > >> DBI
> > >> you can
> > >> /usr/bin/perl -MCPAN -e 'force install "DBI"'
> > >>
> > >> Cheers,
> > >> Stuart.
> > >>
> > >
> > >
> > >
> > > --
> > > --------------------------------------------------------
> > > Why is this technology an anathema to me?
> >
> >
>
>
> --
> --------------------------------------------------------
> Why is this technology an anathema to me?
>
--
--------------------------------------------------------
Why is this technology an anathema to me?
------=_Part_130106_30834756.1157518108090--
Re: Problem upgrading DBI using CPAN (module test suite fails)
am 06.09.2006 10:26:22 von greggallen
--Apple-Mail-3-982839459
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
To err is Human: Extremely effective mayhem requires the root password!
On Sep 5, 2006, at 10:48 PM, Jack Faley ( The Tao of Jack ) wrote:
> Infact, though I did have the db software installed I did NOT have any
> databases cataloged or aliased. Would that be the issue?
>
>
I don't see why that would be a problem, but I'm not certain. My only
experience is with MySQL. When I installed the client using binaries,
I had some problems, but when I compiled my client from source, it
linked to "mysql.h" and worked fine.
What DB are you using? I'm sort of a "source-a-holic" (like an alco-
but with source code - oh, never mind) so if you're not doing
"roll-your-own'" it's out of me and the DEA's jurisdiction.
Sincerely, Good Luck, and Peace,
Gregg Allen
I.T. Nerd and token non-conformist,
RippYFish Records
If you like music, please vote for my friends at:
http://www.rippyfest.com/meanmollystrio
> On 9/5/06, Jack Faley ( The Tao of Jack )
> wrote:
>>
>>
>>
>> On 9/5/06, greggallen@gmail.com wrote:
>> >
>> >
>> >
>> >
>> > On Sep 5, 2006, at 8:32 PM, Jack Faley ( The Tao of Jack ) wrote:
>> >
>> > > For what its worth ( not a whole lot), my make test failed on
>> those
>> > > same
>> > > t/72childhandles ( AIX 5.2, perl 5.6?? - i can verify tomorrow
>> if
>> > > wanted).
>> > > I decided to go on despite the errors and had no problems.....yet.
>> > > Mostly
>> > > because Im in design/test phase.
>> > > my make install went without error.
>> > >
>> > >
>> > >
>> >
>> > Do you already have the client software for your database installed?
>> > That is normally a prerequisite.
>>
>>
>>
>>
>>
>> Do you mean the runtime application or the DBD? The runtime was
>> installed.
>> As far as I remember when I was installing it said the DBI needed to
>> be
>> installed first and when the make test failed and I tried to install
>> the DBD
>> just for kicks it needed the DBI first.
>>
>> Did I answer your question?
>>
>>
>>
>>
>>
>>
>> Good Luck,
>> >
>> >
>> > Gregg Allen
>> > I.T. Specialist
>> > RippyFish Records
>> > >
>> >
>> >
>> > To err is Human: Extremely effective mayhem requires the root
>> password!
>> >
>> > > On 9/5/06, Stuart Cooper wrote:
>> > >>
>> > >> > /usr/bin/perl -MCPAN -e 'install "DBI"'
>> > >>
>> > >> > it downloads the new module, builds everything, and then starts
>> > >> running
>> > >> > the make test portion of the install. During this process, I
>> get
>> > the
>> > >> > following output (after a bunch of other successful tests):
>> > >>
>> > >>
>> > >>
>> > >> > /usr/bin/make test -- NOT OK
>> > >> > Running make install
>> > >> > make test had returned bad status, won't install without
>> force
>> > >> >
>> > >> >
>> > >> > I already have an older version of DBI installed (need to
>> upgrade
>> > in
>> > >> order
>> > >> > to install Bugzilla), and I don't otherwise think there's
>> anything
>> > >> magical
>> > >> > about my existing Perl install or my server setup.
>> > >>
>> > >> > I really have no idea how to proceed from this point. Any
>> ideas?
>> > >>
>> > >> Since most of the tests passed, if you're confident enough in
>> the new
>> >
>> > >> DBI
>> > >> you can
>> > >> /usr/bin/perl -MCPAN -e 'force install "DBI"'
>> > >>
>> > >> Cheers,
>> > >> Stuart.
>> > >>
>> > >
>> > >
>> > >
>> > > --
>> > > --------------------------------------------------------
>> > > Why is this technology an anathema to me?
>> >
>> >
>>
>>
>> --
>> --------------------------------------------------------
>> Why is this technology an anathema to me?
>>
>
>
>
> --
> --------------------------------------------------------
> Why is this technology an anathema to me?
--Apple-Mail-3-982839459--
Re: Problem upgrading DBI using CPAN (module test suite fails)
am 17.09.2006 21:11:27 von turkeydelight
------=_Part_171588_15886320.1158520287309
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
On 9/6/06, greggallen@gmail.com wrote:
>
>
> To err is Human: Extremely effective mayhem requires the root password!
>
> On Sep 5, 2006, at 10:48 PM, Jack Faley ( The Tao of Jack ) wrote:
>
> > Infact, though I did have the db software installed I did NOT have any
> > databases cataloged or aliased. Would that be the issue?
> >
> >
>
> I don't see why that would be a problem, but I'm not certain. My only
> experience is with MySQL. When I installed the client using binaries,
> I had some problems, but when I compiled my client from source, it
> linked to "mysql.h" and worked fine.
>
> What DB are you using? I'm sort of a "source-a-holic" (like an alco-
> but with source code - oh, never mind) so if you're not doing
> "roll-your-own'" it's out of me and the DEA's jurisdiction.
>
> Sincerely, Good Luck, and Peace,
>
>
> Gregg Allen
> I.T. Nerd and token non-conformist,
> RippYFish Records
> If you like music, please vote for my friends at:
> http://www.rippyfest.com/meanmollystrio
>
>
>
>
>
>
>
> > On 9/5/06, Jack Faley ( The Tao of Jack )
> > wrote:
> >>
> >>
> >>
> >> On 9/5/06, greggallen@gmail.com wrote:
> >> >
> >> >
> >> >
> >> >
> >> > On Sep 5, 2006, at 8:32 PM, Jack Faley ( The Tao of Jack ) wrote:
> >> >
> >> > > For what its worth ( not a whole lot), my make test failed on
> >> those
> >> > > same
> >> > > t/72childhandles ( AIX 5.2, perl 5.6?? - i can verify tomorrow
> >> if
> >> > > wanted).
> >> > > I decided to go on despite the errors and had no problems.....yet.
> >> > > Mostly
> >> > > because Im in design/test phase.
> >> > > my make install went without error.
> >> > >
> >> > >
> >> > >
> >> >
> >> > Do you already have the client software for your database installed?
> >> > That is normally a prerequisite.
> >>
> >>
> >>
> >>
> >>
> >> Do you mean the runtime application or the DBD? The runtime was
> >> installed.
> >> As far as I remember when I was installing it said the DBI needed to
> >> be
> >> installed first and when the make test failed and I tried to install
> >> the DBD
> >> just for kicks it needed the DBI first.
> >>
> >> Did I answer your question?
> >>
> >>
> >>
> >>
> >>
> >>
> >> Good Luck,
> >> >
> >> >
> >> > Gregg Allen
> >> > I.T. Specialist
> >> > RippyFish Records
> >> > >
> >> >
> >> >
> >> > To err is Human: Extremely effective mayhem requires the root
> >> password!
> >> >
> >> > > On 9/5/06, Stuart Cooper wrote:
> >> > >>
> >> > >> > /usr/bin/perl -MCPAN -e 'install "DBI"'
> >> > >>
> >> > >> > it downloads the new module, builds everything, and then starts
> >> > >> running
> >> > >> > the make test portion of the install. During this process, I
> >> get
> >> > the
> >> > >> > following output (after a bunch of other successful tests):
> >> > >>
> >> > >>
> >> > >>
> >> > >> > /usr/bin/make test -- NOT OK
> >> > >> > Running make install
> >> > >> > make test had returned bad status, won't install without
> >> force
> >> > >> >
> >> > >> >
> >> > >> > I already have an older version of DBI installed (need to
> >> upgrade
> >> > in
> >> > >> order
> >> > >> > to install Bugzilla), and I don't otherwise think there's
> >> anything
> >> > >> magical
> >> > >> > about my existing Perl install or my server setup.
> >> > >>
> >> > >> > I really have no idea how to proceed from this point. Any
> >> ideas?
> >> > >>
> >> > >> Since most of the tests passed, if you're confident enough in
> >> the new
> >> >
> >> > >> DBI
> >> > >> you can
> >> > >> /usr/bin/perl -MCPAN -e 'force install "DBI"'
> >> > >>
> >> > >> Cheers,
> >> > >> Stuart.
> >> > >>
> >> > >
> >> > >
> >
To quickly ressurect this, I learned the issue. There is a bug in the early
versions of perl 5.8.*
I used the patch found in the dbi-dev list from Tim Bunce to fix it and it
makes me feel a lot better thgat something is lurking out there to bite me:
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="weaken.txt"
Author: timbo
Date: Mon Sep 4 06:40:38 2006
New Revision: 6843
Modified:
dbi/trunk/Changes
dbi/trunk/lib/DBI/PurePerl.pm
dbi/trunk/t/72childhandles.t
Log:
Fixed checks for weaken to work with early 5.8.x versions
Modified: dbi/trunk/Changes
============================================================ ==================
--- dbi/trunk/Changes (original)
+++ dbi/trunk/Changes Mon Sep 4 06:40:38 2006
@@ -6,6 +6,10 @@
XXX update docs for Profile &subname magic Path elements
+=head2 Changes in DBI 1.53 (svn rev XXX), XXX 2006
+
+ Fixed checks for weaken to work with early 5.8.x versions
+
=head2 Changes in DBI 1.52 (svn rev 6840), 30th July 2006
Fixed memory leak (per handle) thanks to Nicholas Clark and Ephraim Dan.
Modified: dbi/trunk/lib/DBI/PurePerl.pm
============================================================ ==================
--- dbi/trunk/lib/DBI/PurePerl.pm (original)
+++ dbi/trunk/lib/DBI/PurePerl.pm Mon Sep 4 06:40:38 2006
@@ -42,7 +42,7 @@
my $HAS_WEAKEN = eval {
require Scalar::Util;
# this will croak() if this Scalar::Util doesn't have a working weaken().
- Scalar::Util::weaken(my $test = \"foo");
+ Scalar::Util::weaken( my $test = [] );
1;
};
Modified: dbi/trunk/t/72childhandles.t
============================================================ ==================
--- dbi/trunk/t/72childhandles.t (original)
+++ dbi/trunk/t/72childhandles.t Mon Sep 4 06:40:38 2006
@@ -13,7 +13,7 @@
my $HAS_WEAKEN = eval {
require Scalar::Util;
# this will croak() if this Scalar::Util doesn't have a working weaken().
- Scalar::Util::weaken( \my $test ); # same test as in DBI.pm
+ Scalar::Util::weaken( my $test = [] ); # same test as in DBI.pm
1;
};
if (!$HAS_WEAKEN) {
--BOKacYhQ+x31HxR3--
------=_Part_171588_15886320.1158520287309--
t/zvpp_72childhandles not ok (Re: Problem upgrading DBI using CPAN (module test suite fails))
am 18.09.2006 10:14:16 von Tim.Bunce
On Tue, Sep 05, 2006 at 06:28:37PM -0700, jpease@jesush.com wrote:
> Hi, I'm having troubles trying to upgrade the DBI module in Perl. When I
> do the following (as root):
>
> /usr/bin/perl -MCPAN -e 'install "DBI"'
>
> it downloads the new module, builds everything, and then starts running
> the make test portion of the install. During this process, I get the
> following output (after a bunch of other successful tests):
>
> t/zvpp_72childhandles....NOK 3# Failed test (t/72childhandles.t at line 43)
The test for weak reference support doesn't work properly with early
version of perl 5.8.x. (Fixed for the next DBI release.)
> I really have no idea how to proceed from this point. Any ideas?
Since that's the only failure and, I presume you don't want to use both
the ChildHandle attribute and DBI::PurePerl, you can go ahead and
force the installation (using "force install DBI" in the cpan shell).
Tim.