DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15980>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15980

apr_dbm_berkeleydb: db->open: Sleepycat API changed

           Summary: apr_dbm_berkeleydb: db->open: Sleepycat API changed
           Product: APR
           Version: HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: APR-util
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


In file srclib/apr-util/dbm/apr_dbm_berkeleydb.c:196
#if DB_VER == 3
        if ((dberr = db_create(&file.bdb, NULL, 0)) == 0) {
            if ((dberr = (*file.bdb->open)(file.bdb, pathname, NULL, 
                                           DB_HASH, dbmode, 
                                           apr_posix_perms2mode(perm))) != 0) {
gcc says:
apr_dbm_berkeleydb.c:200: warning: passing arg 2 of pointer to function from 
incompatible pointer
type
apr_dbm_berkeleydb.c:200: warning: passing arg 4 of pointer to function makes 
pointer from integer
without a cast
apr_dbm_berkeleydb.c:200: too few arguments to function

I have /usr/local/include/db.h:56
#define DB_VERSION_MAJOR        4
#define DB_VERSION_MINOR        1
#define DB_VERSION_PATCH        24
#define DB_VERSION_STRING       "Sleepycat Software: Berkeley DB 4.1.24: 
(September 13, 2002)"

And the syntax for db->open provides for a transaction
pointer to be inserted as 2nd argument: see:
http://www.sleepycat.com/docs/api_c/db_open.html

When did that API change? Dunno, perhaps the cat never sleeps...

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to