As with Jonathan and Darren I get a number of:

Perl.c:86: warning: unused parameter `cv' during make.

I also get:

cc -c   -W -Wall -Wpointer-arith -Wmissing-noreturn -Wbad-function-cast
-Wno-comment -Wno-sign-compare -Wno-cast-qual -Wdisabled-optimization -O2  
-DVERSION=\"1.49\" -DXS_VERSION=\"1.49\" -fpic
"-I/usr/local/lib/perl5/5.8.0/i686-linux/CORE"  -DDBI_NO_THREADS Perl.c
cc1: Invalid option `-Wmissing-noreturn'
cc1: Invalid option `-Wdisabled-optimization'
Perl.xs: In function `dbd_st_rows':
Perl.xs:39: warning: unused parameter `h'

and it eventually fails:

make: *** [Perl.o] Error 1

When I remove the two invalid -W args (which 1.48 doesn't seem to suffer from)
it builds with a few extra:

DBI.c: In function `XS_DBI__install_method':
DBI.c:3621: warning: unused parameter `cv'

The -W issue seems to relate to the new section below in the Makefile.PL:

if (my $gccversion = $Config{gccversion}) {     # ask gcc to be more pedantic
    warn "WARNING: Your GNU C $gccversion compiler is very old. Please upgrade
it and rebuild perl.\n"
        if $gccversion =~ m/^(1|2\.[1-8])/;
    $opts{CCFLAGS} .= ' -W -Wall -Wpointer-arith -Wmissing-noreturn
-Wbad-function-cast';
    $opts{CCFLAGS} .= ' -Wno-comment -Wno-sign-compare -Wno-cast-qual';
    $opts{CCFLAGS} .= ' -Wdisabled-optimization' if $gccversion ge "3.0";
    if (0 && $is_developer && $::opt_g) {
        $opts{CCFLAGS} .= ' -DPERL_GCC_PEDANTIC -ansi -pedantic' if $gccversion
ge "3.0";
        $opts{CCFLAGS} .= ' -Wmissing-prototypes'; # noisy due to XS_* funcs
    }
}

This is
Linux/x86,
perl, v5.8.0 built for i686-linux
egcs-2.91.66

1.49 tests successfully and so far works with the current project I'm working
on.

I did not encounter any of these issues in:
This is perl, v5.8.0 built for sun4-solaris
The perl Makefile.PL, make and make test were all flawless.

Martin
--
Martin J. Evans
Easysoft Ltd, UK
Development

On 28-Nov-2005 Tim Bunce wrote:
>   http://dbi.demonweb.co.uk/public/DBI-1.49.tar.gz
> 
> =head2 Changes in DBI 1.49 (svn rev 2283),   28th November 2005
> 
>   Fixed assorted attribute handling bugs in DBD::Proxy.
>   Fixed croak() in DBD::NullP thanks to Sergey Skvortsov.
>   Fixed handling of take_imp_data() and dbi_imp_data attribute.
>   Fixed bugs in DBD::DBM thanks to Jeff Zucker.
>   Fixed bug in DBI::ProfileDumper thanks to Sam Tregar.
>   Fixed ping in DBD::Proxy thanks to George Campbell.
>   Fixed dangling ref in $sth after parent $dbh destroyed
>     with thanks to [EMAIL PROTECTED] for the bug report #13151
>   Fixed prerequisites to include Storable thanks to Michael Schwern.
>   Fixed $dbh->take_imp_data to be more practical.
> 
>   Change to require perl 5.6.1 (as advertised in 2003) not 5.6.0.
>   Changed internals to be more strictly coded thanks to Andy Lester.
>   Changed warning about multiple copies of Driver.xst found in @INC
>     to ignore duplicated directories thanks to Ed Avis.
>   Changed Driver.xst to enable drivers to define an dbd_st_prepare_sv
>     function where the statement parameter is an SV. That enables
>     compiled drivers to support SQL strings that are UTF-8.
>   Changed "use DBI" to only set $DBI::connect_via if not already set.
>   Changed docs to clarify pre-method clearing of err values.
> 
>   Added $sth->{ParamTypes} specification thanks to Dean Arnold.
>   Added $h->{Callbacks} attribute to enable code hooks to be invoked
>     when certain methods are called. For example:
>     $dbh->{Callbacks}->{prepare} = sub { ... };
>     With thanks to David Wheeler for the kick start.
>   Added $h->{ChildHandles} (using weakrefs) thanks to Sam Tregar
>     I've recoded it in C so there's no significant performance impact.
>   Added $h->{Type} docs (returns 'dr', 'db', or 'st')
>   Adding trace message in DESTROY if InactiveDestroy enabled.
> 
>   Ported DBI::ProfileDumper::Apache to mod_perl2 RC5+
>     thanks to Philip M. Golluci
> 
> =cut
> 
> I'd appreciate some testing. Especially on Perl 5.6 and Windows.
> 
> Thanks!
> 
> Tim.

Reply via email to