well.. from the win32build.zip file, I find in db.h this line:

#define DB_VERSION_STRING       "Sleepycat Software: DB 2.4.14: (6/2/98)"

I suspect that this is the problem.  I downloaded the latest berkeley db
from sleepycat, but I still get an error.  It is now version 4, so this
might be the problem... I don't know what has changed from 3->4.  But the
error I now get is:

D:\php\php4\ext\dba\dba_db3.c(90) : error C2198: 'function through pointer'
: too few actual parameters

which is from this line:

            if ((err=dbp->open(dbp, info->path, NULL, type, gmode, filemode)) == 0)
{

This api does appear to change from version 3 to 4 as the docs
(http://www.sleepycat.com/docs/api_c/db_open.html) now list 7 arguments
instead of 6.


is the recommended approach for me to download version 3.x and compile that
for use with PHP?  If so, where can I download the older version (I can't
find it on sleepycat).

thanks for your help.

dave


-----Original Message-----
From: Marcus Borger [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 11:55 AM
To: Dave Viner
Cc: Php-Dev@lists. php. net
Subject: Re: [PHP-DEV] building ext/dba on win32


At 20:11 07.01.2003, Dave Viner wrote:
>Hi,
>         I'm having trouble building the dba extension on win32.  I get
these
>errors:
>
>D:\php\php4\ext\dba\dba_db3.c(89) : error C2039: 'set_errcall' : is not a
>member of '__db'
>         D:\PHP\PHP-WIN32BUILD\INCLUDE\db.h(397) : see declaration of
'__db'
>D:\php\php4\ext\dba\dba_db3.c(90) : error C2039: 'open' : is not a member
of
>'__db'
>         D:\PHP\PHP-WIN32BUILD\INCLUDE\db.h(397) : see declaration of
'__db'

according to sleepycat this should be available in all db 3 versions.

>from looking at cvs annotate, the lines causing these errors were added on
>30 Dec 02 by helly.
>
>I looked at the latest win32build zip file on php.net, and I have the
latest
>information.
>Has anyone else seen this error?  Or know how I can fix this?

I checked the current snaps build and it outputs the following:
[c:\programme\php4\cli]php -v
PHP 4.4.0-dev (cli) (built: Jan  7 2003 20:19:15)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.4.0, Copyright (c) 1998-2003 Zend Technologies

[c:\programme\php4\cli]php -r "print_r(dba_handlers(1));"
Array
(
     [cdb] => 0.75, $Revision: 1.6 $
     [cdb_make] => 0.75, $Revision: 1.5 $
     [db3] => Sleepycat Software: Berkeley DB 3.3.11: (July 12, 2001)
     [flatfile] => 1.0, $Revision: 1.8 $
)

Interesting here is the version: DB 3.3.11.
What version of DB 3 do you try to link to?

regards
marcus



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to