teknoraver / rpms / rpm

Forked from rpms/rpm 4 months ago
Clone

Blame rpm-4.4.2.1-bdb-glibc.patch

Panu Matilainen edc6f9
diff -up rpm-4.4.2.1/db/xa/xa.c.orig rpm-4.4.2.1/db/xa/xa.c
Panu Matilainen edc6f9
--- rpm-4.4.2.1/db/xa/xa.c.orig	2007-07-05 15:24:36.000000000 +0300
Panu Matilainen edc6f9
+++ rpm-4.4.2.1/db/xa/xa.c	2007-08-08 13:22:44.000000000 +0300
Panu Matilainen edc6f9
@@ -219,7 +219,7 @@ __db_xa_open(xa_info, rmid, arg_flags)
Panu Matilainen edc6f9
 	/* Open a new environment. */
Panu Matilainen edc6f9
 	if (db_env_create(&dbenv, 0) != 0)
Panu Matilainen edc6f9
 		return (XAER_RMERR);
Panu Matilainen edc6f9
-	if (dbenv->open(dbenv, xa_info, XA_FLAGS, 0) != 0)
Panu Matilainen edc6f9
+	if ((dbenv->open)(dbenv, xa_info, XA_FLAGS, 0) != 0)
Panu Matilainen edc6f9
 		goto err;
Panu Matilainen edc6f9
 
Panu Matilainen edc6f9
 	/* Create the mapping. */
Panu Matilainen edc6f9
diff -up rpm-4.4.2.1/db/xa/xa_db.c.orig rpm-4.4.2.1/db/xa/xa_db.c
Panu Matilainen edc6f9
--- rpm-4.4.2.1/db/xa/xa_db.c.orig	2007-07-05 15:24:36.000000000 +0300
Panu Matilainen edc6f9
+++ rpm-4.4.2.1/db/xa/xa_db.c	2007-08-08 13:26:54.000000000 +0300
Panu Matilainen edc6f9
@@ -96,7 +96,7 @@ __xa_open(dbp, txn, name, subdb, type, f
Panu Matilainen edc6f9
 	xam = (XA_METHODS *)dbp->xa_internal;
Panu Matilainen edc6f9
 
Panu Matilainen edc6f9
 	SET_TXN(txn, t);
Panu Matilainen edc6f9
-	if ((ret = xam->open(dbp, t, name, subdb, type, flags, mode)) != 0)
Panu Matilainen edc6f9
+	if ((ret = (xam->open)(dbp, t, name, subdb, type, flags, mode)) != 0)
Panu Matilainen edc6f9
 		return (ret);
Panu Matilainen edc6f9
 
Panu Matilainen edc6f9
 	xam->cursor = dbp->cursor;
Panu Matilainen edc6f9
diff -up rpm-4.4.2.1/db/rpc_server/c/db_server_proc.c.orig rpm-4.4.2.1/db/rpc_server/c/db_server_proc.c
Panu Matilainen edc6f9
--- rpm-4.4.2.1/db/rpc_server/c/db_server_proc.c.orig	2007-07-05 15:24:35.000000000 +0300
Panu Matilainen edc6f9
+++ rpm-4.4.2.1/db/rpc_server/c/db_server_proc.c	2007-08-08 13:22:41.000000000 +0300
Panu Matilainen edc6f9
@@ -363,7 +363,7 @@ __env_open_proc(dbenvcl_id, home, flags,
Panu Matilainen edc6f9
 		replyp->envcl_id = new_ctp->ct_id;
Panu Matilainen edc6f9
 		ret = __dbenv_close_int(dbenvcl_id, 0, 0);
Panu Matilainen edc6f9
 	} else {
Panu Matilainen edc6f9
-		ret = dbenv->open(dbenv, fullhome->home, newflags, mode);
Panu Matilainen edc6f9
+		ret = (dbenv->open)(dbenv, fullhome->home, newflags, mode);
Panu Matilainen edc6f9
 		dbenv_ctp->ct_envdp.home = fullhome;
Panu Matilainen edc6f9
 		dbenv_ctp->ct_envdp.envflags = shareflags;
Panu Matilainen edc6f9
 	}
Panu Matilainen edc6f9
@@ -1388,7 +1388,7 @@ __db_open_proc(dbpcl_id, txnpcl_id, name
Panu Matilainen edc6f9
 		ret = __db_close_int(dbpcl_id, 0);
Panu Matilainen edc6f9
 		goto out;
Panu Matilainen edc6f9
 	}
Panu Matilainen edc6f9
-	ret = dbp->open(dbp, txnp, name, subdb, (DBTYPE)type, flags, mode);
Panu Matilainen edc6f9
+	ret = (dbp->open)(dbp, txnp, name, subdb, (DBTYPE)type, flags, mode);
Panu Matilainen edc6f9
 	if (ret == 0) {
Panu Matilainen edc6f9
 		(void)dbp->get_type(dbp, &dbtype);
Panu Matilainen edc6f9
 		replyp->type = dbtype;
Panu Matilainen edc6f9
diff -up rpm-4.4.2.1/db/rpc_server/c/db_server_util.c.orig rpm-4.4.2.1/db/rpc_server/c/db_server_util.c
Panu Matilainen edc6f9
--- rpm-4.4.2.1/db/rpc_server/c/db_server_util.c.orig	2007-07-05 15:24:35.000000000 +0300
Panu Matilainen edc6f9
+++ rpm-4.4.2.1/db/rpc_server/c/db_server_util.c	2007-08-08 13:22:41.000000000 +0300
Panu Matilainen edc6f9
@@ -824,7 +824,7 @@ env_recover(progname)
Panu Matilainen edc6f9
 			printf("Running recovery on %s\n", hp->home);
Panu Matilainen edc6f9
 		flags = DB_CREATE | DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL |
Panu Matilainen edc6f9
 		    DB_INIT_TXN | DB_USE_ENVIRON | DB_RECOVER;
Panu Matilainen edc6f9
-		if ((ret = dbenv->open(dbenv, hp->home, flags, 0)) != 0) {
Panu Matilainen edc6f9
+		if ((ret = (dbenv->open)(dbenv, hp->home, flags, 0)) != 0) {
Panu Matilainen edc6f9
 			dbenv->err(dbenv, ret, "DB_ENV->open");
Panu Matilainen edc6f9
 			goto error;
Panu Matilainen edc6f9
 		}
Panu Matilainen edc6f9
diff -up rpm-4.4.2.1/db/rpc_server/cxx/db_server_cxxproc.cpp.orig rpm-4.4.2.1/db/rpc_server/cxx/db_server_cxxproc.cpp
Panu Matilainen edc6f9
--- rpm-4.4.2.1/db/rpc_server/cxx/db_server_cxxproc.cpp.orig	2007-07-05 15:24:35.000000000 +0300
Panu Matilainen edc6f9
+++ rpm-4.4.2.1/db/rpc_server/cxx/db_server_cxxproc.cpp	2007-08-08 13:22:41.000000000 +0300
Panu Matilainen edc6f9
@@ -314,7 +314,7 @@ __env_open_proc(
Panu Matilainen edc6f9
 		replyp->envcl_id = new_ctp->ct_id;
Panu Matilainen edc6f9
 		ret = __dbenv_close_int(dbenvcl_id, 0, 0);
Panu Matilainen edc6f9
 	} else {
Panu Matilainen edc6f9
-		ret = dbenv->open(fullhome->home, newflags, mode);
Panu Matilainen edc6f9
+		ret = (dbenv->open)(fullhome->home, newflags, mode);
Panu Matilainen edc6f9
 		dbenv_ctp->ct_envdp.home = fullhome;
Panu Matilainen edc6f9
 		dbenv_ctp->ct_envdp.envflags = shareflags;
Panu Matilainen edc6f9
 	}
Panu Matilainen edc6f9
@@ -1195,7 +1195,7 @@ __db_open_proc(
Panu Matilainen edc6f9
 		ret = __db_close_int(dbpcl_id, 0);
Panu Matilainen edc6f9
 		goto out;
Panu Matilainen edc6f9
 	}
Panu Matilainen edc6f9
-	ret = dbp->open(txnp, name, subdb, (DBTYPE)type, flags, mode);
Panu Matilainen edc6f9
+	ret = (dbp->open)(txnp, name, subdb, (DBTYPE)type, flags, mode);
Panu Matilainen edc6f9
 	if (ret == 0) {
Panu Matilainen edc6f9
 		(void)dbp->get_type(&dbtype);
Panu Matilainen edc6f9
 		replyp->type = dbtype;
Panu Matilainen edc6f9
diff -up rpm-4.4.2.1/db/rpc_server/cxx/db_server_cxxutil.cpp.orig rpm-4.4.2.1/db/rpc_server/cxx/db_server_cxxutil.cpp
Panu Matilainen edc6f9
--- rpm-4.4.2.1/db/rpc_server/cxx/db_server_cxxutil.cpp.orig	2007-07-05 15:24:35.000000000 +0300
Panu Matilainen edc6f9
+++ rpm-4.4.2.1/db/rpc_server/cxx/db_server_cxxutil.cpp	2007-08-08 13:22:41.000000000 +0300
Panu Matilainen edc6f9
@@ -756,7 +756,7 @@ env_recover(char *progname)
Panu Matilainen edc6f9
 			printf("Running recovery on %s\n", hp->home);
Panu Matilainen edc6f9
 		flags = DB_CREATE | DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL |
Panu Matilainen edc6f9
 		    DB_INIT_TXN | DB_USE_ENVIRON | DB_RECOVER;
Panu Matilainen edc6f9
-		if ((ret = dbenv->open(hp->home, flags, 0)) != 0) {
Panu Matilainen edc6f9
+		if ((ret = (dbenv->open)(hp->home, flags, 0)) != 0) {
Panu Matilainen edc6f9
 			dbenv->err(ret, "DbEnv->open");
Panu Matilainen edc6f9
 			goto error;
Panu Matilainen edc6f9
 		}
Panu Matilainen edc6f9
diff -up rpm-4.4.2.1/db/db_upgrade/db_upgrade.c.orig rpm-4.4.2.1/db/db_upgrade/db_upgrade.c
Panu Matilainen edc6f9
--- rpm-4.4.2.1/db/db_upgrade/db_upgrade.c.orig	2007-07-05 15:24:34.000000000 +0300
Panu Matilainen edc6f9
+++ rpm-4.4.2.1/db/db_upgrade/db_upgrade.c	2007-08-08 13:27:41.000000000 +0300
Panu Matilainen edc6f9
@@ -120,10 +120,10 @@ main(argc, argv)
Panu Matilainen edc6f9
 	 * If attaching to a pre-existing environment fails, create a
Panu Matilainen edc6f9
 	 * private one and try again.
Panu Matilainen edc6f9
 	 */
Panu Matilainen edc6f9
-	if ((ret = dbenv->open(dbenv,
Panu Matilainen edc6f9
+	if ((ret = (dbenv->open)(dbenv,
Panu Matilainen edc6f9
 	    home, DB_JOINENV | DB_USE_ENVIRON, 0)) != 0 &&
Panu Matilainen edc6f9
 	    (ret == DB_VERSION_MISMATCH ||
Panu Matilainen edc6f9
-	    (ret = dbenv->open(dbenv, home,
Panu Matilainen edc6f9
+	    (ret = (dbenv->open)(dbenv, home,
Panu Matilainen edc6f9
 	    DB_CREATE | DB_INIT_MPOOL | DB_PRIVATE | DB_USE_ENVIRON,
Panu Matilainen edc6f9
 	    0)) != 0)) {
Panu Matilainen edc6f9
 		dbenv->err(dbenv, ret, "DB_ENV->open");
Panu Matilainen edc6f9
diff -up rpm-4.4.2.1/db/db_stat/db_stat.c.orig rpm-4.4.2.1/db/db_stat/db_stat.c
Panu Matilainen edc6f9
--- rpm-4.4.2.1/db/db_stat/db_stat.c.orig	2007-07-05 15:24:34.000000000 +0300
Panu Matilainen edc6f9
+++ rpm-4.4.2.1/db/db_stat/db_stat.c	2007-08-08 13:28:27.000000000 +0300
Panu Matilainen edc6f9
@@ -278,7 +278,7 @@ retry:	if ((ret = db_env_create(&dbenv, 
Panu Matilainen edc6f9
 			goto err;
Panu Matilainen edc6f9
 		}
Panu Matilainen edc6f9
 
Panu Matilainen edc6f9
-		if ((ret = dbp->open(dbp,
Panu Matilainen edc6f9
+		if ((ret = (dbp->open)(dbp,
Panu Matilainen edc6f9
 		    NULL, db, subdb, DB_UNKNOWN, DB_RDONLY, 0)) != 0) {
Panu Matilainen edc6f9
 			dbenv->err(dbenv, ret, "DB->open: %s", db);
Panu Matilainen edc6f9
 			goto err;
Panu Matilainen edc6f9
@@ -316,7 +316,7 @@ retry:	if ((ret = db_env_create(&dbenv, 
Panu Matilainen edc6f9
 				dbenv->err(dbenv, ret, "db_create");
Panu Matilainen edc6f9
 				goto err;
Panu Matilainen edc6f9
 			}
Panu Matilainen edc6f9
-			if ((ret = dbp->open(alt_dbp, NULL,
Panu Matilainen edc6f9
+			if ((ret = (dbp->open)(alt_dbp, NULL,
Panu Matilainen edc6f9
 			    db, subdb, DB_UNKNOWN, DB_RDONLY, 0)) != 0) {
Panu Matilainen edc6f9
 				if (subdb == NULL)
Panu Matilainen edc6f9
 					dbenv->err(dbenv,
Panu Matilainen edc6f9
@@ -413,7 +413,7 @@ db_init(dbenv, home, ttype, cache, is_pr
Panu Matilainen edc6f9
 	 */
Panu Matilainen edc6f9
 	*is_private = 0;
Panu Matilainen edc6f9
 	if ((ret =
Panu Matilainen edc6f9
-	    dbenv->open(dbenv, home, DB_JOINENV | DB_USE_ENVIRON, 0)) == 0)
Panu Matilainen edc6f9
+	    (dbenv->open)(dbenv, home, DB_JOINENV | DB_USE_ENVIRON, 0)) == 0)
Panu Matilainen edc6f9
 		return (0);
Panu Matilainen edc6f9
 	if (ret == DB_VERSION_MISMATCH)
Panu Matilainen edc6f9
 		goto err;
Panu Matilainen edc6f9
@@ -445,7 +445,7 @@ db_init(dbenv, home, ttype, cache, is_pr
Panu Matilainen edc6f9
 		oflags |= DB_INIT_LOG;
Panu Matilainen edc6f9
 	if (ttype == T_REP)
Panu Matilainen edc6f9
 		oflags |= DB_INIT_REP;
Panu Matilainen edc6f9
-	if ((ret = dbenv->open(dbenv, home, oflags, 0)) == 0)
Panu Matilainen edc6f9
+	if ((ret = (dbenv->open)(dbenv, home, oflags, 0)) == 0)
Panu Matilainen edc6f9
 		return (0);
Panu Matilainen edc6f9
 
Panu Matilainen edc6f9
 	/* An environment is required. */
Panu Matilainen edc6f9
diff -up rpm-4.4.2.1/db/db_load/db_load.c.orig rpm-4.4.2.1/db/db_load/db_load.c
Panu Matilainen edc6f9
--- rpm-4.4.2.1/db/db_load/db_load.c.orig	2007-07-05 15:24:34.000000000 +0300
Panu Matilainen edc6f9
+++ rpm-4.4.2.1/db/db_load/db_load.c	2007-08-08 13:22:44.000000000 +0300
Panu Matilainen edc6f9
@@ -399,7 +399,7 @@ retry_db:
Panu Matilainen edc6f9
 #endif
Panu Matilainen edc6f9
 
Panu Matilainen edc6f9
 	/* Open the DB file. */
Panu Matilainen edc6f9
-	if ((ret = dbp->open(dbp, NULL, name, subdb, dbtype,
Panu Matilainen edc6f9
+	if ((ret = (dbp->open)(dbp, NULL, name, subdb, dbtype,
Panu Matilainen edc6f9
 	    DB_CREATE | (TXN_ON(dbenv) ? DB_AUTO_COMMIT : 0),
Panu Matilainen edc6f9
 	    __db_omode("rwrwrw"))) != 0) {
Panu Matilainen edc6f9
 		dbp->err(dbp, ret, "DB->open: %s", name);
Panu Matilainen edc6f9
@@ -613,7 +613,7 @@ db_init(dbenv, home, cache, is_private)
Panu Matilainen edc6f9
 	/* We may be loading into a live environment.  Try and join. */
Panu Matilainen edc6f9
 	flags = DB_USE_ENVIRON |
Panu Matilainen edc6f9
 	    DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN;
Panu Matilainen edc6f9
-	if ((ret = dbenv->open(dbenv, home, flags, 0)) == 0)
Panu Matilainen edc6f9
+	if ((ret = (dbenv->open)(dbenv, home, flags, 0)) == 0)
Panu Matilainen edc6f9
 		return (0);
Panu Matilainen edc6f9
 	if (ret == DB_VERSION_MISMATCH)
Panu Matilainen edc6f9
 		goto err;
Panu Matilainen edc6f9
@@ -637,7 +637,7 @@ db_init(dbenv, home, cache, is_private)
Panu Matilainen edc6f9
 		dbenv->err(dbenv, ret, "set_cachesize");
Panu Matilainen edc6f9
 		return (1);
Panu Matilainen edc6f9
 	}
Panu Matilainen edc6f9
-	if ((ret = dbenv->open(dbenv, home, flags, 0)) == 0)
Panu Matilainen edc6f9
+	if ((ret = (dbenv->open)(dbenv, home, flags, 0)) == 0)
Panu Matilainen edc6f9
 		return (0);
Panu Matilainen edc6f9
 
Panu Matilainen edc6f9
 	/* An environment is required. */
Panu Matilainen edc6f9
diff -up rpm-4.4.2.1/db/db_verify/db_verify.c.orig rpm-4.4.2.1/db/db_verify/db_verify.c
Panu Matilainen edc6f9
--- rpm-4.4.2.1/db/db_verify/db_verify.c.orig	2007-07-05 15:24:34.000000000 +0300
Panu Matilainen edc6f9
+++ rpm-4.4.2.1/db/db_verify/db_verify.c	2007-08-08 13:22:44.000000000 +0300
Panu Matilainen edc6f9
@@ -133,7 +133,7 @@ retry:	if ((ret = db_env_create(&dbenv, 
Panu Matilainen edc6f9
 	 */
Panu Matilainen edc6f9
 	private = 0;
Panu Matilainen edc6f9
 	if ((ret =
Panu Matilainen edc6f9
-	    dbenv->open(dbenv, home, DB_INIT_MPOOL | DB_USE_ENVIRON, 0)) != 0) {
Panu Matilainen edc6f9
+	    (dbenv->open)(dbenv, home, DB_INIT_MPOOL | DB_USE_ENVIRON, 0)) != 0) {
Panu Matilainen edc6f9
 		if (ret != DB_VERSION_MISMATCH) {
Panu Matilainen edc6f9
 			if ((ret =
Panu Matilainen edc6f9
 			    dbenv->set_cachesize(dbenv, 0, cache, 1)) != 0) {
Panu Matilainen edc6f9
@@ -141,7 +141,7 @@ retry:	if ((ret = db_env_create(&dbenv, 
Panu Matilainen edc6f9
 				goto shutdown;
Panu Matilainen edc6f9
 			}
Panu Matilainen edc6f9
 			private = 1;
Panu Matilainen edc6f9
-			ret = dbenv->open(dbenv, home, DB_CREATE |
Panu Matilainen edc6f9
+			ret = (dbenv->open)(dbenv, home, DB_CREATE |
Panu Matilainen edc6f9
 			    DB_INIT_MPOOL | DB_PRIVATE | DB_USE_ENVIRON, 0);
Panu Matilainen edc6f9
 		}
Panu Matilainen edc6f9
 		if (ret != 0) {
Panu Matilainen edc6f9
@@ -171,7 +171,7 @@ retry:	if ((ret = db_env_create(&dbenv, 
Panu Matilainen edc6f9
 				goto shutdown;
Panu Matilainen edc6f9
 			}
Panu Matilainen edc6f9
 
Panu Matilainen edc6f9
-			ret = dbp1->open(dbp1,
Panu Matilainen edc6f9
+			ret = (dbp1->open)(dbp1,
Panu Matilainen edc6f9
 			    NULL, argv[0], NULL, DB_UNKNOWN, DB_RDONLY, 0);
Panu Matilainen edc6f9
 
Panu Matilainen edc6f9
 			/*
Panu Matilainen edc6f9
diff -up rpm-4.4.2.1/db/db_deadlock/db_deadlock.c.orig rpm-4.4.2.1/db/db_deadlock/db_deadlock.c
Panu Matilainen edc6f9
--- rpm-4.4.2.1/db/db_deadlock/db_deadlock.c.orig	2007-07-05 15:24:34.000000000 +0300
Panu Matilainen edc6f9
+++ rpm-4.4.2.1/db/db_deadlock/db_deadlock.c	2007-08-08 13:28:55.000000000 +0300
Panu Matilainen edc6f9
@@ -165,7 +165,7 @@ main(argc, argv)
Panu Matilainen edc6f9
 
Panu Matilainen edc6f9
 	/* An environment is required. */
Panu Matilainen edc6f9
 	if ((ret =
Panu Matilainen edc6f9
-	    dbenv->open(dbenv, home, DB_INIT_LOCK | DB_USE_ENVIRON, 0)) != 0) {
Panu Matilainen edc6f9
+	    (dbenv->open)(dbenv, home, DB_INIT_LOCK | DB_USE_ENVIRON, 0)) != 0) {
Panu Matilainen edc6f9
 		dbenv->err(dbenv, ret, "open");
Panu Matilainen edc6f9
 		goto shutdown;
Panu Matilainen edc6f9
 	}
Panu Matilainen edc6f9
diff -up rpm-4.4.2.1/db/hsearch/hsearch.c.orig rpm-4.4.2.1/db/hsearch/hsearch.c
Panu Matilainen edc6f9
--- rpm-4.4.2.1/db/hsearch/hsearch.c.orig	2007-07-05 15:24:35.000000000 +0300
Panu Matilainen edc6f9
+++ rpm-4.4.2.1/db/hsearch/hsearch.c	2007-08-08 13:29:23.000000000 +0300
Panu Matilainen edc6f9
@@ -82,7 +82,7 @@ __db_hcreate(nel)
Panu Matilainen edc6f9
 	if ((ret = dbp->set_pagesize(dbp, 512)) != 0 ||
Panu Matilainen edc6f9
 	    (ret = dbp->set_h_ffactor(dbp, 16)) != 0 ||
Panu Matilainen edc6f9
 	    (ret = dbp->set_h_nelem(dbp, (u_int32_t)nel)) != 0 ||
Panu Matilainen edc6f9
-	    (ret = dbp->open(dbp,
Panu Matilainen edc6f9
+	    (ret = (dbp->open)(dbp,
Panu Matilainen edc6f9
 	    NULL, NULL, NULL, DB_HASH, DB_CREATE, __db_omode("rw----"))) != 0)
Panu Matilainen edc6f9
 		__os_set_errno(ret);
Panu Matilainen edc6f9
 
Panu Matilainen edc6f9
diff -up rpm-4.4.2.1/db/libdb_java/db_java_wrap.c.orig rpm-4.4.2.1/db/libdb_java/db_java_wrap.c
Panu Matilainen edc6f9
--- rpm-4.4.2.1/db/libdb_java/db_java_wrap.c.orig	2007-07-05 15:24:35.000000000 +0300
Panu Matilainen edc6f9
+++ rpm-4.4.2.1/db/libdb_java/db_java_wrap.c	2007-08-08 13:29:58.000000000 +0300
Panu Matilainen edc6f9
@@ -1894,7 +1894,7 @@ db_ret_t Db_key_range(struct Db *self,DB
Panu Matilainen edc6f9
 		return self->key_range(self, txnid, key, key_range, flags);
Panu Matilainen edc6f9
 	}
Panu Matilainen edc6f9
 db_ret_t Db_open(struct Db *self,DB_TXN *txnid,char const *file,char const *database,DBTYPE type,u_int32_t flags,int mode){
Panu Matilainen edc6f9
-		return self->open(self, txnid, file, database,
Panu Matilainen edc6f9
+		return (self->open)(self, txnid, file, database,
Panu Matilainen edc6f9
 		    type, flags, mode);
Panu Matilainen edc6f9
 	}
Panu Matilainen edc6f9
 int Db_pget(struct Db *self,DB_TXN *txnid,DBT *key,DBT *pkey,DBT *data,u_int32_t flags){
Panu Matilainen edc6f9
@@ -2103,7 +2103,7 @@ int_bool DbEnv_get_verbose(struct DbEnv 
Panu Matilainen edc6f9
 		return ret;
Panu Matilainen edc6f9
 	}
Panu Matilainen edc6f9
 db_ret_t DbEnv_open(struct DbEnv *self,char const *db_home,u_int32_t flags,int mode){
Panu Matilainen edc6f9
-		return self->open(self, db_home, flags, mode);
Panu Matilainen edc6f9
+		return (self->open)(self, db_home, flags, mode);
Panu Matilainen edc6f9
 	}
Panu Matilainen edc6f9
 db_ret_t DbEnv_remove(struct DbEnv *self,char const *db_home,u_int32_t flags){
Panu Matilainen edc6f9
 		return self->remove(self, db_home, flags);
Panu Matilainen edc6f9
@@ -2499,7 +2499,7 @@ db_ret_t DbSequence_initial_value(struct
Panu Matilainen edc6f9
 		return self->initial_value(self, val);
Panu Matilainen edc6f9
 	}
Panu Matilainen edc6f9
 db_ret_t DbSequence_open(struct DbSequence *self,DB_TXN *txnid,DBT *key,u_int32_t flags){
Panu Matilainen edc6f9
-		return self->open(self, txnid, key, flags);
Panu Matilainen edc6f9
+		return (self->open)(self, txnid, key, flags);
Panu Matilainen edc6f9
 	}
Panu Matilainen edc6f9
 db_ret_t DbSequence_remove(struct DbSequence *self,DB_TXN *txnid,u_int32_t flags){
Panu Matilainen edc6f9
 		return self->remove(self, txnid, flags);
Panu Matilainen edc6f9
diff -up rpm-4.4.2.1/db/dbm/dbm.c.orig rpm-4.4.2.1/db/dbm/dbm.c
Panu Matilainen edc6f9
--- rpm-4.4.2.1/db/dbm/dbm.c.orig	2007-07-05 15:24:34.000000000 +0300
Panu Matilainen edc6f9
+++ rpm-4.4.2.1/db/dbm/dbm.c	2007-08-08 13:22:38.000000000 +0300
Panu Matilainen edc6f9
@@ -235,7 +235,7 @@ __db_ndbm_open(file, oflags, mode)
Panu Matilainen edc6f9
 	if ((ret = dbp->set_pagesize(dbp, 4096)) != 0 ||
Panu Matilainen edc6f9
 	    (ret = dbp->set_h_ffactor(dbp, 40)) != 0 ||
Panu Matilainen edc6f9
 	    (ret = dbp->set_h_nelem(dbp, 1)) != 0 ||
Panu Matilainen edc6f9
-	    (ret = dbp->open(dbp, NULL,
Panu Matilainen edc6f9
+	    (ret = (dbp->open)(dbp, NULL,
Panu Matilainen edc6f9
 	    path, NULL, DB_HASH, __db_oflags(oflags), mode)) != 0) {
Panu Matilainen edc6f9
 		__os_set_errno(ret);
Panu Matilainen edc6f9
 		return (NULL);
Panu Matilainen edc6f9
diff -up rpm-4.4.2.1/db/db_dump/db_dump.c.orig rpm-4.4.2.1/db/db_dump/db_dump.c
Panu Matilainen edc6f9
--- rpm-4.4.2.1/db/db_dump/db_dump.c.orig	2007-07-05 15:24:34.000000000 +0300
Panu Matilainen edc6f9
+++ rpm-4.4.2.1/db/db_dump/db_dump.c	2007-08-08 13:30:27.000000000 +0300
Panu Matilainen edc6f9
@@ -204,7 +204,7 @@ retry:	if ((ret = db_env_create(&dbenv, 
Panu Matilainen edc6f9
 		goto done;
Panu Matilainen edc6f9
 	}
Panu Matilainen edc6f9
 
Panu Matilainen edc6f9
-	if ((ret = dbp->open(dbp, NULL,
Panu Matilainen edc6f9
+	if ((ret = (dbp->open)(dbp, NULL,
Panu Matilainen edc6f9
 	    argv[0], subname, DB_UNKNOWN, DB_RDONLY, 0)) != 0) {
Panu Matilainen edc6f9
 		dbp->err(dbp, ret, "open: %s", argv[0]);
Panu Matilainen edc6f9
 		goto err;
Panu Matilainen edc6f9
@@ -305,7 +305,7 @@ db_init(dbenv, home, is_salvage, cache, 
Panu Matilainen edc6f9
 	 * before we create our own.
Panu Matilainen edc6f9
 	 */
Panu Matilainen edc6f9
 	*is_privatep = 0;
Panu Matilainen edc6f9
-	if ((ret = dbenv->open(dbenv, home, DB_USE_ENVIRON |
Panu Matilainen edc6f9
+	if ((ret = (dbenv->open)(dbenv, home, DB_USE_ENVIRON |
Panu Matilainen edc6f9
 	    (is_salvage ? DB_INIT_MPOOL : DB_JOINENV), 0)) == 0)
Panu Matilainen edc6f9
 		return (0);
Panu Matilainen edc6f9
 	if (ret == DB_VERSION_MISMATCH)
Panu Matilainen edc6f9
@@ -323,7 +323,7 @@ db_init(dbenv, home, is_salvage, cache, 
Panu Matilainen edc6f9
 	 */
Panu Matilainen edc6f9
 	*is_privatep = 1;
Panu Matilainen edc6f9
 	if ((ret = dbenv->set_cachesize(dbenv, 0, cache, 1)) == 0 &&
Panu Matilainen edc6f9
-	    (ret = dbenv->open(dbenv, home,
Panu Matilainen edc6f9
+	    (ret = (dbenv->open)(dbenv, home,
Panu Matilainen edc6f9
 	    DB_CREATE | DB_INIT_MPOOL | DB_PRIVATE | DB_USE_ENVIRON, 0)) == 0)
Panu Matilainen edc6f9
 		return (0);
Panu Matilainen edc6f9
 
Panu Matilainen edc6f9
@@ -416,7 +416,7 @@ dump_sub(dbenv, parent_dbp, parent_name,
Panu Matilainen edc6f9
 			free(subdb);
Panu Matilainen edc6f9
 			return (1);
Panu Matilainen edc6f9
 		}
Panu Matilainen edc6f9
-		if ((ret = dbp->open(dbp, NULL,
Panu Matilainen edc6f9
+		if ((ret = (dbp->open)(dbp, NULL,
Panu Matilainen edc6f9
 		    parent_name, subdb, DB_UNKNOWN, DB_RDONLY, 0)) != 0)
Panu Matilainen edc6f9
 			dbp->err(dbp, ret,
Panu Matilainen edc6f9
 			    "DB->open: %s:%s", parent_name, subdb);
Panu Matilainen edc6f9
diff -up rpm-4.4.2.1/db/db_recover/db_recover.c.orig rpm-4.4.2.1/db/db_recover/db_recover.c
Panu Matilainen edc6f9
--- rpm-4.4.2.1/db/db_recover/db_recover.c.orig	2007-07-05 15:24:34.000000000 +0300
Panu Matilainen edc6f9
+++ rpm-4.4.2.1/db/db_recover/db_recover.c	2007-08-08 13:30:54.000000000 +0300
Panu Matilainen edc6f9
@@ -146,7 +146,7 @@ main(argc, argv)
Panu Matilainen edc6f9
 	    DB_INIT_MPOOL | DB_INIT_TXN | DB_USE_ENVIRON);
Panu Matilainen edc6f9
 	LF_SET(fatal_recover ? DB_RECOVER_FATAL : DB_RECOVER);
Panu Matilainen edc6f9
 	LF_SET(retain_env ? 0 : DB_PRIVATE);
Panu Matilainen edc6f9
-	if ((ret = dbenv->open(dbenv, home, flags, 0)) != 0) {
Panu Matilainen edc6f9
+	if ((ret = (dbenv->open)(dbenv, home, flags, 0)) != 0) {
Panu Matilainen edc6f9
 		dbenv->err(dbenv, ret, "DB_ENV->open");
Panu Matilainen edc6f9
 		goto shutdown;
Panu Matilainen edc6f9
 	}
Panu Matilainen edc6f9
diff -up rpm-4.4.2.1/db/db_printlog/db_printlog.c.orig rpm-4.4.2.1/db/db_printlog/db_printlog.c
Panu Matilainen edc6f9
--- rpm-4.4.2.1/db/db_printlog/db_printlog.c.orig	2007-07-05 15:24:34.000000000 +0300
Panu Matilainen edc6f9
+++ rpm-4.4.2.1/db/db_printlog/db_printlog.c	2007-08-08 13:32:00.000000000 +0300
Panu Matilainen edc6f9
@@ -168,19 +168,19 @@ main(argc, argv)
Panu Matilainen edc6f9
 	 * with logging, because we don't want to log the opens.
Panu Matilainen edc6f9
 	 */
Panu Matilainen edc6f9
 	if (repflag) {
Panu Matilainen edc6f9
-		if ((ret = dbenv->open(dbenv, home,
Panu Matilainen edc6f9
+		if ((ret = (dbenv->open)(dbenv, home,
Panu Matilainen edc6f9
 		    DB_INIT_MPOOL | DB_USE_ENVIRON, 0)) != 0 &&
Panu Matilainen edc6f9
 		    (ret == DB_VERSION_MISMATCH ||
Panu Matilainen edc6f9
-		    (ret = dbenv->open(dbenv, home,
Panu Matilainen edc6f9
+		    (ret = (dbenv->open)(dbenv, home,
Panu Matilainen edc6f9
 		    DB_CREATE | DB_INIT_MPOOL | DB_PRIVATE | DB_USE_ENVIRON, 0))
Panu Matilainen edc6f9
 		    != 0)) {
Panu Matilainen edc6f9
 			dbenv->err(dbenv, ret, "DB_ENV->open");
Panu Matilainen edc6f9
 			goto shutdown;
Panu Matilainen edc6f9
 		}
Panu Matilainen edc6f9
-	} else if ((ret = dbenv->open(dbenv, home,
Panu Matilainen edc6f9
+	} else if ((ret = (dbenv->open)(dbenv, home,
Panu Matilainen edc6f9
 	    DB_JOINENV | DB_USE_ENVIRON, 0)) != 0 &&
Panu Matilainen edc6f9
 	    (ret == DB_VERSION_MISMATCH ||
Panu Matilainen edc6f9
-	    (ret = dbenv->open(dbenv, home,
Panu Matilainen edc6f9
+	    (ret = (dbenv->open)(dbenv, home,
Panu Matilainen edc6f9
 	    DB_CREATE | DB_INIT_LOG | DB_PRIVATE | DB_USE_ENVIRON, 0)) != 0)) {
Panu Matilainen edc6f9
 		dbenv->err(dbenv, ret, "DB_ENV->open");
Panu Matilainen edc6f9
 		goto shutdown;
Panu Matilainen edc6f9
@@ -378,7 +378,7 @@ open_rep_db(dbenv, dbpp, dbcp)
Panu Matilainen edc6f9
 
Panu Matilainen edc6f9
 	dbp = *dbpp;
Panu Matilainen edc6f9
 	if ((ret =
Panu Matilainen edc6f9
-	    dbp->open(dbp, NULL, "__db.rep.db", NULL, DB_BTREE, 0, 0)) != 0) {
Panu Matilainen edc6f9
+	    (dbp->open)(dbp, NULL, "__db.rep.db", NULL, DB_BTREE, 0, 0)) != 0) {
Panu Matilainen edc6f9
 		dbenv->err(dbenv, ret, "DB->open");
Panu Matilainen edc6f9
 		goto err;
Panu Matilainen edc6f9
 	}
Panu Matilainen edc6f9
diff -up rpm-4.4.2.1/db/db185/db185.c.orig rpm-4.4.2.1/db/db185/db185.c
Panu Matilainen edc6f9
--- rpm-4.4.2.1/db/db185/db185.c.orig	2007-07-05 15:24:34.000000000 +0300
Panu Matilainen edc6f9
+++ rpm-4.4.2.1/db/db185/db185.c	2007-08-08 13:22:44.000000000 +0300
Panu Matilainen edc6f9
@@ -230,7 +230,7 @@ __db185_open(file, oflags, mode, type, o
Panu Matilainen edc6f9
 	dbp->api_internal = db185p;
Panu Matilainen edc6f9
 
Panu Matilainen edc6f9
 	/* Open the database. */
Panu Matilainen edc6f9
-	if ((ret = dbp->open(dbp, NULL,
Panu Matilainen edc6f9
+	if ((ret = (dbp->open)(dbp, NULL,
Panu Matilainen edc6f9
 	    file, NULL, type, __db_oflags(oflags), mode)) != 0)
Panu Matilainen edc6f9
 		goto err;
Panu Matilainen edc6f9
 
Panu Matilainen edc6f9
diff -up rpm-4.4.2.1/db/db_archive/db_archive.c.orig rpm-4.4.2.1/db/db_archive/db_archive.c
Panu Matilainen edc6f9
--- rpm-4.4.2.1/db/db_archive/db_archive.c.orig	2007-07-05 15:24:34.000000000 +0300
Panu Matilainen edc6f9
+++ rpm-4.4.2.1/db/db_archive/db_archive.c	2007-08-08 13:32:24.000000000 +0300
Panu Matilainen edc6f9
@@ -117,10 +117,10 @@ main(argc, argv)
Panu Matilainen edc6f9
 	 * If attaching to a pre-existing environment fails, create a
Panu Matilainen edc6f9
 	 * private one and try again.
Panu Matilainen edc6f9
 	 */
Panu Matilainen edc6f9
-	if ((ret = dbenv->open(dbenv,
Panu Matilainen edc6f9
+	if ((ret = (dbenv->open)(dbenv,
Panu Matilainen edc6f9
 	    home, DB_JOINENV | DB_USE_ENVIRON, 0)) != 0 &&
Panu Matilainen edc6f9
 	    (ret == DB_VERSION_MISMATCH ||
Panu Matilainen edc6f9
-	    (ret = dbenv->open(dbenv, home, DB_CREATE |
Panu Matilainen edc6f9
+	    (ret = (dbenv->open)(dbenv, home, DB_CREATE |
Panu Matilainen edc6f9
 	    DB_INIT_LOG | DB_PRIVATE | DB_USE_ENVIRON, 0)) != 0)) {
Panu Matilainen edc6f9
 		dbenv->err(dbenv, ret, "DB_ENV->open");
Panu Matilainen edc6f9
 		goto shutdown;
Panu Matilainen edc6f9
diff -up rpm-4.4.2.1/db/db_checkpoint/db_checkpoint.c.orig rpm-4.4.2.1/db/db_checkpoint/db_checkpoint.c
Panu Matilainen edc6f9
--- rpm-4.4.2.1/db/db_checkpoint/db_checkpoint.c.orig	2007-07-05 15:24:34.000000000 +0300
Panu Matilainen edc6f9
+++ rpm-4.4.2.1/db/db_checkpoint/db_checkpoint.c	2007-08-08 13:33:03.000000000 +0300
Panu Matilainen edc6f9
@@ -155,7 +155,7 @@ main(argc, argv)
Panu Matilainen edc6f9
 		goto shutdown;
Panu Matilainen edc6f9
 	}
Panu Matilainen edc6f9
 	/* Initialize the environment. */
Panu Matilainen edc6f9
-	if ((ret = dbenv->open(dbenv,
Panu Matilainen edc6f9
+	if ((ret = (dbenv->open)(dbenv,
Panu Matilainen edc6f9
 	    home, DB_JOINENV | DB_USE_ENVIRON, 0)) != 0) {
Panu Matilainen edc6f9
 		dbenv->err(dbenv, ret, "open");
Panu Matilainen edc6f9
 		goto shutdown;
Panu Matilainen edc6f9
diff -up rpm-4.4.2.1/db/tcl/tcl_mp.c.orig rpm-4.4.2.1/db/tcl/tcl_mp.c
Panu Matilainen edc6f9
--- rpm-4.4.2.1/db/tcl/tcl_mp.c.orig	2007-07-05 15:24:35.000000000 +0300
Panu Matilainen edc6f9
+++ rpm-4.4.2.1/db/tcl/tcl_mp.c	2007-08-08 13:22:38.000000000 +0300
Panu Matilainen edc6f9
@@ -276,7 +276,7 @@ tcl_Mp(interp, objc, objv, envp, envip)
Panu Matilainen edc6f9
 	 * XXX
Panu Matilainen edc6f9
 	 * Interface doesn't currently support DB_MPOOLFILE configuration.
Panu Matilainen edc6f9
 	 */
Panu Matilainen edc6f9
-	if ((ret = mpf->open(mpf, file, flag, mode, (size_t)pgsize)) != 0) {
Panu Matilainen edc6f9
+	if ((ret = (mpf->open)(mpf, file, flag, mode, (size_t)pgsize)) != 0) {
Panu Matilainen edc6f9
 		result = _ReturnSetup(interp, ret, DB_RETOK_STD(ret), "mpool");
Panu Matilainen edc6f9
 		_DeleteInfo(ip);
Panu Matilainen edc6f9
 
Panu Matilainen edc6f9
diff -up rpm-4.4.2.1/db/tcl/tcl_db_pkg.c.orig rpm-4.4.2.1/db/tcl/tcl_db_pkg.c
Panu Matilainen edc6f9
--- rpm-4.4.2.1/db/tcl/tcl_db_pkg.c.orig	2007-07-05 15:24:35.000000000 +0300
Panu Matilainen edc6f9
+++ rpm-4.4.2.1/db/tcl/tcl_db_pkg.c	2007-08-08 13:22:38.000000000 +0300
Panu Matilainen edc6f9
@@ -1327,7 +1327,7 @@ bdb_EnvOpen(interp, objc, objv, ip, env)
Panu Matilainen edc6f9
 	 * Now open the environment.
Panu Matilainen edc6f9
 	 */
Panu Matilainen edc6f9
 	_debug_check();
Panu Matilainen edc6f9
-	ret = (*env)->open(*env, home, open_flags, mode);
Panu Matilainen edc6f9
+	ret = ((*env)->open)(*env, home, open_flags, mode);
Panu Matilainen edc6f9
 	result = _ReturnSetup(interp, ret, DB_RETOK_STD(ret), "env open");
Panu Matilainen edc6f9
 
Panu Matilainen edc6f9
 	if (rep_flags != 0 && result == TCL_OK) {
Panu Matilainen edc6f9
@@ -2136,7 +2136,7 @@ bdb_DbOpen(interp, objc, objv, ip, dbp)
Panu Matilainen edc6f9
 	_debug_check();
Panu Matilainen edc6f9
 
Panu Matilainen edc6f9
 	/* Open the database. */
Panu Matilainen edc6f9
-	ret = (*dbp)->open(*dbp, txn, db, subdb, type, open_flags, mode);
Panu Matilainen edc6f9
+	ret = ((*dbp)->open)(*dbp, txn, db, subdb, type, open_flags, mode);
Panu Matilainen edc6f9
 	result = _ReturnSetup(interp, ret, DB_RETOK_STD(ret), "db open");
Panu Matilainen edc6f9
 
Panu Matilainen edc6f9
 error:
Panu Matilainen edc6f9
@@ -2395,7 +2395,7 @@ bdb_SeqOpen(interp, objc, objv, ip, seqp
Panu Matilainen edc6f9
 		    ret, DB_RETOK_STD(ret), "sequence init")) != TCL_OK)
Panu Matilainen edc6f9
 			goto error;
Panu Matilainen edc6f9
 	}
Panu Matilainen edc6f9
-	ret = (*seqp)->open(*seqp, txn, &key, oflags);
Panu Matilainen edc6f9
+	ret = ((*seqp)->open)(*seqp, txn, &key, oflags);
Panu Matilainen edc6f9
 	if ((result = _ReturnSetup(interp,
Panu Matilainen edc6f9
 	    ret, DB_RETOK_STD(ret), "sequence open")) != TCL_OK)
Panu Matilainen edc6f9
 		goto error;