Discussions
Categories
- 196.7K All Categories
- 2.2K Data
- 235 Big Data Appliance
- 1.9K Data Science
- 449.8K Databases
- 221.5K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 549 MySQL Community Space
- 477 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 532 SQLcl
- 4K SQL Developer Data Modeler
- 186.8K SQL & PL/SQL
- 21.2K SQL Developer
- 295.4K Development
- 17 Developer Projects
- 138 Programming Languages
- 292K Development Tools
- 104 DevOps
- 3.1K QA/Testing
- 645.9K Java
- 27 Java Learning Subscription
- 37K Database Connectivity
- 153 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 17 Java Essentials
- 158 Java 8 Questions
- 85.9K Java Programming
- 79 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.2K Java SE
- 13.8K Java Security
- 203 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 390 LiveLabs
- 37 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.6K Other Languages
- 2.3K Chinese
- 170 Deutsche Oracle Community
- 1K Español
- 1.9K Japanese
- 230 Portuguese
comparison function returns incorrect data
Answers
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "db.h"
#define NS_PER_MS 1000000/* Nanoseconds in a millisecond*/
#define NS_PER_US 1000 /* Nanoseconds in a microsecond*/
#define DEF_RECS_PER_REP 5000/* Default records per repeat. */
#define DEF_REPEATS 5 /* Default repetition value */
#include <sys/time.h>
#include <unistd.h>
int compare_cmid(DB *, const DBT *, const DBT *, size_t *);
size_t compare_prefix(DB*, const DBT *, const DBT *);
int delete_recs __P((DB *, DB_ENV *, int));
int file_size __P((DB *, int *));
int insert_btree __P((DB *, DBC *, DB_ENV *, int));
int run_workload __P((DB *, DB*, int, int));
int open_db __P((DB **, DB_ENV *, char *, u_int32_t, int (*compare_cmid)(DB *, const DBT *, const DBT *, size_t *)));
const char *progname = "ex_heap";
int main(argc, argv)
int argc;
char *argv[];
{
DB_ENV *dbenv;
DB *dbp_small;
DB *dbp_large;
u_int32_t pgsize;
int ret, ret_t ;
int recs_per_rep, repeats;
dbenv = NULL;
dbp_small = NULL;
dbp_large = NULL;
ret = ret_t = 0;
recs_per_rep = DEF_RECS_PER_REP;
pgsize = 0;
repeats = DEF_REPEATS;
char profile_small [] = "profile_small.db";
char profile_large [] = "profile_large.db";
srand((int)time(NULL));
if ((ret = open_db(&dbp_small, dbenv, profile_small, pgsize, &compare_cmid)) != 0) {
//dbenv->err(dbenv, ret,"Failed to open btree database.");
goto err;
}
if ((ret = open_db(&dbp_large, dbenv, profile_large, pgsize, NULL)) != 0) {
//dbenv->err(dbenv, ret,"Failed to open btree database.");
goto err;
}
if ((ret = run_workload(dbp_small, dbp_large, repeats, recs_per_rep)) != 0) {
//dbenv->err(dbenv, ret,"Failed to perform operations on btree database.");
goto err;
}
err:
if (dbp_small != NULL && (ret_t = dbp_small->close(dbp_small, 0)) != 0) {
//dbenv->err(dbenv, ret_t, "DB->close");
ret = (ret == 0 ? ret_t : ret);
}
if (dbp_large!= NULL && (ret_t = dbp_large->close(dbp_large, 0)) != 0) {
//dbenv->err(dbenv, ret_t, "DB->close");
ret = (ret == 0 ? ret_t : ret);
}
if (dbenv != NULL && (ret_t = dbenv->close(dbenv, 0)) != 0) {
fprintf(stderr, "%s: dbenv->close: %s", progname,
db_strerror(ret_t));
ret = (ret == 0 ? ret_t : ret);
}
return (ret);
}
int delete_recs(dbp, dbenv, numrecs)
DB *dbp;
DB_ENV *dbenv;
int numrecs;
{
DBC *dbcp;
DBT key, data;
int cnt, ret;
memset(&key, 0, sizeof(DBT));
memset(&data, 0, sizeof(DBT));
cnt = ret = 0;
dbcp = NULL;
printf("inside delete\n");
if ((ret = dbp->cursor(dbp, NULL, &dbcp, 0)) != 0) {
// dbenv->err(dbenv, ret, "delete_recs:DB->cursor");
goto err;
}
while ((ret = dbcp->get(dbcp, &key, &data, DB_NEXT)) == 0 && cnt < numrecs) {
if ((ret = dbcp->del(dbcp, 0)) != 0) {
printf("failed to delete \n");
//dbenv->err(dbenv, ret, "delete_recs:DBCursor->del");
break;
} else
++cnt;
}
goto err;
err:
if (dbcp != NULL && (ret = dbcp->close(dbcp)) != 0)
//dbenv->err(dbenv, ret, "delete_recs:DBCursor->close");
return (ret);
}
/* Calculate the size of the given database. */
int file_size(dbp, fsize)
DB *dbp;
int *fsize;
{
DB_ENV *dbenv;
u_int32_t pgcnt, pgsize;
int ret, size;
void *statp;
dbenv = dbp->dbenv;
pgsize = dbp->pgsize;
ret = size = 0;
if ((ret = dbp->stat(dbp, NULL, &statp, DB_FAST_STAT)) != 0) {
//dbenv->err(dbenv, ret, "DB->stat");
return (ret);
}
pgcnt = ((DB_BTREE_STAT *)statp)->bt_pagecnt;
size = pgcnt * pgsize;
*fsize = size;
free(statp);
return (ret);
}
int open_db(dbpp, dbenv, dbname, pgsize, compare_fcn)
DB **dbpp;
DB_ENV *dbenv;
char* dbname;
u_int32_t pgsize;
int (*compare_fcn)(DB *db, const DBT *a, const DBT *b, size_t *locp);
{
DB *dbp;
int ret = 0;
/* Create a database handle and open a database. */
if ((ret = db_create(&dbp, dbenv, 0)) != 0) {
//dbenv->err(dbenv, ret, "db_create : %s", dbname);
goto err;
}
*dbpp = dbp;
if(compare_fcn != NULL) {
dbp->set_bt_prefix(dbp, &compare_prefix);
}
if ((compare_fcn != NULL) && (ret = dbp->set_bt_compare(dbp, compare_fcn)) != 0) {
//dbp->err(dbp, ret, "DB->set_bt_compare");
goto err;
}
// if ((pgsize > 0) && (ret = dbp->set_pagesize(dbp, pgsize)) != 0) {
// dbenv->err(dbenv, ret, "DB->set_pagesize");
// return (ret);
// }
if ((ret = dbp->open(dbp, NULL, dbname, NULL, DB_BTREE, DB_CREATE, 0)) != 0)
//dbenv->err(dbenv, ret, "DB->open");
err:
printf("error during open");
return (ret);
}
int run_workload(dbp_small, dbp_large, repeats, recs_per_rep)
DB *dbp_small;
DB *dbp_large;
int repeats, recs_per_rep;
{
DB_ENV *dbenv;
DBC* dbcp;
struct timeval end_time, start_time;
double *time_secs;
int *db_file_sizes, fsize, i, ret;
dbenv = dbp_small->dbenv;
fsize = 0;
time_secs = NULL;
db_file_sizes = NULL;
dbcp = NULL;
/* An array to record the physical database file size. */
if ((db_file_sizes =
(int *)malloc((repeats + 1) * sizeof(int))) == NULL) {
fprintf(stderr,
"%s: Unable to allocate space for array db_file_sizes.\n",
progname);
goto err;
}
memset(db_file_sizes, 0, (repeats + 1) * sizeof(int));
/* An array to record the running time for each repetition. */
if ((time_secs =
(double *)malloc((repeats + 1) * sizeof(double))) == NULL) {
fprintf(stderr,
"%s: Unable to allocate space for array time_secs.\n",
progname);
goto err;
}
memset(time_secs, 0, (repeats + 1) * sizeof(double));
if ((ret = dbp_large->cursor(dbp_large, NULL, &dbcp, 0)) != 0) {
goto err;
}
printf("\n\n======================================================");
printf("\n\tPagesize: %d", dbp_small->pgsize);
printf("\n\tNumber of repetitions: %d", repeats);
printf("\n\tNumber of inserts per repetition: %d\n", recs_per_rep);
/*
* * Insert records to the database and delete the same number from
* * the database, then check the change of the physical database file.
* *
* * Don't delete after the first insertion to leave some data
* * in the tables for subsequent iterations.
* */
for (i = 0; i < repeats; i++) {
/* Time for each loop. */
(void)gettimeofday(&start_time, NULL);
if ((ret = insert_btree(dbp_small, dbcp, dbenv,recs_per_rep)) != 0) {
//dbenv->err(dbenv, ret,"Failed to insert records to btree database.");
goto err;
}
if ((ret = delete_recs(dbp_small, dbenv, recs_per_rep)) != 0) {
printf("failed to delete");
//dbenv->err(dbenv, ret, "Failed to delete records.");
goto err;
}
(void)gettimeofday(&end_time, NULL);
time_secs[i] =
(((double)end_time.tv_sec * NS_PER_MS +
end_time.tv_usec) -
((double)start_time.tv_sec * NS_PER_MS +
start_time.tv_usec)) / NS_PER_MS;
/* Calculate the physical file size for each repetition. */
if ((ret = file_size(dbp_small, &fsize)) != 0) {
// dbenv->err(dbenv, ret, "Failed to calculate the file size on repeat %d.\n", i);
goto err;
}
db_file_sizes[i] = fsize;
}
printf("\n------------------------------------------------------\n");
printf("%5s \t %10s \t %10s\n", "repetition", "physical file size",
"running time");
for (i = 0; i < repeats; i++)
printf("%5d \t\t %10d \t\t %.2f seconds\n",
i, db_file_sizes[i], time_secs[i]);
err:
if (db_file_sizes != NULL)
free(db_file_sizes);
if (time_secs != NULL)
free(time_secs);
return (ret);
}
/*
* * Insert an certain number of records to btree database,
* * with the key beginning with a specified value.
* */
int insert_btree(dbp, dbcp, dbenv, numrecs)
DB *dbp;
DBC *dbcp;
DB_ENV *dbenv;
int numrecs;
{
DBT key, data;
int ret;
int count = 0;
memset(&key, 0, sizeof(DBT));
memset(&data, 0, sizeof(DBT));
ret = 0;
while(count < numrecs) {
if(dbcp->c_get(dbcp, &key, &data, DB_NEXT) == 0) {
if( dbp->put(dbp, NULL, &key, &data, 0) !=0) {
printf("failed to insert");
}
}
count++;
}
return (ret);
}
int compare_cmid(dbp, a, b, lob)
DB *dbp;
const DBT *a, *b;
size_t *lob;
{
printf("a = %s\n", a->data);
printf("b = %s\n", b->data);
char b_data[50];
strcpy(b_data, b->data);
char command[50];
strcpy(command, "db5.3_dump -da /root/BerkeleyDB/build_unix/profile_small.db | grep ");
strcat(command, b_data);
system(command);
char key_a[25];
char key_b[25];
memset(key_a,'\0',sizeof(key_a));
memset(key_b,'\0',sizeof(key_b));
int ascii_a[256];
int ascii_b[256];
int i;
memset(ascii_a, 0, sizeof(ascii_a));
memset(ascii_b, 0, sizeof(ascii_b));
strcpy(key_a, a->data);
strcpy(key_b, b->data);
int l_a;
l_a = strlen(key_a);
int l_b;
l_b = strlen(key_b);
int value;
for (i=0; i<l_a; i++) {
value = key_a[i];
ascii_a[value]++;
}
for(i=0; i<l_b; i++) {
value = key_b[i];
ascii_b[value]++;
}
for(i=0; i<256; i++) {
if(ascii_a[i] > ascii_b[i]) {
return 1;
} else if (ascii_a[i] < ascii_b[i]) {
return -1;
}
}
return 0;
}
size_t compare_prefix(dbp, a, b)
DB *dbp;
const DBT *a, *b;
{
return a->size;
}
-
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Berkeley DB configure 6.0.20, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ../dist/configure
## --------- ##
## Platform. ##
## --------- ##
uname -m = x86_64
uname -r = 2.6.32-431.3.1.el6.x86_64
uname -s = Linux
uname -v = #1 SMP Fri Jan 3 21:39:27 UTC 2014
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /opt/rh/devtoolset-1.1/root/usr/bin/
PATH: /usr/lib64/qt-3.3/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /root/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2870: checking build system type
configure:2884: result: x86_64-unknown-linux-gnu
configure:2904: checking host system type
configure:2917: result: x86_64-unknown-linux-gnu
configure:2949: checking if building in the top-level or dist directories
configure:2959: result: no
configure:3052: checking if --enable-smallbuild option specified
configure:3065: result: no
configure:3068: checking if --disable-atomicsupport option specified
configure:3081: result: no
configure:3093: checking if --disable-compression option specified
configure:3106: result: no
configure:3110: checking if --disable-hash option specified
configure:3123: result: no
configure:3127: checking if --disable-heap option specified
configure:3140: result: no
configure:3144: checking if --disable-mutexsupport option specified
configure:3157: result: no
configure:3161: checking if --disable-log_checksum option specified
configure:3176: result: no
configure:3181: checking if --disable-partition option specified
configure:3194: result: no
configure:3198: checking if --disable-queue option specified
configure:3211: result: no
configure:3215: checking if --disable-replication option specified
configure:3228: result: no
configure:3232: checking if --disable-statistics option specified
configure:3245: result: no
configure:3249: checking if --disable-verify option specified
configure:3262: result: no
configure:3266: checking if --enable-compat185 option specified
configure:3275: result: no
configure:3278: checking if --enable-cxx option specified
configure:3287: result: no
configure:3290: checking if --enable-debug option specified
configure:3299: result: no
configure:3302: checking if --enable-debug_rop option specified
configure:3311: result: no
configure:3314: checking if --enable-debug_wop option specified
configure:3323: result: no
configure:3326: checking if --enable-diagnostic option specified
configure:3350: result: no
configure:3354: checking if --enable-dump185 option specified
configure:3363: result: no
configure:3366: checking if --enable-java option specified
configure:3375: result: no
configure:3378: checking if --enable-mingw option specified
configure:3387: result: no
configure:3390: checking if --enable-o_direct option specified
configure:3399: result: no
configure:3402: checking if --enable-posixmutexes option specified
configure:3411: result: no
configure:3428: checking if --enable-rpc option specified
configure:3438: result: no
configure:3441: checking if --enable-sql option specified
configure:3450: result: no
configure:3453: checking if --enable-sql_compat option specified
configure:3462: result: no
configure:3465: checking if --enable-jdbc option specified
configure:3474: result: no
configure:3477: checking if --with-jdbc=DIR option specified
configure:3487: result: no
configure:3493: checking if --enable-amalgamation option specified
configure:3502: result: no
configure:3505: checking if --enable-sql_codegen option specified
configure:3514: result: no
configure:3517: checking if --enable-stl option specified
configure:3529: result: no
configure:3532: checking if --enable-tcl option specified
configure:3541: result: no
configure:3544: checking if --enable-test option specified
configure:3553: result: no
configure:3556: checking if --enable-localization option specified
configure:3565: result: no
configure:3568: checking if --enable-stripped_messages option specified
configure:3577: result: no
configure:3580: checking if --enable-dbm option specified
configure:3589: result: no
configure:3592: checking if --enable-dtrace option specified
configure:3601: result: no
configure:3604: checking if --enable-systemtap option specified
configure:3613: result: no
configure:3616: checking if --enable-perfmon-statistics option specified
configure:3625: result: no
configure:3628: checking if --enable-uimutexes option specified
configure:3637: result: no
configure:3640: checking if --enable-umrw option specified
configure:3649: result: no
configure:3660: checking if --enable-atomicfileread option specified
configure:3669: result: no
configure:3677: checking if --with-mutex=MUTEX option specified
configure:3693: result: no
configure:3714: checking if --with-tcl=DIR option specified
configure:3724: result: no
configure:3730: checking if --with-uniquename=NAME option specified
configure:3743: result: no
configure:3787: checking if --with-cryptography option specified
configure:3814: result: yes
configure:3900: checking for chmod
configure:3916: found /bin/chmod
configure:3927: result: chmod
configure:3994: checking for cp
configure:4010: found /bin/cp
configure:4021: result: cp
configure:4185: checking for ln
configure:4201: found /bin/ln
configure:4212: result: ln
configure:4279: checking for mkdir
configure:4295: found /bin/mkdir
configure:4306: result: mkdir
configure:4373: checking for rm
configure:4389: found /bin/rm
configure:4400: result: rm
configure:4470: checking for mv
configure:4486: found /bin/mv
configure:4497: result: mv
configure:4951: checking for sh
configure:4969: found /bin/sh
configure:4981: result: /bin/sh
configure:5023: checking for a BSD-compatible install
configure:5091: result: /usr/bin/install -c
configure:5240: checking for cc
configure:5256: found /opt/rh/devtoolset-1.1/root/usr/bin//cc
configure:5267: result: cc
configure:5298: checking for C compiler version
configure:5307: cc --version >&5
cc (GCC) 4.7.2 20121015 (Red Hat 4.7.2-5)
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:5318: $? = 0
configure:5307: cc -v >&5
Using built-in specs.
COLLECT_GCC=cc
COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-1.1/root/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/opt/rh/devtoolset-1.1/root/usr --mandir=/opt/rh/devtoolset-1.1/root/usr/share/man --infodir=/opt/rh/devtoolset-1.1/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --disable-build-with-cxx --disable-build-poststage1-with-cxx --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,fortran,lto --enable-plugin --with-linker-hash-style=gnu --enable-initfini-array --disable-libgcj --with-ppl --with-cloog --with-mpc=/builddir/build/BUILD/gcc-4.7.2-20121015/obj-x86_64-redhat-linux/mpc-install --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.7.2 20121015 (Red Hat 4.7.2-5) (GCC)
configure:5318: $? = 0
configure:5307: cc -V >&5
cc: error: unrecognized command line option '-V'
cc: fatal error: no input files
compilation terminated.
configure:5318: $? = 4
configure:5307: cc -qversion >&5
cc: error: unrecognized command line option '-qversion'
cc: fatal error: no input files
compilation terminated.
configure:5318: $? = 4
configure:5338: checking whether the C compiler works
configure:5360: cc -O -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:5364: $? = 0
configure:5412: result: yes
configure:5415: checking for C compiler default output file name
configure:5417: result: a.out
configure:5423: checking for suffix of executables
configure:5430: cc -o conftest -O -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:5434: $? = 0
configure:5456: result:
configure:5478: checking whether we are cross compiling
configure:5486: cc -o conftest -O -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:5490: $? = 0
configure:5497: ./conftest
configure:5501: $? = 0
configure:5516: result: no
configure:5521: checking for suffix of object files
configure:5543: cc -c -O -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:5547: $? = 0
configure:5568: result: o
configure:5572: checking whether we are using the GNU C compiler
configure:5591: cc -c -O -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:5591: $? = 0
configure:5600: result: yes
configure:5609: checking whether cc accepts -g
configure:5629: cc -c -g -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:5629: $? = 0
configure:5670: result: yes
configure:5687: checking for cc option to accept ISO C89
configure:5750: cc -c -O -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:5750: $? = 0
configure:5763: result: none needed
configure:5812: checking for an ANSI C-conforming const
configure:5878: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:5878: $? = 0
configure:5885: result: yes
configure:5893: checking for inline
configure:5909: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:5909: $? = 0
configure:5917: result: inline
configure:5949: checking for GCC aligned attribute
configure:5966: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:5966: $? = 0
configure:5973: result: yes
configure:6910: checking whether we are using gcc version 2.96
configure:6925: result: no
configure:7001: checking how to print strings
configure:7028: result: printf
configure:7049: checking for a sed that does not truncate output
configure:7113: result: /bin/sed
configure:7131: checking for grep that handles long lines and -e
configure:7189: result: /bin/grep
configure:7194: checking for egrep
configure:7256: result: /bin/grep -E
configure:7261: checking for fgrep
configure:7323: result: /bin/grep -F
configure:7358: checking for ld used by cc
configure:7425: result: /opt/rh/devtoolset-1.1/root/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/ld
configure:7432: checking if the linker (/opt/rh/devtoolset-1.1/root/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/ld) is GNU ld
configure:7447: result: yes
configure:7459: checking for BSD- or MS-compatible name lister (nm)
configure:7508: result: /opt/rh/devtoolset-1.1/root/usr/bin//nm -B
configure:7638: checking the name lister (/opt/rh/devtoolset-1.1/root/usr/bin//nm -B) interface
configure:7645: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:7648: /opt/rh/devtoolset-1.1/root/usr/bin//nm -B "conftest.o"
configure:7651: output
0000000000000000 B some_variable
configure:7658: result: BSD nm
configure:7661: checking whether ln -s works
configure:7665: result: yes
configure:7673: checking the maximum length of command line arguments
configure:7798: result: 1966080
configure:7815: checking whether the shell understands some XSI constructs
configure:7825: result: yes
configure:7829: checking whether the shell understands "+="
configure:7835: result: yes
configure:7870: checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format
configure:7910: result: func_convert_file_noop
configure:7917: checking how to convert x86_64-unknown-linux-gnu file names to toolchain format
configure:7937: result: func_convert_file_noop
configure:7944: checking for /opt/rh/devtoolset-1.1/root/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/ld option to reload object files
configure:7951: result: -r
configure:8025: checking for objdump
configure:8041: found /opt/rh/devtoolset-1.1/root/usr/bin//objdump
configure:8052: result: objdump
configure:8084: checking how to recognize dependent libraries
configure:8286: result: pass_all
configure:8371: checking for dlltool
configure:8401: result: no
configure:8431: checking how to associate runtime and link libraries
configure:8458: result: printf %s\n
configure:8518: checking for ar
configure:8534: found /opt/rh/devtoolset-1.1/root/usr/bin//ar
configure:8545: result: ar
configure:8582: checking for archiver @FILE support
configure:8599: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:8599: $? = 0
configure:8602: ar cru libconftest.a @conftest.lst >&5
configure:8605: $? = 0
configure:8610: ar cru libconftest.a @conftest.lst >&5
ar: conftest.o: No such file or directory
configure:8613: $? = 1
configure:8683: checking for strip
configure:8699: found /opt/rh/devtoolset-1.1/root/usr/bin//strip
configure:8710: result: strip
configure:8782: checking for ranlib
configure:8798: found /opt/rh/devtoolset-1.1/root/usr/bin//ranlib
configure:8809: result: ranlib
configure:8886: checking for gawk
configure:8902: found /bin/gawk
configure:8913: result: gawk
configure:8953: checking command to parse /opt/rh/devtoolset-1.1/root/usr/bin//nm -B output from cc object
configure:9072: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:9075: $? = 0
configure:9079: /opt/rh/devtoolset-1.1/root/usr/bin//nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm
configure:9082: $? = 0
configure:9148: cc -o conftest -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c conftstm.o >&5
configure:9151: $? = 0
configure:9189: result: ok
configure:9226: checking for sysroot
configure:9256: result: no
configure:9333: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:9336: $? = 0
configure:9499: checking for mt
configure:9529: result: no
configure:9549: checking if : is a manifest tool
configure:9555: : '-?'
configure:9563: result: no
configure:10195: checking how to run the C preprocessor
configure:10226: cc -E -D_GNU_SOURCE -D_REENTRANT conftest.c
configure:10226: $? = 0
configure:10240: cc -E -D_GNU_SOURCE -D_REENTRANT conftest.c
conftest.c:10:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:10240: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Berkeley DB"
| #define PACKAGE_TARNAME "db-6.0.20"
| #define PACKAGE_VERSION "6.0.20"
| #define PACKAGE_STRING "Berkeley DB 6.0.20"
| #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
| #define PACKAGE_URL ""
| #define HAVE_UPGRADE_SUPPORT 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:10265: result: cc -E
configure:10285: cc -E -D_GNU_SOURCE -D_REENTRANT conftest.c
configure:10285: $? = 0
configure:10299: cc -E -D_GNU_SOURCE -D_REENTRANT conftest.c
conftest.c:10:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:10299: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Berkeley DB"
| #define PACKAGE_TARNAME "db-6.0.20"
| #define PACKAGE_VERSION "6.0.20"
| #define PACKAGE_STRING "Berkeley DB 6.0.20"
| #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
| #define PACKAGE_URL ""
| #define HAVE_UPGRADE_SUPPORT 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:10328: checking for ANSI C header files
configure:10348: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:10348: $? = 0
configure:10421: cc -o conftest -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:10421: $? = 0
configure:10421: ./conftest
configure:10421: $? = 0
configure:10432: result: yes
configure:10445: checking for sys/types.h
configure:10445: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:10445: $? = 0
configure:10445: result: yes
configure:10445: checking for sys/stat.h
configure:10445: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:10445: $? = 0
configure:10445: result: yes
configure:10445: checking for stdlib.h
configure:10445: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:10445: $? = 0
configure:10445: result: yes
configure:10445: checking for string.h
configure:10445: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:10445: $? = 0
configure:10445: result: yes
configure:10445: checking for memory.h
configure:10445: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:10445: $? = 0
configure:10445: result: yes
configure:10445: checking for strings.h
configure:10445: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:10445: $? = 0
configure:10445: result: yes
configure:10445: checking for inttypes.h
configure:10445: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:10445: $? = 0
configure:10445: result: yes
configure:10445: checking for stdint.h
configure:10445: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:10445: $? = 0
configure:10445: result: yes
configure:10445: checking for unistd.h
configure:10445: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:10445: $? = 0
configure:10445: result: yes
configure:10459: checking for dlfcn.h
configure:10459: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:10459: $? = 0
configure:10459: result: yes
configure:10656: checking for objdir
configure:10671: result: .libs
configure:10942: checking if cc supports -fno-rtti -fno-exceptions
configure:10960: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT -fno-rtti -fno-exceptions conftest.c >&5
cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [enabled by default]
configure:10964: $? = 0
configure:10977: result: no
configure:11287: checking for cc option to produce PIC
configure:11294: result: -fPIC -DPIC
configure:11302: checking if cc PIC flag -fPIC -DPIC works
configure:11320: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT -fPIC -DPIC -DPIC conftest.c >&5
configure:11324: $? = 0
configure:11337: result: yes
configure:11366: checking if cc static flag -static works
configure:11394: result: no
configure:11409: checking if cc supports -c -o file.o
configure:11430: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT -o out/conftest2.o conftest.c >&5
configure:11434: $? = 0
configure:11456: result: yes
configure:11464: checking if cc supports -c -o file.o
configure:11511: result: yes
configure:11544: checking whether the cc linker (/opt/rh/devtoolset-1.1/root/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/ld -m elf_x86_64) supports shared libraries
configure:12702: result: yes
configure:12739: checking whether -lc should be explicitly linked in
configure:12747: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:12750: $? = 0
configure:12765: cc -shared -fPIC -DPIC conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| /bin/grep -lc \>/dev/null 2\>\&1
configure:12768: $? = 0
configure:12782: result: no
configure:12947: checking dynamic linker characteristics
configure:13461: cc -o conftest -O3 -D_GNU_SOURCE -D_REENTRANT -Wl,-rpath -Wl,/foo conftest.c >&5
configure:13461: $? = 0
configure:13683: result: GNU/Linux ld.so
configure:13790: checking how to hardcode library paths into programs
configure:13815: result: immediate
configure:14355: checking whether stripping libraries is possible
configure:14360: result: yes
configure:14395: checking if libtool supports shared libraries
configure:14397: result: yes
configure:14400: checking whether to build shared libraries
configure:14421: result: yes
configure:14424: checking whether to build static libraries
configure:14428: result: yes
configure:17658: checking SOSUFFIX from libtool
configure:17680: result: .so
configure:17685: checking MODSUFFIX from libtool
configure:17707: result: .so
configure:17712: checking JMODSUFFIX from libtool
configure:17738: result: .so
configure:19272: checking whether stat file-mode macros are broken
configure:19299: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:19299: $? = 0
configure:19306: result: no
configure:19314: checking whether time.h and sys/time.h may both be included
configure:19334: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:19334: $? = 0
configure:19341: result: yes
configure:19352: checking for dirent.h that defines DIR
configure:19371: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:19371: $? = 0
configure:19379: result: yes
configure:19392: checking for library containing opendir
configure:19423: cc -o conftest -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:19423: $? = 0
configure:19440: result: none required
configure:19510: checking execinfo.h usability
configure:19510: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:19510: $? = 0
configure:19510: result: yes
configure:19510: checking execinfo.h presence
configure:19510: cc -E -D_GNU_SOURCE -D_REENTRANT conftest.c
configure:19510: $? = 0
configure:19510: result: yes
configure:19510: checking for execinfo.h
configure:19510: result: yes
configure:19510: checking sys/select.h usability
configure:19510: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:19510: $? = 0
configure:19510: result: yes
configure:19510: checking sys/select.h presence
configure:19510: cc -E -D_GNU_SOURCE -D_REENTRANT conftest.c
configure:19510: $? = 0
configure:19510: result: yes
configure:19510: checking for sys/select.h
configure:19510: result: yes
configure:19510: checking sys/socket.h usability
configure:19510: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:19510: $? = 0
configure:19510: result: yes
configure:19510: checking sys/socket.h presence
configure:19510: cc -E -D_GNU_SOURCE -D_REENTRANT conftest.c
configure:19510: $? = 0
configure:19510: result: yes
configure:19510: checking for sys/socket.h
configure:19510: result: yes
configure:19510: checking sys/time.h usability
configure:19510: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:19510: $? = 0
configure:19510: result: yes
configure:19510: checking sys/time.h presence
configure:19510: cc -E -D_GNU_SOURCE -D_REENTRANT conftest.c
configure:19510: $? = 0
configure:19510: result: yes
configure:19510: checking for sys/time.h
configure:19510: result: yes
configure:19520: checking for struct stat.st_blksize
configure:19520: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:19520: $? = 0
configure:19520: result: yes
configure:19544: checking for inttypes.h
configure:19544: result: yes
configure:19561: checking for stdint.h
configure:19572: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:19572: $? = 0
configure:19573: result: yes
configure:19630: checking stddef.h usability
configure:19630: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:19630: $? = 0
configure:19630: result: yes
configure:19630: checking stddef.h presence
configure:19630: cc -E -D_GNU_SOURCE -D_REENTRANT conftest.c
configure:19630: $? = 0
configure:19630: result: yes
configure:19630: checking for stddef.h
configure:19630: result: yes
configure:19640: checking for unistd.h
configure:19640: result: yes
configure:19657: checking size of char
configure:19662: cc -o conftest -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:19662: $? = 0
configure:19662: ./conftest
configure:19662: $? = 0
configure:19677: result: 1
configure:19691: checking size of unsigned char
configure:19696: cc -o conftest -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:19696: $? = 0
configure:19696: ./conftest
configure:19696: $? = 0
configure:19711: result: 1
configure:19725: checking size of short
configure:19730: cc -o conftest -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:19730: $? = 0
configure:19730: ./conftest
configure:19730: $? = 0
configure:19745: result: 2
configure:19759: checking size of unsigned short
configure:19764: cc -o conftest -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:19764: $? = 0
configure:19764: ./conftest
configure:19764: $? = 0
configure:19779: result: 2
configure:19793: checking size of int
configure:19798: cc -o conftest -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:19798: $? = 0
configure:19798: ./conftest
configure:19798: $? = 0
configure:19813: result: 4
configure:19827: checking size of unsigned int
configure:19832: cc -o conftest -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:19832: $? = 0
configure:19832: ./conftest
configure:19832: $? = 0
configure:19847: result: 4
configure:19861: checking size of long
configure:19866: cc -o conftest -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:19866: $? = 0
configure:19866: ./conftest
configure:19866: $? = 0
configure:19881: result: 8
configure:19895: checking size of unsigned long
configure:19900: cc -o conftest -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:19900: $? = 0
configure:19900: ./conftest
configure:19900: $? = 0
configure:19915: result: 8
configure:19929: checking size of long long
configure:19934: cc -o conftest -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:19934: $? = 0
configure:19934: ./conftest
configure:19934: $? = 0
configure:19949: result: 8
configure:19963: checking size of unsigned long long
configure:19968: cc -o conftest -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:19968: $? = 0
configure:19968: ./conftest
configure:19968: $? = 0
configure:19983: result: 8
configure:19997: checking size of char *
configure:20002: cc -o conftest -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:20002: $? = 0
configure:20002: ./conftest
configure:20002: $? = 0
configure:20017: result: 8
configure:20031: checking for u_char
configure:20031: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:20031: $? = 0
configure:20031: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
conftest.c: In function 'main':
conftest.c:51:21: error: expected expression before ')' token
configure:20031: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Berkeley DB"
| #define PACKAGE_TARNAME "db-6.0.20"
| #define PACKAGE_VERSION "6.0.20"
| #define PACKAGE_STRING "Berkeley DB 6.0.20"
| #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
| #define PACKAGE_URL ""
| #define HAVE_UPGRADE_SUPPORT 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYSTEM_INCLUDE_FILES 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DIRENT_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
| #define SIZEOF_CHAR 1
| #define SIZEOF_UNSIGNED_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_UNSIGNED_SHORT 2
| #define SIZEOF_INT 4
| #define SIZEOF_UNSIGNED_INT 4
| #define SIZEOF_LONG 8
| #define SIZEOF_UNSIGNED_LONG 8
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_UNSIGNED_LONG_LONG 8
| #define SIZEOF_CHAR_P 8
| /* end confdefs.h. */
| #include <sys/types.h>
| #include <inttypes.h>
| #include <stdint.h>
| #include <stddef.h>
| #include <unistd.h>
| #include <stdio.h>
|
| int
| main ()
| {
| if (sizeof ((u_char)))
| return 0;
| ;
| return 0;
| }
configure:20031: result: yes
configure:20041: checking for u_short
configure:20041: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:20041: $? = 0
configure:20041: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
conftest.c: In function 'main':
conftest.c:51:22: error: expected expression before ')' token
configure:20041: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Berkeley DB"
| #define PACKAGE_TARNAME "db-6.0.20"
| #define PACKAGE_VERSION "6.0.20"
| #define PACKAGE_STRING "Berkeley DB 6.0.20"
| #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
| #define PACKAGE_URL ""
| #define HAVE_UPGRADE_SUPPORT 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYSTEM_INCLUDE_FILES 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DIRENT_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
| #define SIZEOF_CHAR 1
| #define SIZEOF_UNSIGNED_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_UNSIGNED_SHORT 2
| #define SIZEOF_INT 4
| #define SIZEOF_UNSIGNED_INT 4
| #define SIZEOF_LONG 8
| #define SIZEOF_UNSIGNED_LONG 8
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_UNSIGNED_LONG_LONG 8
| #define SIZEOF_CHAR_P 8
| /* end confdefs.h. */
| #include <sys/types.h>
| #include <inttypes.h>
| #include <stdint.h>
| #include <stddef.h>
| #include <unistd.h>
| #include <stdio.h>
|
| int
| main ()
| {
| if (sizeof ((u_short)))
| return 0;
| ;
| return 0;
| }
configure:20041: result: yes
configure:20051: checking for u_int
configure:20051: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:20051: $? = 0
configure:20051: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
conftest.c: In function 'main':
conftest.c:51:20: error: expected expression before ')' token
configure:20051: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Berkeley DB"
| #define PACKAGE_TARNAME "db-6.0.20"
| #define PACKAGE_VERSION "6.0.20"
| #define PACKAGE_STRING "Berkeley DB 6.0.20"
| #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
| #define PACKAGE_URL ""
| #define HAVE_UPGRADE_SUPPORT 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYSTEM_INCLUDE_FILES 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DIRENT_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
| #define SIZEOF_CHAR 1
| #define SIZEOF_UNSIGNED_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_UNSIGNED_SHORT 2
| #define SIZEOF_INT 4
| #define SIZEOF_UNSIGNED_INT 4
| #define SIZEOF_LONG 8
| #define SIZEOF_UNSIGNED_LONG 8
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_UNSIGNED_LONG_LONG 8
| #define SIZEOF_CHAR_P 8
| /* end confdefs.h. */
| #include <sys/types.h>
| #include <inttypes.h>
| #include <stdint.h>
| #include <stddef.h>
| #include <unistd.h>
| #include <stdio.h>
|
| int
| main ()
| {
| if (sizeof ((u_int)))
| return 0;
| ;
| return 0;
| }
configure:20051: result: yes
configure:20061: checking for u_long
configure:20061: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:20061: $? = 0
configure:20061: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
conftest.c: In function 'main':
conftest.c:51:21: error: expected expression before ')' token
configure:20061: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Berkeley DB"
| #define PACKAGE_TARNAME "db-6.0.20"
| #define PACKAGE_VERSION "6.0.20"
| #define PACKAGE_STRING "Berkeley DB 6.0.20"
| #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
| #define PACKAGE_URL ""
| #define HAVE_UPGRADE_SUPPORT 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYSTEM_INCLUDE_FILES 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DIRENT_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
| #define SIZEOF_CHAR 1
| #define SIZEOF_UNSIGNED_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_UNSIGNED_SHORT 2
| #define SIZEOF_INT 4
| #define SIZEOF_UNSIGNED_INT 4
| #define SIZEOF_LONG 8
| #define SIZEOF_UNSIGNED_LONG 8
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_UNSIGNED_LONG_LONG 8
| #define SIZEOF_CHAR_P 8
| /* end confdefs.h. */
| #include <sys/types.h>
| #include <inttypes.h>
| #include <stdint.h>
| #include <stddef.h>
| #include <unistd.h>
| #include <stdio.h>
|
| int
| main ()
| {
| if (sizeof ((u_long)))
| return 0;
| ;
| return 0;
| }
configure:20061: result: yes
configure:20072: checking for u_int8_t
configure:20072: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:20072: $? = 0
configure:20072: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
conftest.c: In function 'main':
conftest.c:51:23: error: expected expression before ')' token
configure:20072: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Berkeley DB"
| #define PACKAGE_TARNAME "db-6.0.20"
| #define PACKAGE_VERSION "6.0.20"
| #define PACKAGE_STRING "Berkeley DB 6.0.20"
| #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
| #define PACKAGE_URL ""
| #define HAVE_UPGRADE_SUPPORT 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYSTEM_INCLUDE_FILES 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DIRENT_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
| #define SIZEOF_CHAR 1
| #define SIZEOF_UNSIGNED_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_UNSIGNED_SHORT 2
| #define SIZEOF_INT 4
| #define SIZEOF_UNSIGNED_INT 4
| #define SIZEOF_LONG 8
| #define SIZEOF_UNSIGNED_LONG 8
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_UNSIGNED_LONG_LONG 8
| #define SIZEOF_CHAR_P 8
| /* end confdefs.h. */
| #include <sys/types.h>
| #include <inttypes.h>
| #include <stdint.h>
| #include <stddef.h>
| #include <unistd.h>
| #include <stdio.h>
|
| int
| main ()
| {
| if (sizeof ((u_int8_t)))
| return 0;
| ;
| return 0;
| }
configure:20072: result: yes
configure:20098: checking for u_int16_t
configure:20098: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:20098: $? = 0
configure:20098: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
conftest.c: In function 'main':
conftest.c:51:24: error: expected expression before ')' token
configure:20098: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Berkeley DB"
| #define PACKAGE_TARNAME "db-6.0.20"
| #define PACKAGE_VERSION "6.0.20"
| #define PACKAGE_STRING "Berkeley DB 6.0.20"
| #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
| #define PACKAGE_URL ""
| #define HAVE_UPGRADE_SUPPORT 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYSTEM_INCLUDE_FILES 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DIRENT_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
| #define SIZEOF_CHAR 1
| #define SIZEOF_UNSIGNED_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_UNSIGNED_SHORT 2
| #define SIZEOF_INT 4
| #define SIZEOF_UNSIGNED_INT 4
| #define SIZEOF_LONG 8
| #define SIZEOF_UNSIGNED_LONG 8
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_UNSIGNED_LONG_LONG 8
| #define SIZEOF_CHAR_P 8
| /* end confdefs.h. */
| #include <sys/types.h>
| #include <inttypes.h>
| #include <stdint.h>
| #include <stddef.h>
| #include <unistd.h>
| #include <stdio.h>
|
| int
| main ()
| {
| if (sizeof ((u_int16_t)))
| return 0;
| ;
| return 0;
| }
configure:20098: result: yes
configure:20124: checking for int16_t
configure:20124: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:20124: $? = 0
configure:20124: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
conftest.c: In function 'main':
conftest.c:51:22: error: expected expression before ')' token
configure:20124: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Berkeley DB"
| #define PACKAGE_TARNAME "db-6.0.20"
| #define PACKAGE_VERSION "6.0.20"
| #define PACKAGE_STRING "Berkeley DB 6.0.20"
| #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
| #define PACKAGE_URL ""
| #define HAVE_UPGRADE_SUPPORT 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYSTEM_INCLUDE_FILES 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DIRENT_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
| #define SIZEOF_CHAR 1
| #define SIZEOF_UNSIGNED_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_UNSIGNED_SHORT 2
| #define SIZEOF_INT 4
| #define SIZEOF_UNSIGNED_INT 4
| #define SIZEOF_LONG 8
| #define SIZEOF_UNSIGNED_LONG 8
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_UNSIGNED_LONG_LONG 8
| #define SIZEOF_CHAR_P 8
| /* end confdefs.h. */
| #include <sys/types.h>
| #include <inttypes.h>
| #include <stdint.h>
| #include <stddef.h>
| #include <unistd.h>
| #include <stdio.h>
|
| int
| main ()
| {
| if (sizeof ((int16_t)))
| return 0;
| ;
| return 0;
| }
configure:20124: result: yes
configure:20150: checking for u_int32_t
configure:20150: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:20150: $? = 0
configure:20150: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
conftest.c: In function 'main':
conftest.c:51:24: error: expected expression before ')' token
configure:20150: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Berkeley DB"
| #define PACKAGE_TARNAME "db-6.0.20"
| #define PACKAGE_VERSION "6.0.20"
| #define PACKAGE_STRING "Berkeley DB 6.0.20"
| #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
| #define PACKAGE_URL ""
| #define HAVE_UPGRADE_SUPPORT 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYSTEM_INCLUDE_FILES 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DIRENT_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
| #define SIZEOF_CHAR 1
| #define SIZEOF_UNSIGNED_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_UNSIGNED_SHORT 2
| #define SIZEOF_INT 4
| #define SIZEOF_UNSIGNED_INT 4
| #define SIZEOF_LONG 8
| #define SIZEOF_UNSIGNED_LONG 8
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_UNSIGNED_LONG_LONG 8
| #define SIZEOF_CHAR_P 8
| /* end confdefs.h. */
| #include <sys/types.h>
| #include <inttypes.h>
| #include <stdint.h>
| #include <stddef.h>
| #include <unistd.h>
| #include <stdio.h>
|
| int
| main ()
| {
| if (sizeof ((u_int32_t)))
| return 0;
| ;
| return 0;
| }
configure:20150: result: yes
configure:20176: checking for int32_t
configure:20176: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:20176: $? = 0
configure:20176: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
conftest.c: In function 'main':
conftest.c:51:22: error: expected expression before ')' token
configure:20176: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Berkeley DB"
| #define PACKAGE_TARNAME "db-6.0.20"
| #define PACKAGE_VERSION "6.0.20"
| #define PACKAGE_STRING "Berkeley DB 6.0.20"
| #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
| #define PACKAGE_URL ""
| #define HAVE_UPGRADE_SUPPORT 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYSTEM_INCLUDE_FILES 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DIRENT_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
| #define SIZEOF_CHAR 1
| #define SIZEOF_UNSIGNED_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_UNSIGNED_SHORT 2
| #define SIZEOF_INT 4
| #define SIZEOF_UNSIGNED_INT 4
| #define SIZEOF_LONG 8
| #define SIZEOF_UNSIGNED_LONG 8
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_UNSIGNED_LONG_LONG 8
| #define SIZEOF_CHAR_P 8
| /* end confdefs.h. */
| #include <sys/types.h>
| #include <inttypes.h>
| #include <stdint.h>
| #include <stddef.h>
| #include <unistd.h>
| #include <stdio.h>
|
| int
| main ()
| {
| if (sizeof ((int32_t)))
| return 0;
| ;
| return 0;
| }
configure:20176: result: yes
configure:20202: checking for u_int64_t
configure:20202: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:20202: $? = 0
configure:20202: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
conftest.c: In function 'main':
conftest.c:51:24: error: expected expression before ')' token
configure:20202: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Berkeley DB"
| #define PACKAGE_TARNAME "db-6.0.20"
| #define PACKAGE_VERSION "6.0.20"
| #define PACKAGE_STRING "Berkeley DB 6.0.20"
| #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
| #define PACKAGE_URL ""
| #define HAVE_UPGRADE_SUPPORT 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYSTEM_INCLUDE_FILES 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DIRENT_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
| #define SIZEOF_CHAR 1
| #define SIZEOF_UNSIGNED_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_UNSIGNED_SHORT 2
| #define SIZEOF_INT 4
| #define SIZEOF_UNSIGNED_INT 4
| #define SIZEOF_LONG 8
| #define SIZEOF_UNSIGNED_LONG 8
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_UNSIGNED_LONG_LONG 8
| #define SIZEOF_CHAR_P 8
| /* end confdefs.h. */
| #include <sys/types.h>
| #include <inttypes.h>
| #include <stdint.h>
| #include <stddef.h>
| #include <unistd.h>
| #include <stdio.h>
|
| int
| main ()
| {
| if (sizeof ((u_int64_t)))
| return 0;
| ;
| return 0;
| }
configure:20202: result: yes
configure:20228: checking for int64_t
configure:20228: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:20228: $? = 0
configure:20228: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
conftest.c: In function 'main':
conftest.c:51:22: error: expected expression before ')' token
configure:20228: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Berkeley DB"
| #define PACKAGE_TARNAME "db-6.0.20"
| #define PACKAGE_VERSION "6.0.20"
| #define PACKAGE_STRING "Berkeley DB 6.0.20"
| #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
| #define PACKAGE_URL ""
| #define HAVE_UPGRADE_SUPPORT 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYSTEM_INCLUDE_FILES 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DIRENT_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
| #define SIZEOF_CHAR 1
| #define SIZEOF_UNSIGNED_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_UNSIGNED_SHORT 2
| #define SIZEOF_INT 4
| #define SIZEOF_UNSIGNED_INT 4
| #define SIZEOF_LONG 8
| #define SIZEOF_UNSIGNED_LONG 8
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_UNSIGNED_LONG_LONG 8
| #define SIZEOF_CHAR_P 8
| /* end confdefs.h. */
| #include <sys/types.h>
| #include <inttypes.h>
| #include <stdint.h>
| #include <stddef.h>
| #include <unistd.h>
| #include <stdio.h>
|
| int
| main ()
| {
| if (sizeof ((int64_t)))
| return 0;
| ;
| return 0;
| }
configure:20228: result: yes
configure:20258: checking for FILE *
configure:20258: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:20258: $? = 0
configure:20258: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
conftest.c: In function 'main':
conftest.c:51:21: error: expected expression before ')' token
configure:20258: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Berkeley DB"
| #define PACKAGE_TARNAME "db-6.0.20"
| #define PACKAGE_VERSION "6.0.20"
| #define PACKAGE_STRING "Berkeley DB 6.0.20"
| #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
| #define PACKAGE_URL ""
| #define HAVE_UPGRADE_SUPPORT 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYSTEM_INCLUDE_FILES 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DIRENT_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
| #define SIZEOF_CHAR 1
| #define SIZEOF_UNSIGNED_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_UNSIGNED_SHORT 2
| #define SIZEOF_INT 4
| #define SIZEOF_UNSIGNED_INT 4
| #define SIZEOF_LONG 8
| #define SIZEOF_UNSIGNED_LONG 8
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_UNSIGNED_LONG_LONG 8
| #define SIZEOF_CHAR_P 8
| /* end confdefs.h. */
| #include <sys/types.h>
| #include <inttypes.h>
| #include <stdint.h>
| #include <stddef.h>
| #include <unistd.h>
| #include <stdio.h>
|
| int
| main ()
| {
| if (sizeof ((FILE *)))
| return 0;
| ;
| return 0;
| }
configure:20258: result: yes
configure:20267: checking for off_t
configure:20267: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:20267: $? = 0
configure:20267: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
conftest.c: In function 'main':
conftest.c:51:20: error: expected expression before ')' token
configure:20267: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Berkeley DB"
| #define PACKAGE_TARNAME "db-6.0.20"
| #define PACKAGE_VERSION "6.0.20"
| #define PACKAGE_STRING "Berkeley DB 6.0.20"
| #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
| #define PACKAGE_URL ""
| #define HAVE_UPGRADE_SUPPORT 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYSTEM_INCLUDE_FILES 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DIRENT_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
| #define SIZEOF_CHAR 1
| #define SIZEOF_UNSIGNED_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_UNSIGNED_SHORT 2
| #define SIZEOF_INT 4
| #define SIZEOF_UNSIGNED_INT 4
| #define SIZEOF_LONG 8
| #define SIZEOF_UNSIGNED_LONG 8
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_UNSIGNED_LONG_LONG 8
| #define SIZEOF_CHAR_P 8
| /* end confdefs.h. */
| #include <sys/types.h>
| #include <inttypes.h>
| #include <stdint.h>
| #include <stddef.h>
| #include <unistd.h>
| #include <stdio.h>
|
| int
| main ()
| {
| if (sizeof ((off_t)))
| return 0;
| ;
| return 0;
| }
configure:20267: result: yes
configure:20279: checking size of off_t
configure:20284: cc -o conftest -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:20284: $? = 0
configure:20284: ./conftest
configure:20284: $? = 0
configure:20299: result: 8
configure:20313: checking for db_off_t
configure:20313: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
conftest.c: In function 'main':
conftest.c:78:13: error: 'db_off_t' undeclared (first use in this function)
conftest.c:78:13: note: each undeclared identifier is reported only once for each function it appears in
configure:20313: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Berkeley DB"
| #define PACKAGE_TARNAME "db-6.0.20"
| #define PACKAGE_VERSION "6.0.20"
| #define PACKAGE_STRING "Berkeley DB 6.0.20"
| #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
| #define PACKAGE_URL ""
| #define HAVE_UPGRADE_SUPPORT 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYSTEM_INCLUDE_FILES 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DIRENT_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
| #define SIZEOF_CHAR 1
| #define SIZEOF_UNSIGNED_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_UNSIGNED_SHORT 2
| #define SIZEOF_INT 4
| #define SIZEOF_UNSIGNED_INT 4
| #define SIZEOF_LONG 8
| #define SIZEOF_UNSIGNED_LONG 8
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_UNSIGNED_LONG_LONG 8
| #define SIZEOF_CHAR_P 8
| #define SIZEOF_OFF_T 8
| /* end confdefs.h. */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| # include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| # include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| int
| main ()
| {
| if (sizeof (db_off_t))
| return 0;
| ;
| return 0;
| }
configure:20313: result: no
configure:20337: checking for pid_t
configure:20337: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
configure:20337: $? = 0
configure:20337: cc -c -O3 -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
conftest.c: In function 'main':
conftest.c:52:20: error: expected expression before ')' token
configure:20337: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Berkeley DB"
| #define PACKAGE_TARNAME "db-6.0.20"
| #define PACKAGE_VERSION "6.0.20"
| #define PACKAGE_STRING "Berkeley DB 6.0.20"
| #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
| #define PACKAGE_URL ""
| #define HAVE_UPGRADE_SUPPORT 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYSTEM_INCLUDE_FILES 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DIRENT_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
| #define SIZEOF_CHAR 1
| #define SIZEOF_UNSIGNED_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_UNSIGNED_SHORT 2
| #define SIZEOF_INT 4
| #define SIZEOF_UNSIGNED_INT 4
| #define SIZEOF_LONG 8
| #define SIZEOF_UNSIGNED_LONG 8
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_UNSIGNED_LONG_LONG 8
| #define SIZEOF_CHAR_P 8
| #define SIZEOF_OFF_T 8
| /* end confdefs.h. */
| #include <sys/types.h>
| #include <inttypes.h>
| #include <stdint.h>
| #include <stddef.h>
| #include <unistd.h>
| #include <stdio.h>
|
| int
| main ()
| {
| if (sizeof ((pid_t)))
| return 0;
| ;
| return 0;
| }
configure:20337: result: yes
configure:20346: checking
-
We examined the program and looked at the comparison routine. We ran a long battery of tests and found no truncation issues with BDB. the problem is in your code changes. BDB has no knowledge of data types. It takes an opaque view of the data -- i.e. it is just series of bytes. Most likely the problem is being caused because you are making an assumption that BDB is interpreting your data in a certain fashion. BDB does not know a string from an integer from a float. I would suggest you take a look at your comparison routine closely to see if you are inadvertently making a datatype assumption. For BDB a key is just a bunch of bytes that has a specified length.