Re: [PATCH] Get DBI to pass tests with bleadperl (was Re: Status of Perl 5.10 TODO list)



Thanks Steve. Applied.

I hope to make a new DBI release within a few days.

Tim.

On Mon, Oct 23, 2006 at 09:10:38AM -0500, Steve Peters wrote:
On Sat, Oct 14, 2006 at 08:40:14AM +0200, Andreas J. Koenig wrote:
On Fri, 13 Oct 2006 17:00:46 +0200, demerphq <demerphq@xxxxxxxxx> said:

> Are there any other issues not listed above?

Showstopper is that DBI doesn't compile. There seems to be no RT
ticket but xray has some hits:

http://www.xray.mpe.mpg.de/cgi-bin/w3glimpse/perl5-porters?query=breaks+dbi&errors=0&case=on&maxfiles=100&maxlines=30


I seemed to get it to compile, but it blew up on assertions on assertions.
With some help from Nicholas Clark, the following patch gets DBI-1.52 to
compile *and* pass all of its tests.

Steve Peters
steve@xxxxxxxxxxxxxxx

--- DBI.xs.old 2006-10-23 09:08:08.000000000 -0500
+++ DBI.xs 2006-10-23 09:02:50.000000000 -0500
@@ -2615,7 +2615,7 @@
*/
if (SvROK(h) && SvRMAGICAL(SvRV(h)) && (mg=mg_find(SvRV(h),'P'))!=NULL) {

- if (mg->mg_obj==NULL || !SvOK(mg->mg_obj) || SvPVX(mg->mg_obj)==NULL) { /* maybe global destruction */
+ if (mg->mg_obj==NULL || !SvOK(mg->mg_obj) || SvRV(mg->mg_obj)==NULL) { /* maybe global destruction */
if (trace_level >= 3)
PerlIO_printf(DBILOGFP,
"%c <> %s for %s ignored (inner handle gone)\n",

.



Relevant Pages

  • RE: DBI compile on HPUX-11.23
    ... I am literally in the process of building perl 5.8.7 on Itanium ... Subject: DBI compile on HPUX-11.23 ... since there's no INSTALL document I'm having problem with the ...
    (perl.dbi.users)
  • Fw: DBI problem to connect to a solid db
    ... What Platform are you on? ... You need to download and compile the DBI and the DBD::Solid packages. ... Then review the README file from the DBD-Solid package for setting up the ...
    (perl.dbi.users)
  • RE: compiling under windows and question mark in fields
    ... > Does anyone have a good pointer on what's required to compile DBI ... > under Windows (using the ActiveState base)? ... The general rule is you need the same compiler that was used to compile the ...
    (perl.dbi.users)
  • RE: Perl DBI Urgent
    ... I thought you said you are on perl 5.8 not perl 5.6? ... DBI is failing so there is no ... If you have a c compiler and just need to install perl modules get any ... eventually compile DBI and DBD Oracle. ...
    (perl.dbi.users)
  • Re: DBD::Oracle 1.18 installation problem
    ... In order for it to work at all you have to compile any additional ... modules with the same compiler that perl was ... Get your own perl but make sure you don't install it over the one that ... Dunno if this is relavant but when I installed the Linux version of the Oracle 10gR2 client, it included Perl 5.8.3 with the DBI and DBD::Oracle modules alreday compiled and ready to go. ...
    (perl.dbi.users)