From cce9f5905878025d77dd6da2a29f3885f0251765 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Mon, 8 Dec 2008 15:02:09 -0700 Subject: [PATCH] Fixes for 64-bit linux, courtesy of Phil Toland --- c_src/bdberl_drv.c | 2 +- c_src/buildlib.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/c_src/bdberl_drv.c b/c_src/bdberl_drv.c index 4e54707..f9c28e7 100644 --- a/c_src/bdberl_drv.c +++ b/c_src/bdberl_drv.c @@ -347,7 +347,7 @@ static int open_database(const char* name, DBTYPE type, PortData* data, int* dbr static int close_database(int dbref, PortData* data) { - printf("Closing %d for port %d\n", dbref, (int)data->port); + printf("Closing %d for port %p\n", dbref, data->port); // Remove this database from our list if (del_dbref(data, dbref)) diff --git a/c_src/buildlib.sh b/c_src/buildlib.sh index cf9a5a2..f5926b3 100755 --- a/c_src/buildlib.sh +++ b/c_src/buildlib.sh @@ -20,7 +20,7 @@ rm -rf system db-${DB_VER} ## Untar and build everything tar -xzf db-${DB_VER}.tar.gz && \ (cd db-${DB_VER}/build_unix && \ - ../dist/configure --prefix=$WORKDIR --disable-shared && make && ranlib libdb-*.a && make install) && \ + ../dist/configure --prefix=$WORKDIR --disable-shared --with-pic && make && ranlib libdb-*.a && make install) && \ rm -rf db-${DB_VER}