From: Ken Williams [mailto:[EMAIL PROTECTED]

> On Thursday, August 21, 2003, at 05:38  AM, Paul Marquess wrote:
>
> > I've had a mail from someone using my BerkeleyDB module on OSX. When
> > he does
> > the usual "make test" step it seems to be running the BerkeleyDB.pm
> > file
> > that is installed, rather than the one under blib.
>
> For kicks, and because I'd been meaning to do so for a while, I just
> installed BerkeleyDB using db 4.0 on my iBook, which is running OS X
> 10.2.6 and perl 5.6.1.  No problems along the way, the module was found
> just fine in blib/ during 'make test'.  I didn't have a previous
> version installed.

Thanks for taking the time to do that Ken.

Now that you have an installed version, can you try putting the script a the
end of this message into "t/inc.t" and running this please?

    make test TEST_FILES=t/inc.t

what does it print for BerkeleyDB.pm?

> The only visible warning I got during compilation was this:
>
> cc -c  -I/sw/include/db4 -pipe -fno-common -DHAS_TELLDIR_PROTOTYPE
> -fno-strict-aliasing -O3   -DVERSION=\"0.23\" -DXS_VERSION=\"0.23\"
> "-I/sw/lib/perl5/5.6.1/darwin/CORE"   BerkeleyDB.c
> BerkeleyDB.xs: In function `associate_cb':
> BerkeleyDB.xs:1111: warning: passing arg 2 of `Perl_sv_2pv' from
> incompatible pointer type

Thanks, I'll see if I can silence that warning.

Paul


use strict ;

BEGIN {
    unless(grep /blib/, @INC) {
        chdir 't' if -d 't';
        @INC = '../lib' if -d '../lib';
    }
}

use BerkeleyDB;
use t::util ;

foreach (keys %INC) {
        print STDERR "$_ : $INC{$_}\n";
}


print "1..1\nok 1\n";

Reply via email to