Berkeley DB install-dbxml

I've installed Berkeley DB using the following link
https://web.cci.emory.edu/confluence/display/xmlds/Install+Berkeley+DB+XML+database+on+Unix+or+Linux
However, when I run the dbxml from the below directory it gives me "command not found"
path/to/dir/dbxml-2.5.16/install/bin$dbxml
-bash" dbxml: command not found
echo $LD_LIBRARY_PATH
/home/infs740/berkeley/dbxml-2.5.16/db-4.8.26/build_unix/.libs:
Can someone point me in the right direction.
Regards

Hi,
Please try one of below methods:
1.
Since the current shell is "BASH", please try "./dbxml" instead of "dbxml" in path/to/dir/dbxml-2.5.16/install/bin.
2.
To call dbxml command in other path. Try:
cd <path/to/dir/dbxml-2.5.16>/install/bin
export PATH=$PWD:$PATHThen "dbxml" can be called.
Best regards,
Rucong Zhao
Oracle Berkeley DB XML

Similar Messages

  • Problem installing DBXML on Ubuntu Server

    I'm trying to to install DBXML on a new Ubuntu Server. I've downloaded the 2.3.10 kit, and untar'd it intp /usr/local/dbxml-2.3.10.
    The output of sh buildall.sh and the contents of config.log are below
    Am I missing something in the server config??
    Thanks,
    ===================
    When I try to buildall.sh, I get the following:
    oaadmin@soa002:/usr/local/dbxml-2.3.10$ sudo sh buildall.sh
    Start DB build: Wed May 30 15:03:52 MDT 2007
    Configuring Berkeley DB
    checking build system type... i686-pc-linux-gnulibc1
    checking host system type... i686-pc-linux-gnulibc1
    checking if building in the top-level or dist directories... no
    checking if --disable-cryptography option specified... no
    checking if --disable-hash option specified... no
    checking if --disable-queue option specified... no
    checking if --disable-replication option specified... no
    checking if --disable-statistics option specified... no
    checking if --disable-verify option specified... no
    checking if --enable-compat185 option specified... no
    checking if --enable-cxx option specified... yes
    checking if --enable-debug option specified... no
    checking if --enable-debug_rop option specified... no
    checking if --enable-debug_wop option specified... no
    checking if --enable-diagnostic option specified... no
    checking if --enable-dump185 option specified... no
    checking if --enable-java option specified... no
    checking if --enable-mingw option specified... no
    checking if --enable-o_direct option specified... no
    checking if --enable-posixmutexes option specified... no
    checking if --enable-pthread_api option specified... no
    checking if --enable-rpc option specified... no
    checking if --enable-smallbuild option specified... no
    checking if --enable-tcl option specified... no
    checking if --enable-test option specified... no
    checking if --enable-uimutexes option specified... no
    checking if --enable-umrw option specified... no
    checking if --with-mutex=MUTEX option specified... no
    checking if --with-tcl=DIR option specified... no
    checking if --with-uniquename=NAME option specified... no
    checking for ar... ar
    checking for chmod... chmod
    checking for cp... cp
    checking for ln... ln
    checking for mkdir... mkdir
    checking for ranlib... ranlib
    checking for rm... rm
    checking for sh... /bin/sh
    checking for strip... strip
    checking for a BSD-compatible install... /usr/bin/install -c
    checking for C compiler default output file name... configure: error: C compiler cannot create executables
    See `config.log' for more details.
    ===================================
    The only config.log I can find is in db-4.5.20/build_unix, and contains:
    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 4.5.20, which was
    generated by GNU Autoconf 2.60. Invocation command line was
    $ ../dist/configure prefix=/usr/local/dbxml-2.3.10/install enable-cxx
    ## Platform. ##
    hostname = soa002
    uname -m = i686
    uname -r = 2.6.17-10-generic
    uname -s = Linux
    uname -v = #2 SMP Fri Oct 13 18:45:35 UTC 2006
    /usr/bin/uname -p = unknown
    /bin/uname -X = unknown
    /bin/arch = i686
    /usr/bin/arch -k = unknown
    /usr/convex/getsysinfo = unknown
    /usr/bin/hostinfo = unknown
    /bin/machine = unknown
    /usr/bin/oslevel = unknown
    /bin/universe = unknown
    PATH: /usr/local/sbin
    PATH: /usr/local/bin
    PATH: /usr/sbin
    PATH: /usr/bin
    PATH: /sbin
    PATH: /bin
    PATH: /usr/X11R6/bin
    ## Core tests. ##
    configure:2052: checking build system type
    configure:2070: result: i686-pc-linux-gnulibc1
    configure:2092: checking host system type
    configure:2107: result: i686-pc-linux-gnulibc1
    configure:2144: checking if building in the top-level or dist directories
    configure:2160: result: no
    configure:2244: checking if --disable-cryptography option specified
    configure:2257: result: no
    configure:2261: checking if --disable-hash option specified
    configure:2274: result: no
    configure:2278: checking if --disable-queue option specified
    configure:2291: result: no
    configure:2295: checking if --disable-replication option specified
    configure:2308: result: no
    configure:2312: checking if --disable-statistics option specified
    configure:2325: result: no
    configure:2329: checking if --disable-verify option specified
    configure:2342: result: no
    configure:2346: checking if --enable-compat185 option specified
    configure:2355: result: no
    configure:2358: checking if --enable-cxx option specified
    configure:2367: result: yes
    configure:2370: checking if --enable-debug option specified
    configure:2379: result: no
    configure:2382: checking if --enable-debug_rop option specified
    configure:2391: result: no
    configure:2394: checking if --enable-debug_wop option specified
    configure:2403: result: no
    configure:2406: checking if --enable-diagnostic option specified
    configure:2430: result: no
    configure:2434: checking if --enable-dump185 option specified
    configure:2443: result: no
    configure:2446: checking if --enable-java option specified
    configure:2455: result: no
    configure:2458: checking if --enable-mingw option specified
    configure:2467: result: no
    configure:2470: checking if --enable-o_direct option specified
    configure:2479: result: no
    configure:2482: checking if --enable-posixmutexes option specified
    configure:2491: result: no
    configure:2502: checking if --enable-pthread_api option specified
    configure:2515: result: no
    configure:2526: checking if --enable-rpc option specified
    configure:2535: result: no
    configure:2538: checking if --enable-smallbuild option specified
    configure:2555: result: no
    configure:2558: checking if --enable-tcl option specified
    configure:2567: result: no
    configure:2570: checking if --enable-test option specified
    configure:2579: result: no
    configure:2582: checking if --enable-uimutexes option specified
    configure:2591: result: no
    configure:2594: checking if --enable-umrw option specified
    configure:2603: result: no
    configure:2606: checking if --with-mutex=MUTEX option specified
    configure:2624: result: no
    configure:2638: checking if --with-tcl=DIR option specified
    configure:2648: result: no
    configure:2654: checking if --with-uniquename=NAME option specified
    configure:2667: result: no
    configure:2778: checking for ar
    configure:2794: found /usr/bin/ar
    configure:2805: result: ar
    configure:2878: checking for chmod
    configure:2894: found /bin/chmod
    configure:2905: result: chmod
    configure:2978: checking for cp
    configure:2994: found /bin/cp
    configure:3005: result: cp
    configure:3181: checking for ln
    configure:3197: found /bin/ln
    configure:3208: result: ln
    configure:3281: checking for mkdir
    configure:3297: found /bin/mkdir
    configure:3308: result: mkdir
    configure:3383: checking for ranlib
    configure:3399: found /usr/bin/ranlib
    configure:3410: result: ranlib
    configure:3480: checking for rm
    configure:3496: found /bin/rm
    configure:3507: result: rm
    configure:3689: checking for sh
    configure:3707: found /bin/sh
    configure:3719: result: /bin/sh
    configure:3796: checking for strip
    configure:3812: found /usr/bin/strip
    configure:3823: result: strip
    configure:3865: checking for a BSD-compatible install
    configure:3921: result: /usr/bin/install -c
    configure:4124: checking for C compiler version
    configure:4131: gcc --version >&5
    gcc (GCC) 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
    Copyright (C) 2006 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:4134: $? = 0
    configure:4141: gcc -v >&5
    Using built-in specs.
    Target: i486-linux-gnu
    Configured with: ../src/configure -v enable-languages=c,c++,fortran,objc,obj-c++,treelang prefix=/usr enable-shared with-system-zlib libexecdir=/usr/lib without-included-gettext enable-threads=posix enable-nls program-suffix=-4.1 enable-__cxa_atexit enable-clocale=gnu enable-libstdcxx-debug enable-mpfr enable-checking=release i486-linux-gnu
    Thread model: posix
    gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
    configure:4144: $? = 0
    configure:4151: gcc -V >&5
    gcc: '-V' option must have argument
    configure:4154: $? = 1
    configure:4177: checking for C compiler default output file name
    configure:4204: gcc -O -D_GNU_SOURCE -D_REENTRANT conftest.c >&5
    /usr/bin/ld: crt1.o: No such file: No such file or directory
    collect2: ld returned 1 exit status
    configure:4207: $? = 1
    configure: failed program was:
    | /* confdefs.h. */
    | #define PACKAGE_NAME "Berkeley DB"
    | #define PACKAGE_TARNAME "db-4.5.20"
    | #define PACKAGE_VERSION "4.5.20"
    | #define PACKAGE_STRING "Berkeley DB 4.5.20"
    | #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
    | /* end confdefs.h. */
    |
    | int
    | main ()
    | {
    |
    | ;
    | return 0;
    | }
    configure:4246: error: C compiler cannot create executables
    See `config.log' for more details.
    ## Cache variables. ##
    ac_cv_build=i686-pc-linux-gnulibc1
    ac_cv_env_CCC_set=
    ac_cv_env_CCC_value=
    ac_cv_env_CC_set=set
    ac_cv_env_CC_value=gcc
    ac_cv_env_CFLAGS_set=
    ac_cv_env_CFLAGS_value=
    ac_cv_env_CPPFLAGS_set=
    ac_cv_env_CPPFLAGS_value=
    ac_cv_env_CPP_set=
    ac_cv_env_CPP_value=
    ac_cv_env_CXXCPP_set=
    ac_cv_env_CXXCPP_value=
    ac_cv_env_CXXFLAGS_set=
    ac_cv_env_CXXFLAGS_value=
    ac_cv_env_CXX_set=set
    ac_cv_env_CXX_value=g++
    ac_cv_env_F77_set=
    ac_cv_env_F77_value=
    ac_cv_env_FFLAGS_set=
    ac_cv_env_FFLAGS_value=
    ac_cv_env_LDFLAGS_set=
    ac_cv_env_LDFLAGS_value=
    ac_cv_env_build_alias_set=
    ac_cv_env_build_alias_value=
    ac_cv_env_host_alias_set=
    ac_cv_env_host_alias_value=
    ac_cv_env_target_alias_set=
    ac_cv_env_target_alias_value=
    ac_cv_host=i686-pc-linux-gnulibc1
    ac_cv_path_ac_pt_db_cv_path_sh=/bin/sh
    ac_cv_path_install='/usr/bin/install -c'
    ac_cv_prog_ac_ct_AR=ar
    ac_cv_prog_ac_ct_CHMOD=chmod
    ac_cv_prog_ac_ct_CP=cp
    ac_cv_prog_ac_ct_LN=ln
    ac_cv_prog_ac_ct_MKDIR=mkdir
    ac_cv_prog_ac_ct_RANLIB=ranlib
    ac_cv_prog_ac_ct_RM=rm
    ac_cv_prog_ac_ct_STRIP=strip
    ac_pt_db_cv_path_sh=/bin/sh
    db_cv_build_cryptography=yes
    db_cv_build_hash=yes
    db_cv_build_queue=yes
    db_cv_build_replication=yes
    db_cv_build_statistics=yes
    db_cv_build_verify=yes
    db_cv_compat185=no
    db_cv_cxx=yes
    db_cv_debug=no
    db_cv_debug_rop=no
    db_cv_debug_wop=no
    db_cv_diagnostic=no
    db_cv_dump185=no
    db_cv_java=no
    db_cv_mingw=no
    db_cv_o_direct=no
    db_cv_path_sh=/bin/sh
    db_cv_posixmutexes=no
    db_cv_pthread_api=no
    db_cv_rpc=no
    db_cv_smallbuild=no
    db_cv_tcl=no
    db_cv_test=no
    db_cv_uimutexes=no
    db_cv_umrw=no
    db_cv_uniquename=no
    ## Output variables. ##
    ADDITIONAL_INCS=''
    ADDITIONAL_LANG=''
    ADDITIONAL_OBJS=''
    ADDITIONAL_PROGS=''
    AR='ar'
    BUILD_TARGET='library_build'
    CC='gcc'
    CCC=''
    CFLAGS='-O'
    CHMOD='chmod'
    CONFIGURATION_ARGS=''
    CONFIGURATION_PATH=''
    CP='cp'
    CPP=''
    CPPFLAGS=' -D_GNU_SOURCE -D_REENTRANT'
    CRYPTO_OBJS=''
    CXX='g++'
    CXXCPP=''
    CXXFLAGS='-O'
    DB_CONST=''
    DB_PROTO1=''
    DB_PROTO2=''
    DB_VERSION_MAJOR='4'
    DB_VERSION_MINOR='5'
    DB_VERSION_PATCH='20'
    DB_VERSION_STRING='"Berkeley DB 4.5.20: (September 20, 2006)"'
    DB_VERSION_UNIQUE_NAME=''
    DEFAULT_LIB=''
    DEFAULT_LIB_CXX=''
    DEFS=''
    ECHO='echo'
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EGREP=''
    EXEEXT=''
    F77=''
    FFLAGS=''
    GREP=''
    INSTALLER=''
    INSTALL_DATA='${INSTALL} -m 644'
    INSTALL_LIBS=''
    INSTALL_PROGRAM='${INSTALL}'
    INSTALL_SCRIPT='${INSTALL}'
    INSTALL_TARGET='library_install'
    INT64_FMT=''
    JAR=''
    JAVA=''
    JAVAC=''
    JAVACFLAGS=''
    JMODSUFFIX=''
    KILL=''
    LDFLAGS=''
    LIBCSO_LIBS=''
    LIBJSO_LIBS=''
    LIBOBJS=''
    LIBS=''
    LIBSO_LIBS=''
    LIBTOOL=''
    LIBTSO_LIBS=''
    LIBTSO_MODSUFFIX=''
    LIBTSO_MODULE=''
    LIBXSO_LIBS=''
    LN='ln'
    LN_S=''
    LTLIBOBJS=''
    MAKEFILE_CC=''
    MAKEFILE_CCLINK=''
    MAKEFILE_CXX=''
    MAKEFILE_CXXLINK=''
    MAKEFILE_SOLINK=''
    MAKEFILE_XSOLINK=''
    MKDIR='mkdir'
    MODSUFFIX=''
    OBJEXT=''
    OSDIR=''
    PACKAGE_BUGREPORT='Oracle Technology Network Berkeley DB forum'
    PACKAGE_NAME='Berkeley DB'
    PACKAGE_STRING='Berkeley DB 4.5.20'
    PACKAGE_TARNAME='db-4.5.20'
    PACKAGE_VERSION='4.5.20'
    PATH_SEPARATOR=':'
    POSTLINK=''
    RANLIB='ranlib'
    REPLACEMENT_OBJS=''
    RM='rm'
    RPCGEN=''
    RPC_CLIENT_OBJS=''
    RPC_SERVER_H=''
    SHELL='/bin/bash'
    SOFLAGS=''
    SOSUFFIX=''
    STRIP='strip'
    SWIGCFLAGS=''
    TCL_BIN_DIR=''
    TCL_INCLUDE_SPEC=''
    TCL_LIB_FILE=''
    TCL_SRC_DIR=''
    TCL_TCLSH=''
    TEST_LIBS=''
    UINT64_FMT=''
    ACJNIJAVAC=''
    ac_ct_CC=''
    ac_ct_CXX=''
    ac_ct_F77=''
    bindir='${exec_prefix}/bin'
    build='i686-pc-linux-gnulibc1'
    build_alias=''
    build_cpu='i686'
    build_os='linux-gnulibc1'
    build_vendor='pc'
    cxx_have_stdheaders=''
    datadir='${datarootdir}'
    datarootdir='${prefix}/share'
    db_cv_path_sh='/bin/sh'
    db_int_def=''
    db_seq_decl=''
    db_threadid_t_decl=''
    docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    dvidir='${docdir}'
    exec_prefix='NONE'
    host='i686-pc-linux-gnulibc1'
    host_alias=''
    host_cpu='i686'
    host_os='linux-gnulibc1'
    host_vendor='pc'
    htmldir='${docdir}'
    includedir='${prefix}/include'
    infodir='${datarootdir}/info'
    int16_decl=''
    int32_decl=''
    int64_decl=''
    inttypes_h_decl=''
    libdir='${exec_prefix}/lib'
    libexecdir='${exec_prefix}/libexec'
    localedir='${datarootdir}/locale'
    localstatedir='${prefix}/var'
    mandir='${datarootdir}/man'
    o=''
    oldincludedir='/usr/include'
    pdfdir='${docdir}'
    pid_t_decl=''
    platform_footer=''
    platform_header=''
    prefix='/usr/local/dbxml-2.3.10/install'
    program_transform_name='s,x,x,'
    psdir='${docdir}'
    sbindir='${exec_prefix}/sbin'
    sharedstatedir='${prefix}/com'
    ssize_t_decl=''
    stddef_h_decl=''
    stdint_h_decl=''
    sysconfdir='${prefix}/etc'
    target_alias=''
    thread_h_decl=''
    u_char_decl=''
    u_int16_decl=''
    u_int32_decl=''
    u_int64_decl=''
    u_int8_decl=''
    u_int_decl=''
    u_long_decl=''
    u_short_decl=''
    uintmax_t_decl=''
    uintptr_t_decl=''
    unistd_h_decl=''
    uudecode=''
    ## confdefs.h. ##
    #define PACKAGE_NAME "Berkeley DB"
    #define PACKAGE_TARNAME "db-4.5.20"
    #define PACKAGE_VERSION "4.5.20"
    #define PACKAGE_STRING "Berkeley DB 4.5.20"
    #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
    configure: exit 77

    Hi,
    It looks to me like you do not have the required compiler installed on Ubuntu.
    When using gcc/g++, Berkeley DB XML requires at least a 3.x release of gcc.
    http://www.oracle.com/technology/documentation/berkeley-db/xml/ref_xml/xml_unix/intro.html
    Ron

  • Perl unit tests fail for dbxml-2.5.16

    Hi,
    I installed the berkeley db xml version 2.5.16 but while attempting to install perl, I came across the following errors when I run 'make test'
    PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/arch')" t/*.t
    t/btree.t .. 1/35 # Check simple env works with a hash.
    # cursors
    t/btree.t .. ok
    t/dbt.t .... ok
    t/txn.t .... # transaction - commit works
    t/txn.t .... 1/28 # transaction - abort works
    t/txn.t .... ok
    All tests successful.
    Files=3, Tests=73, 1 wallclock secs ( 0.03 usr 0.05 sys + 0.16 cusr 0.17 csys = 0.41 CPU)
    Result: PASS
    make[1]: Leaving directory `/home/emulo/Downloads/install/dbxml-2.5.16/dbxml/src/perl/Db'
    make[1]: Entering directory `/home/emulo/Downloads/install/dbxml-2.5.16/dbxml/src/perl/DbXml'
    PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/arch')" t/*.t
    t/XmlContainerConfig.t ..... 1/28 BDB XML: illegal flag combination specified to DB->open
    XmlException=SCALAR(0x85c0fb4)# Looks like you planned 28 tests but ran 25.
    # Looks like your test exited with 2 just after 25.
    t/XmlContainerConfig.t ..... Dubious, test returned 2 (wstat 512, 0x200)
    Failed 3/28 subtests
    t/XmlDocument.t ............ ok
    t/XmlEvent.t ............... ok
    t/XmlIndexLookup.t ......... ok
    t/XmlIndexSpecification.t .. ok
    t/XmlManager.t ............. 1/92 failed
    Error: The flags DB_READ_UNCOMMITTED and DB_TXN_NOT_DURABLE cannot be used directly, you must set these flags using XmlContainerConfig.setReadUncommitted and XmlContainerConfig.setTransactionNotDurable. in t/XmlManager.t, line 367
    # Looks like you planned 92 tests but ran 53.
    # Looks like your test exited with -1 just after 53.
    t/XmlManager.t ............. Dubious, test returned 255 (wstat 65280, 0xff00)
    Failed 39/92 subtests
    t/XmlQueryContext.t ........ ok
    t/XmlResults.t ............. ok
    t/XmlValue.t ............... ok
    Test Summary Report
    t/XmlContainerConfig.t (Wstat: 512 Tests: 25 Failed: 0)
    Non-zero exit status: 2
    Parse errors: Bad plan. You planned 28 tests but ran 25.
    t/XmlManager.t (Wstat: 65280 Tests: 53 Failed: 0)
    Non-zero exit status: 255
    Parse errors: Bad plan. You planned 92 tests but ran 53.
    Files=9, Tests=535, 5 wallclock secs ( 0.11 usr 0.15 sys + 1.04 cusr 1.51 csys = 2.81 CPU)
    Result: FAIL
    Failed 2/9 test programs. 0/535 subtests failed.
    Any idea what could be causing this?
    Edited by: 902499 on Jul 5, 2012 12:59 AM

    Hi Michael,
    Thanks for the patch! We'll take a look at that and try to improve the Perl installation in the next release.
    John

  • BDB XML2.3.10 install problem

    I'm trying to to install DBXML on windowsXP. I have download the BDBXML2.3.10.
    when I build all with Microsoft Visual C++ 6.0 ,the error as follows.
    Am I missing something in the server config??
    --------------------Configuration: xqilla - Win32 Debug--------------------
    Compiling...
    XPath2ResultImpl.cpp
    F:\Program Files\Oracle\Berkeley DB XML 2.3.10\xqilla\src\dom-api\impl\XPath2ResultImpl.cpp(287) : fatal error C1001: INTERNAL COMPILER ERROR
    (compiler file 'msc1.cpp', line 1786)
    Please choose the Technical Support command on the Visual C++
    Help menu, or open the Technical Support help file for more information
    PrintAST.cpp
    F:\Program Files\Oracle\Berkeley DB XML 2.3.10\xqilla\src\utils\PrintAST.cpp(132) : error C2371: 'it' : redefinition; different basic types
    F:\Program Files\Oracle\Berkeley DB XML 2.3.10\xqilla\src\utils\PrintAST.cpp(109) : see declaration of 'it'
    F:\Program Files\Oracle\Berkeley DB XML 2.3.10\xqilla\src\utils\PrintAST.cpp(133) : error C2446: '!=' : no conversion from 'class XQGlobalVariable const ' to 'class XQQuery const '
    Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    F:\Program Files\Oracle\Berkeley DB XML 2.3.10\xqilla\src\utils\PrintAST.cpp(133) : error C2230: '!=' : indirection to different types
    F:\Program Files\Oracle\Berkeley DB XML 2.3.10\xqilla\src\utils\PrintAST.cpp(134) : error C2664: 'printGlobal' : cannot convert parameter 1 from 'class XQQuery const ' to 'const class XQGlobalVariable '
    Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    Error executing cl.exe.
    All - 5 error(s), 0 warning(s)

    Thanks for your helf ,but I can't solve it.
    I compiled it with VS.net , and succed.
    And I make a application in VC6 with the file follow.
    #include <dbxml/DbXml.hpp>
    using namespace DbXml;
    int
    main(int argc, char **argv)
         // This program uses a named container, which will apear
         // on disk
         std::string containerName = "people.dbxml";
         std::string content = "<people><person><name>joe</name></person><person><name>mary</name></person></people>";
         std::string docName = "people";
         // Note that the query uses a variable, which must be set
         // in the query context
         std::string queryString =
              "collection('people.dbxml')/people/person[name=$name]";
         try {
              // All BDB XML programs require an XmlManager instance
              XmlManager mgr;
              // Because the container will exist on disk, remove it
              // first if it exists
              if (mgr.existsContainer(containerName))
                   mgr.removeContainer(containerName);
              // Now it is safe to create the container
              XmlContainer cont = mgr.createContainer(containerName);
              // All Container modification operations need XmlUpdateContext
              XmlUpdateContext uc = mgr.createUpdateContext();
              cont.putDocument(docName, content, uc);
              // Querying requires an XmlQueryContext
              XmlQueryContext qc = mgr.createQueryContext();
              // Add a variable to the query context, used by the query
              qc.setVariableValue("name", "mary");
              // Note: these two calls could be replaced by a shortcut
              // mgr.query(queryString, qc), but under the covers,
              // this is what is happening.
              XmlQueryExpression expr = mgr.prepare(queryString, qc);
              XmlResults res = expr.execute(qc);
              // Note use of XmlQueryExpression::getQuery() and
              // XmlResults::size()
              std::cout << "The query, '" << expr.getQuery() << "' returned " <<
              res.size() << " result(s)" << std::endl;
              // Process results -- just print them
              XmlValue value;
              std::cout << "Result: " << std::endl;
              while (res.next(value)) {
                   std::cout << "\t" << value.asString() << std::endl;
              // In C++, resources are released as objects go out
              // of scope.
         } catch (XmlException &xe) {
              std::cout << "XmlException: " << xe.what() << std::endl;
         return 0;
    I added .lib and .dll files to the application followed the introduction.
    compile is succeed.
    but when run to “XmlContainer cont = mgr.createContainer(containerName);”
    error as follow.
    Unhandled exception in query.exe(MSVCR71D.DLL):0xC0000005:Access voilation
    please help me!!!!!! Thanks!!!!!
    Message was edited by:
    user577888

  • Unable to create temporary backing file

    My program is throwing out the error:
    temporary open: /var/tmp/BDB20825: Too many open files
    unable to create temporary backing file
    This happens after my program has been running for about 4 hours. The program appears to run out of file descriptors. The listing of /proc/<PID>/fd shows hundreds of lines naming the same file (/var/tmp/BDB20825), like this:
    lrwx------ 1 zobell users 64 Jul 28 14:41 622 -> /var/tmp/BDB20825 (deleted)
    That file does not exist. I suspect that someone is deleting but failing to close the file. A few open file descriptors with this deleted file occur slowly in the early hours, but not at a fast enough rate to bring the program down when it does. It looks like there is a sudden flood at the end.
    The program repeats this error slowly, and is stuck inside the db code. Here is the gdb backtrace I am seeing every time I interrupt:
    (gdb) where
    #0 0x00e74410 in __kernel_vsyscall ()
    #1 0x003d51dd in ___newselect_nocancel () from /lib/libc.so.6
    #2 0x002e5d39 in __os_sleep () from /devel/tfm/external/RH4_32/dbxml/latest/install/lib/libdb-4.6.so
    #3 0x002e43f1 in __os_openhandle () from /devel/tfm/external/RH4_32/dbxml/latest/install/lib/libdb-4.6.so
    #4 0x002e52ad in __os_open () from /devel/tfm/external/RH4_32/dbxml/latest/install/lib/libdb-4.6.so
    #5 0x002c0357 in __db_tmp_open () from /devel/tfm/external/RH4_32/dbxml/latest/install/lib/libdb-4.6.so
    #6 0x002c006c in __db_appname () from /devel/tfm/external/RH4_32/dbxml/latest/install/lib/libdb-4.6.so
    #7 0x002d50c9 in __memp_bhwrite () from /devel/tfm/external/RH4_32/dbxml/latest/install/lib/libdb-4.6.so
    #8 0x002d4a27 in __memp_alloc () from /devel/tfm/external/RH4_32/dbxml/latest/install/lib/libdb-4.6.so
    #9 0x002d62ec in __memp_fget () from /devel/tfm/external/RH4_32/dbxml/latest/install/lib/libdb-4.6.so
    #10 0x00232003 in __bam_new_file () from /devel/tfm/external/RH4_32/dbxml/latest/install/lib/libdb-4.6.so
    #11 0x002abc79 in __db_new_file () from /devel/tfm/external/RH4_32/dbxml/latest/install/lib/libdb-4.6.so
    #12 0x002abaff in __db_open () from /devel/tfm/external/RH4_32/dbxml/latest/install/lib/libdb-4.6.so
    #13 0x002a5d15 in __db_open_pp () from /devel/tfm/external/RH4_32/dbxml/latest/install/lib/libdb-4.6.so
    #14 0x0080644c in Db::open () from /devel/tfm/external/RH4_32/dbxml/latest/install/lib/libdb_cxx-4.6.so
    #15 0x0053ebbe in DbXml::DbWrapper::open (this=0x405bbee0, txn=0x0, type=DB_BTREE, flags=65537, mode=0) at Transaction.hpp:62
    #16 0x00549247 in CacheDatabase (this=0x405bbed8, env=0x9c5a848, type=DB_BTREE, compare=0) at CacheDatabase.cpp:28
    #17 0x005497e2 in DocDatabase (this=0x405bbed8, env=0x9c5a848, compare=0) at CacheDatabase.cpp:46
    #18 0x00584ced in DbXml::Manager::createDocDatabase (this=0x9c5a830, compare=0) at Manager.cpp:694
    #19 0x00519467 in DbXml::CacheDatabaseMinderImpl::verify (this=0xfffffdfe, entry=@0x6ac2f790, cid=-514) at CacheDatabaseMinder.hpp:31
    #20 0x00519398 in DbXml::CacheDatabaseMinderImpl::findOrAllocate (this=0x6ac5b4f0, cid=1, allocate=true) at CacheDatabaseMinder.cpp:71
    #21 0x00518e59 in DbXml::CacheDatabaseMinder::findOrAllocate (this=0x6acd9fa0, mgr=@0x9c5a830, cid=1, allocate=true) at CacheDatabaseMinder.cpp:21
    #22 0x0055b12d in LazyDIResults (this=0x6acd9f98, context=0x6acd9fa0, contextItem=0x4979abc0, expr=@0x9ce5de8, txn=0x0, flags=0) at /devel/tfm/developers/szobell/berkeley-db-xml/dbxml-2.4.16/dbxml/include/dbxml/XmlManager.hpp:80
    #23 0x0052f9cd in DbXml::QueryExpression::execute (this=0x9ce5de8, txn=0x0, contextItem=0x4979abc0, context=@0xbfcb0e04, flags=0) at /devel/tfm/developers/szobell/berkeley-db-xml/dbxml-2.4.16/dbxml/include/dbxml/XmlQueryContext.hpp:86
    #24 0x00565a3a in DbXml::XmlQueryExpression::execute (this=0x0, contextItem=@0xfffffdfe, context=@0xbfcb0e04, flags=4294966782) at /devel/tfm/developers/szobell/berkeley-db-xml/dbxml-2.4.16/dbxml/include/dbxml/XmlValue.hpp:186
    #25 0x0805af4b in XmlRecordWithCounts::ExtractQueryString (this=0xbfcb0dd0, select=@0xbfcb0e2c, result=@0xbfcac1d0, qDocument=0xbfcb0e14) at src/XmlRecordWithCounts.cpp:401
    #26 0x080585f6 in OdRecord::GetRequiredContent (this=0xbfcb0dd0, name=@0xbfcac1e0, origin=@0xbfcac1d0, dest=@0xbfcac1c0, type=@0xbfcac1b0, dist=@0xbfcac198, totalCount=@0xbfcac194, route=@0xbfcac1a0, qDocument=0x0) at src/OdRecord.cpp:143
    #27 0x0804d9c3 in ProcessOd (fpPrivate=0x8e11098, odDb=@0xbfcb0dd0, fdDb=@0xbfcb0d20) at src/BuildFdDb.cpp:263
    #28 0x0804f4c8 in ProcessOneDest (fpPrivate=0x8e11098, odDb=@0xbfcb0dd0, fdDb=@0xbfcb0d20, dest={static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<No data fields>}, Mp = 0x9da758c "LAX"}, static Sempty_rep_storage = {0, 0, 69041, 0}}) at src/BuildFdDb.cpp:464
    #29 0x080501cd in main (argc=6, argv=0xbfcb10c4) at src/BuildFdDb.cpp:589
    At this time, the program is trying to extract fields out of an XmlDocument that is the result of a query. The program uses a pre-calculated XmlQueryExpression to extract a specific field. This may not be the best way to extract a field from a document, given the apparent overhead of needing a temporary file!
    My program queries two database files (OD.dbxml and FD.dbxml.new), and uses the information to add records to the second file. The databases are rather big:
    bash-3.2$ ls -l /tmp/*dbxml*
    -rw-rw---- 1 zobell users 5233745920 Jul 28 14:42 /tmp/FD.dbxml.new
    -rw-rw---- 1 zobell users 6539427840 Jul 13 10:16 /tmp/OD.dbxml
    (I keep them in /tmp because everywhere else uses NFS and performance is awful with NFS.)
    My environment:
    Red Hat Enterprise Linux Client release 5.3 (Tikanga) 32 bit.
    Berkeley DB XML 2.4.16, C++ interface.
    Disk space should not be an issue:
    bash-3.2$ df /tmp /var
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/mapper/VolGroup00-tmp
    28948572 13044384 14409968 48% /tmp
    /dev/mapper/VolGroup00-root
    144742920 5333544 131938272 4% /
    I ran this program about a year ago and did not see this issue. I have made a few changes and linked to the newer version of the XML database since then. Any help is appreciated.

    I have more information about this problem.
    If I "disable" the routine __os_zerofill() in os_fzero.c, by having it always return (0), I no longer get an exception and my application appears to run smoothly. However, I have not determined what in this routine leads to the exception. And, I have no idea what the short and long term consequences of "disabling" this routine will be....
    -Coralie

  • XmlDocument.setContentAsXmlInputStream() cause  EXCEPTION_ACCESS_VIOLATION

    Product: Berkeley DBXML 2.3.10
    API: java
    OS: Windows XP
    Hi, I'm new to bdbxml am have a simple test pgm where I'm looping through a directory of xml docs and putting them into a container. Everything works ok using XmlContainer.put(String, XmlInputStream, XmlUpdateContext). Then I wanted to test adding some metadata so I switched to using XmlContainer.put(XmlDocument, XmlUpdateContext). After successfully inserting 3 documents on the 4th iteration the VM crashes executing XmlDocument.setContentAsXmlInputStream(XmlInputStream);
    Below is my test code along with the error / dump. The sample doesn't add any meta data, stripped that all out thinking it might have something to do with the error but no luck.
    <pre>
    import com.sleepycat.dbxml.XmlManager;
    import com.sleepycat.dbxml.XmlContainer;
    import com.sleepycat.dbxml.XmlManagerConfig;
    import com.sleepycat.dbxml.XmlContainerConfig;
    import com.sleepycat.dbxml.XmlUpdateContext;
    import com.sleepycat.dbxml.XmlInputStream;
    import com.sleepycat.dbxml.XmlDocument;
    import com.sleepycat.db.EnvironmentConfig;
    import com.sleepycat.db.Environment;
    import java.io.File;
    public class LoadWithMetadataTest {
    public static void main(String[] args) {
    if (args.length != 3) {
    System.out.println("syntax: CreateContainer [db-env-home-dir] [container-name] [xml-doc-dir]");
    System.exit(1);
    File envHome = new File(args[0]);
    String containerName = args[1];
    File xmlDocDir = new File(args[2]);
    XmlManager xmlMgr = null;
    XmlContainer xmlCntr = null;
    XmlUpdateContext xmlUpdtCtx = null;
    try {
    XmlManager.setLogLevel(XmlManager.LEVEL_ALL, true);
    XmlManager.setLogCategory(XmlManager.CATEGORY_ALL, true);
    EnvironmentConfig eCfg = new EnvironmentConfig();
    eCfg.setErrorStream(System.err);
    eCfg.setAllowCreate(true);
    eCfg.setInitializeLocking(true);
    eCfg.setInitializeLogging(true);
    eCfg.setInitializeCache(true);
    eCfg.setTransactional(true);
    eCfg.setRunRecovery(true);
    Environment env = new Environment(envHome, eCfg);
    XmlManagerConfig xmlMgrCfg = new XmlManagerConfig();
    xmlMgrCfg.setAdoptEnvironment(true);
    xmlMgr = new XmlManager(env, xmlMgrCfg);
    XmlContainerConfig xmlCntrCfg = new XmlContainerConfig();
    xmlCntrCfg.setAllowValidation(false);
    xmlCntrCfg.setNodeContainer(true);
    xmlCntrCfg.setIndexNodes(true);
    xmlCntr = xmlMgr.createContainer(containerName, xmlCntrCfg);
    xmlUpdtCtx = xmlMgr.createUpdateContext();
    String uri = "http://pvs/metadata";
    File[] files = xmlDocDir.listFiles();
    int i = 0;
    // -- Loop and load container via with xml docs via XmlDocument. Code
    // below will successfully insert 3 docs then VM will crash.
    for (File f: files) {
    XmlInputStream stream =
    xmlMgr.createLocalFileInputStream(f.getAbsolutePath());
    XmlDocument xmlDoc = xmlMgr.createDocument();
    xmlDoc.setContentAsXmlInputStream(stream);
    xmlDoc.setName("key-" + i++);
    xmlCntr.putDocument(xmlDoc, xmlUpdtCtx);
    System.out.println("Document loaded, " + i);
    stream.delete();
    xmlDoc.delete();
    // -- NOTE: This method of loading the container works!
    // for (File f: files) {
    // XmlInputStream stream =
    // xmlMgr.createLocalFileInputStream(f.getAbsolutePath());
    // xmlCntr.putDocument("key-" + i++, stream, xmlUpdtCtx);
    // System.out.println("Document loaded # " + i);
    } catch (Exception ex) {
    ex.printStackTrace();
    } finally {
    if (xmlUpdtCtx != null) xmlUpdtCtx.delete();
    if (xmlCntr != null) xmlCntr.delete();
    if (xmlMgr != null) xmlMgr.delete();
    </pre>
    And the Error is:
    <pre>
    Document loaded, 1
    Document loaded, 2
    Document loaded, 3
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d7cbac7, pid=1984, tid=680
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b01 mixed mode, sharing)
    # Problematic frame:
    # V [jvm.dll+0x9bac7]
    --------------- T H R E A D ---------------
    Current thread (0x000378d0): JavaThread "main" [_thread_in_vm, id=680]
    siginfo: ExceptionCode=0xc0000005, writing address 0x00006500
    Registers:
    EAX=0x28020378, EBX=0x28096b70, ECX=0x0000deab, EDX=0x00006500
    ESP=0x0007f5e0, EBP=0x0007f658, ESI=0x00006500, EDI=0x00037990
    EIP=0x6d7cbac7, EFLAGS=0x00010206
    Top of Stack: (sp=0x0007f5e0)
    0x0007f5e0: 000378d0 6d7c1200 00006500 000378d0
    0x0007f5f0: 00000006 00037990 0366c3b4 0322117d
    0x0007f600: 00037990 00006500 000378d0 28096b70
    0x0007f610: 032248a4 00037990 0007f674 00a6a800
    0x0007f620: 00ad832f 00037990 0007f660 0007f674
    0x0007f630: 0366c3a8 00000000 00000000 0007f63c
    0x0007f640: 00000000 0007f674 280998a8 00000000
    0x0007f650: 28096b70 0007f668 0007f694 00ad29e3
    Instructions: (pc=0x6d7cbac7)
    0x6d7cbab7: 56 e8 a0 f7 00 00 59 85 f6 74 07 a1 30 af 8a 6d
    0x6d7cbac7: 89 06 5e c3 56 8b 74 24 08 68 30 af 8a 6d 8b ce
    Stack: [0x00040000,0x00080000), sp=0x0007f5e0, free space=253k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [jvm.dll+0x9bac7]
    j com.sleepycat.dbxml.XmlInputStream.swigReleaseOwnership()V+11
    j com.sleepycat.dbxml.XmlDocument.setContentAsXmlInputStream(Lcom/sleepycat/dbxml/XmlInputStream;)V+12
    j LoadWithMetadataTest.main([Ljava/lang/String;)V+256
    v ~StubRoutines::call_stub
    V [jvm.dll+0x86e84]
    V [jvm.dll+0xddead]
    V [jvm.dll+0x86d55]
    V [jvm.dll+0xf1f59]
    V [jvm.dll+0xa4d04]
    C [java.dll+0x6d11]
    j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
    j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
    j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111
    j com.intellij.rt.execution.application.AppMain.main([Ljava/lang/String;)V+120
    v ~StubRoutines::call_stub
    V [jvm.dll+0x86e84]
    V [jvm.dll+0xddead]
    V [jvm.dll+0x86d55]
    V [jvm.dll+0x8dda7]
    C [java.exe+0x14c5]
    C [java.exe+0x69cd]
    C [kernel32.dll+0x16fd7]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j com.sleepycat.dbxml.dbxml_javaJNI.XmlInputStream_change_ownership(Lcom/sleepycat/dbxml/XmlInputStream;JZ)V+0
    j com.sleepycat.dbxml.XmlInputStream.swigReleaseOwnership()V+11
    j com.sleepycat.dbxml.XmlDocument.setContentAsXmlInputStream(Lcom/sleepycat/dbxml/XmlInputStream;)V+12
    j LoadWithMetadataTest.main([Ljava/lang/String;)V+256
    v ~StubRoutines::call_stub
    j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
    j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
    j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
    j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111
    j com.intellij.rt.execution.application.AppMain.main([Ljava/lang/String;)V+120
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x00acfab0 JavaThread "Monitor Ctrl-Break" daemon [_thread_in_native, id=1764]
    0x00a72708 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3504]
    0x00a71380 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2904]
    0x00a70668 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2716]
    0x00a6b568 JavaThread "Finalizer" daemon [_thread_blocked, id=4056]
    0x00a6ab30 JavaThread "Reference Handler" daemon [_thread_blocked, id=1964]
    =>0x000378d0 JavaThread "main" [_thread_in_vm, id=680]
    Other Threads:
    0x00a687d8 VMThread [id=2492]
    0x00a73a88 WatcherThread [id=3172]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 2 (cores per cpu 2, threads per core 1) family 6 model 15 stepping 6, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 2095468k(1224784k free), swap 4194303k(4194303k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_09-b01) for windows-x86, built on Sep 7 2006 13:59:31 by "java_re" with MS VC++ 6.0
    </pre>
    Thanks,
    Danny

    Hi George,
    Thanks for the solution. I'm running into an issue trying to build.
    Some background information
    1. Downloaded Berkeley DB XML 2.3.10.tar.gz from Oracle
    2. Environment cygwin on windows
    3. Using gcc and g++ (from cygwin distro)
    4. Using make (from cygwin distro)
    5. Command sh buildall.sh --enable-java
    Ran across the following compile error:
    In file included from nodeStore/NsDocument.hpp:14,
    from Indexer.cpp:24:
    nodeStore/NsFormat.hpp: In static member function `static int DbXml::NsFormat::unmarshalMAPMToTemporary(const xmlbyte_t*, M
    APMstruct&, Numeric::State*)':
    nodeStore/NsFormat.hpp:448: error: call of overloaded `unmarshalInt(const xmlbyte_t*&, int*)' is ambiguous
    More details below:
    ==============
    make[1]: Entering directory `/cygdrive/c/temp/install/dbxml-2.3.10/dbxml/src/dbxml'
    g++ -c -I/cygdrive/c/temp/install/dbxml-2.3.10/dbxml/build_unix -I/cygdrive/c/temp/install/dbxml-2.3.10/dbxml/build_unix/.
    ./dist/../include -I/cygdrive/c/temp/install/dbxml-2.3.10/dbxml/build_unix/../dist/../src/dbxml -I/cygdrive/c/temp/install/
    dbxml-2.3.10/dbxml/build_unix/../dist/../src/common -I/cygdrive/c/temp/install/dbxml-2.3.10/install/include -I/cygdrive/c/t
    ools/Java/jdk1.5.0_09/include -g -O2 Buffer.cpp -DPIC -o /cygdrive/c/temp/install/dbxml-2.3.10/dbxml/build_unix/.libs/Buff
    er.o
    g++ -c -I/cygdrive/c/temp/install/dbxml-2.3.10/dbxml/build_unix -I/cygdrive/c/temp/install/dbxml-2.3.10/dbxml/build_unix/.
    ./dist/../include -I/cygdrive/c/temp/install/dbxml-2.3.10/dbxml/build_unix/../dist/../src/dbxml -I/cygdrive/c/temp/install/
    dbxml-2.3.10/dbxml/build_unix/../dist/../src/common -I/cygdrive/c/temp/install/dbxml-2.3.10/install/include -I/cygdrive/c/t
    ools/Java/jdk1.5.0_09/include -g -O2 Buffer.cpp -o /cygdrive/c/temp/install/dbxml-2.3.10/dbxml/build_unix/Buffer.o >/dev/nu
    ll 2>&1
    g++ -c -I/cygdrive/c/temp/install/dbxml-2.3.10/dbxml/build_unix -I/cygdrive/c/temp/install/dbxml-2.3.10/dbxml/build_unix/.
    ./dist/../include -I/cygdrive/c/temp/install/dbxml-2.3.10/dbxml/build_unix/../dist/../src/dbxml -I/cygdrive/c/temp/install/
    dbxml-2.3.10/dbxml/build_unix/../dist/../src/common -I/cygdrive/c/temp/install/dbxml-2.3.10/install/include -I/cygdrive/c/t
    ools/Java/jdk1.5.0_09/include -g -O2 Indexer.cpp -DPIC -o /cygdrive/c/temp/install/dbxml-2.3.10/dbxml/build_unix/.libs/Ind
    exer.o
    In file included from nodeStore/NsDocument.hpp:14,
    from Indexer.cpp:24:
    nodeStore/NsFormat.hpp: In static member function `static int DbXml::NsFormat::unmarshalMAPMToTemporary(const xmlbyte_t*, M
    APMstruct&, Numeric::State*)':
    nodeStore/NsFormat.hpp:448: error: call of overloaded `unmarshalInt(const xmlbyte_t*&, int*)' is ambiguous
    nodeStore/NsFormat.hpp:271: note: candidates are: static int DbXml::NsFormat::unmarshalInt(const xmlbyte_t*, u_int32_t*) <n
    ear match>
    nodeStore/NsFormat.hpp:98: note: static int DbXml::NsFormat::unmarshalInt(const xmlbyte_t*, int32_t*) <near match>
    nodeStore/NsFormat.hpp:449: error: call of overloaded `unmarshalInt(const xmlbyte_t*&, int*)' is ambiguous
    nodeStore/NsFormat.hpp:271: note: candidates are: static int DbXml::NsFormat::unmarshalInt(const xmlbyte_t*, u_int32_t*) <n
    ear match>
    nodeStore/NsFormat.hpp:98: note: static int DbXml::NsFormat::unmarshalInt(const xmlbyte_t*, int32_t*) <near match>
    make[1]: *** [cygdrive/c/temp/install/dbxml-2.3.10/dbxml/build_unix/Indexer.lo] Error 1
    make[1]: Leaving directory `/cygdrive/c/temp/install/dbxml-2.3.10/dbxml/src/dbxml'
    make: *** [dbxml_subdir] Error 2
    Thanks,
    Danny

  • Strange error under ce

    vs2008, wm6.5, bdb5.2.36
    test code:
    DB_ENV* env = NULL;
    DB* dbp = NULL;
    int ret = db_create(&dbp, env, 0);
    ret = dbp->open(dbp, NULL, "test.bdb", NULL, DB_HASH, DB_CREATE | DB_TRUNCATE, 0);
    the last ret is assigned to 22, reporting "DB->put: method not permitted before handle's open method", but there is no put at all;
    under debugger,step into the last line, it directly jump to __db_put_pp. I've also stepped into db_create, but the handle seems be all initialized with correct function address.

    Hi,
    The sort of error you are seeing is usually due to one of two issues:
    1) You are building based on the wrong version of db.h. You should check your project properties to ensure that the correct version of db.h is being included.
    2) You are linking to the wrong version of the Berkeley DB dll at runtime. Can you check to see if there are multiple versions of Berkeley DB installed on the WM device?
    One further question:
    Can you run the wce_tpcb sample application included in the Berkeley DB solution file on your emulator?
    Regards,
    Alex Gorrod
    Oracle Berkeley DB

  • Building BDBXML Then PHP

    I am trying to build the BDBXML with PHP and i become some errors when running the PHP-Examples in the browser.
    Please can any one help?

    Here are some more specific informations about my problem:
    My system is an Xeon machine running Ubuntu 6.06 LTS. I installed dbxml-2.3.8 using the buildall.sh script. In the php-subdirectory I ran phpize and then
    ./configure \
    --with-dbxml=$HOME/DB_HOME/dbxml-2.3.8/dbxml/install \
    --with-berkeleydb=$HOME/DB_HOME/dbxml-2.3.8/dbxml/install
    make
    make install
    Then I did the same in the directory $HOME/DB_HOME/dbxml-2.3.8/db-4.5.20/php_db4 (with the configure option --with-db4, of course).
    After I restarted Apache, I could succesfully call the example script 03.php, that were shipped with dbxml. But if I call, e.g., 04.php, then I get the following error:
    Warning: unlink(test.dbxml) [function.unlink]: No such file or directory in /srv/www/vhosts/nicot-http/php/bdbxml/04.php on line 14
    Warning: xmlcontainer::addindex() [function.addindex]: St9bad_alloc in /srv/www/vhosts/nicot-http/php/bdbxml/04.php on line 17
    Warning: xmlmanager::query() [function.query]: St9bad_alloc in /srv/www/vhosts/nicot-http/php/bdbxml/04.php on line 20
    Fatal error: Call to a member function reset() on a non-object in /srv/www/vhosts/nicot-http/php/bdbxml/04.php on line 22
    I'd appreciate any hint how I can succesfully install the PHP binding of dbxml.

  • Compiling dbxml with berkeley 5.1.19

    I'm trying to compile dbxml using 5.1.19 source. E.g.:
    +sh buildall.sh with-berkeleydb=/home/mariano/Code/srcs/db-5.1.19 prefix=/home/mariano/Code/compiled/dbxml/+
    however I'm getting the following error:
    Start DB XML build: Tue Dec 14 00:13:58 ART 2010
    Configuring DB XML
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    +checking if --enable-debug option specified... no+
    +checking if --enable-test option specified... no+
    +checking if --with-berkeleydb=DIR option specified... /home/mariano/Code/compiled/dbxml+
    +checking if --with-dbbuild=DIR option specified... ../..//home/mariano/Code/srcs/db-5.1.19+
    checking for Berkeley DB version from install tree... 4.8
    +5.1+
    configure: error: /home/mariano/Code/compiled/dbxml is version 4.8
    +5.1, which is not a supported version of Berkeley DB. The version must be at least 4.3+
    First error is obvious: it seems dbxml cannot be compiled with somethin newer than 4.8. Is this right?
    The second error is in the following line:
    +checking if --with-berkeleydb=DIR option specified... /home/mariano/Code/compiled/dbxml+
    it tells me the berkeleydb option is set to */home/mariano/Code/compiled/dbxml* when I specified with-berkeleydb=/home/mariano/Code/srcs/db-5.1.19.
    Can someone offer a tip on the problem?
    TIA

    Hi,
    A generated configure script for DB XML 2.5.16 checks only for versions of BDB starting from 4.3 to 4.8, hence the misleading error message.
    if test "$db_version" != "4.3" && test "$db_version" != "4.4" && test "$db_version" != "4.5" && test "$db_version" != "4.6" && test "$db_version" != "4.7" && test "$db_version" != "4.8"; then
                    { { echo "$as_me:$LINENO: error: $with_berkeleydb is version $db_version, which is not a supported version of Berkeley DB. The version must be at least 4.3" >&5
    echo "$as_me: error: $with_berkeleydb is version $db_version, which is not a supported version of Berkeley DB. The version must be at least 4.3" >&2;}
       { (exit 1); exit 1; }; }
    fiI'm not sure whether I understood your second problem, but you can try to fix the first one by using BDB 4.8 or even actually omit the --with-berkeleydb parameter and then the distributed with DB XML version of BDB will be used, and then see whether the second problem is eliminated.
    Any reasons that you opt to use BDB 5.1?
    Vyacheslav

  • Berkeley DB XML Error: ../src/dbxml/nodeStore/NsEventReader.cpp Line: 829,

    Hi,
    berkeley xml db version: dbxml-2.5.16
    I currently have a job (in java) which creates a container and inserts anywhere between 1,000 - 25,000 documents while the container is open and then closes container.
    I have 5-15 separate processes that kick off an instance this job and each job inserts documents into separate containers(ie pid1 - container A, pid2 - container B, pid3 - container C etc).
    The problem occurs randomly to any process with any one of the below errors:
    1) com.sleepycat.dbxml.XmlException: Error: No such file or directory, errcode = DATABASE_ERROR
    2) com.sleepycat.dbxml.XmlException: Error: Permission denied File: ../src/dbxml/nodeStore/NsEventReader.cpp Line: 829, errcode = DATABASE_ERROR
    The odd thing about receiving the above errors is that when the processes are kicked off again, it goes through fine.
    a snippet of the environment configuration:
    BerkeleyErrorHandler berkeleyerrorhandler = new BerkeleyErrorHandler();
    EnvironmentConfig      environmentConfig = new EnvironmentConfig();
                                            environmentConfig.setErrorHandler(berkeleyerrorhandler);
                                            environmentConfig.setAllowCreate(true);
                                            environmentConfig.setInitializeCache(true);
                                            environmentConfig.setInitializeLocking(true);
                                            environmentConfig.setCacheSize(255 * 1024 * 1024);
                                            environmentConfig.setThreaded(true);
    Insertion of document:
    String xmlDocument
    xmlContainer.putDocument(docName, xmlDocument);
    Java heap size: -Xmx2g
    Ram: 256G
    O.S.: SunOS 5.10

    Hello,
    The, "Build signature doesn't match environment" error indicates
    that you are using an environment created by a different different
    version of BDB than the one you installed. Is there an older
    environment in /var/www/html/modules/lib that something is
    picking up? Or do you have a PATH pointing to another one?
    Thank you,
    Sandra

  • How to use Berkeley DB in an application without installing

    I'm using Berkeley DB in a python project, and I am wondering if I can make the libraries available to python without specifically installing berkeley DB.
    How can you embed Berkeley DB in an application generally?
    Has anyone done this with python and bsddb3?
    Thank you
    Sachi.

    The python BDB libraries are maintained independently of Oracle.  You will probably have more success asking this question on the BDB python mailing list at https://mailman.jcea.es/listinfo/pybsddb
    Lauren Foutz

  • Berkeley DB XML crash with multiple readers (dbxml-2.5.16 and db-4.8.26)

    I am using Berkeley DB XML (v. 2.5.16 and the bundled underlying Berkeley DB 4.8.26, which I suppose is now fairly old) to manage an XML database which is read by a large number (order 100) of independent worker processes communicating via MPI. These processes only read from the database; a single master process performs writes.
    Everything works as expected with one or two worker processes. But with three or more, I am experiencing database panics with the error
    pthread lock failed: Invalid argument
    PANIC: Invalid argument
    From searching with Google I can see that issues arising from incorrectly setting up the environment to support concurrency are are fairly common. But I have not been able to find a match for this problem, and as far as I can make out from the documentation I am using the correct combination of flags; I use DB_REGISTER and DB_RECOVER to handle the fact that multiple processes join the environment independently. Each process uses on a single environment handle, and joins using
    DB_ENV* env;
    db_env_create(&env, 0);
    u_int32_t env_flags = DB_INIT_LOG | DB_INIT_MPOOL | DB_REGISTER | DB_RECOVER | DB_INIT_TXN | DB_CREATE;
    env->open(env, path to environment, env_flags, 0);
    Although the environment requests DB_INIT_TXN, I am not currently using transactions. There is an intention to implement this later, but my understanding was that concurrent reads would function correctly without the full transaction infrastructure.
    All workers seem to join the environment correctly, but then fail when an attempt is made to read from the database. They will all try to access the same XML document in the same container (because it gives them instructions about what work to perform). However, the worker processes open each container setting the read-only flag:
    DbXml::XmlContainerConfig models_config;
    models_config.setReadOnly(true);
    DbXml::XmlContainer models = this->mgr->openContainer(path to container, models_config);
    Following the database panic, the stack trace is
    [lcd-ds283:27730] [ 0] 2   libsystem_platform.dylib            0x00007fff8eed35aa _sigtramp + 26
    [lcd-ds283:27730] [ 1] 3   ???                                 0x0000000000000000 0x0 + 0
    [lcd-ds283:27730] [ 2] 4   libsystem_c.dylib                   0x00007fff87890bba abort + 125
    [lcd-ds283:27730] [ 3] 5   libc++abi.dylib                     0x00007fff83aff141 __cxa_bad_cast + 0
    [lcd-ds283:27730] [ 4] 6   libc++abi.dylib                     0x00007fff83b24aa4 _ZL25default_terminate_handlerv + 240
    [lcd-ds283:27730] [ 5] 7   libobjc.A.dylib                     0x00007fff89ac0322 _ZL15_objc_terminatev + 124
    [lcd-ds283:27730] [ 6] 8   libc++abi.dylib                     0x00007fff83b223e1 _ZSt11__terminatePFvvE + 8
    [lcd-ds283:27730] [ 7] 9   libc++abi.dylib                     0x00007fff83b21e6b _ZN10__cxxabiv1L22exception_cleanup_funcE19_Unwind_Reason_CodeP17_Unwind_Exception + 0
    [lcd-ds283:27730] [ 8] 10  libdbxml-2.5.dylib                  0x000000010f30e4de _ZN5DbXml18DictionaryDatabaseC2EP8__db_envPNS_11TransactionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS_15ContainerConfigEb + 1038
    [lcd-ds283:27730] [ 9] 11  libdbxml-2.5.dylib                  0x000000010f2f348c _ZN5DbXml9Container12openInternalEPNS_11TransactionERKNS_15ContainerConfigEb + 1068
    [lcd-ds283:27730] [10] 12  libdbxml-2.5.dylib                  0x000000010f2f2dec _ZN5DbXml9ContainerC2ERNS_7ManagerERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEPNS_11TransactionERKNS_15ContainerConfigEb + 492
    [lcd-ds283:27730] [11] 13  libdbxml-2.5.dylib                  0x000000010f32a0af _ZN5DbXml7Manager14ContainerStore13findContainerERS0_RKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEPNS_11TransactionERKNS_15ContainerConfigEb + 175
    [lcd-ds283:27730] [12] 14  libdbxml-2.5.dylib                  0x000000010f329f75 _ZN5DbXml7Manager13openContainerERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPNS_11TransactionERKNS_15ContainerConfigEb + 101
    [lcd-ds283:27730] [13] 15  libdbxml-2.5.dylib                  0x000000010f34cd46 _ZN5DbXml10XmlManager13openContainerERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS_18XmlContainerConfigE + 102
    Can I ask if it's clear to anyone what I am doing wrong?

    Is it possible that the root problem to this is in the MPI code or usage?  Because if the writer process crashes while holding an active transaction or open database handles, it could leave the environment in an inconsistent state that would result in the readers throwing a PANIC error when they notice the inconsistent environment.
    Thanks for looking into this.
    It looks like there was a small typo in the code I quoted, and I think it was this which caused the segmentation fault or memory corruption. Although I checked a few times that the code snippet produced expected results before posting it, I must have been unlucky that it just happened not to cause a segfault on those attempts.
    This is a corrected version:
    #include <iostream>
    #include <vector>
    #include "dbxml/db.h"
    #include "dbxml/dbxml/DbXml.hpp"
    #include "boost/mpi.hpp"
    static std::string envname = std::string("test");
    static std::string pkgname = std::string("packages.dbxml");
    static std::string intname = std::string("integrations.dbxml");
    int main(int argc, char *argv[])
        boost::mpi::environment  mpi_env;
        boost::mpi::communicator mpi_world;
        if(mpi_world.rank() == 0)
            std::cerr << "-- Writer creating environment" << std::endl;
            DB_ENV *env;
            int dberr = ::db_env_create(&env, 0);
            std::cerr << "**   creation response = " << dberr << std::endl;
            if(dberr > 0) std::cerr << "**   " << ::db_strerror(dberr) << std::endl;
            std::cerr << "-- Writer opening environment" << std::endl;
            u_int32_t env_flags = DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_REGISTER | DB_RECOVER | DB_INIT_TXN | DB_CREATE;
            dberr = env->open(env, envname.c_str(), env_flags, 0);
            std::cerr << "**   opening response = " << dberr << std::endl;
            if(dberr > 0) std::cerr << "**   " << ::db_strerror(dberr) << std::endl;
            // set up XmlManager object
            DbXml::XmlManager *mgr = new DbXml::XmlManager(env, DbXml::DBXML_ADOPT_DBENV | DbXml::DBXML_ALLOW_EXTERNAL_ACCESS);
            // create containers - these will be used by the workers
            DbXml::XmlContainerConfig pkg_config;
            DbXml::XmlContainerConfig int_config;
            pkg_config.setTransactional(true);
            int_config.setTransactional(true);
            std::cerr << "-- Writer creating containers" << std::endl;
            DbXml::XmlContainer packages       = mgr->createContainer(pkgname.c_str(), pkg_config);
            DbXml::XmlContainer integrations   = mgr->createContainer(intname.c_str(), int_config);
            std::cerr << "-- Writer instructing workers" << std::endl;
            std::vector<boost::mpi::request> reqs(mpi_world.size() - 1);
            for(unsigned int                 i = 1; i < mpi_world.size(); i++)
                reqs[i - 1] = mpi_world.isend(i, 0); // instruct workers to open the environment
            // wait for all messages to be received
            boost::mpi::wait_all(reqs.begin(), reqs.end());
            std::cerr << "-- Writer waiting for termination responses" << std::endl;
            // wait for workers to advise successful termination
            unsigned int outstanding_workers = mpi_world.size() - 1;
            while(outstanding_workers > 0)
                boost::mpi::status stat = mpi_world.probe();
                switch(stat.tag())
                    case 1:
                        mpi_world.recv(stat.source(), 1);
                        outstanding_workers--;
                        break;
            delete mgr; // exit, closing database and environment
        else
            mpi_world.recv(0, 0);
            std::cerr << "++ Reader " << mpi_world.rank() << " beginning work" << std::endl;
            DB_ENV *env;
            ::db_env_create(&env, 0);
            u_int32_t env_flags = DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_REGISTER | DB_RECOVER | DB_INIT_TXN | DB_CREATE;
            env->open(env, envname.c_str(), env_flags, 0);
            // set up XmlManager object
            DbXml::XmlManager *mgr = new DbXml::XmlManager(env, DbXml::DBXML_ADOPT_DBENV | DbXml::DBXML_ALLOW_EXTERNAL_ACCESS);
            // open containers which were set up by the master
            DbXml::XmlContainerConfig pkg_config;
            DbXml::XmlContainerConfig int_config;
            pkg_config.setTransactional(true);
            pkg_config.setReadOnly(true);
            int_config.setTransactional(true);
            int_config.setReadOnly(true);
            DbXml::XmlContainer packages     = mgr->openContainer(pkgname.c_str(), pkg_config);
            DbXml::XmlContainer integrations = mgr->openContainer(intname.c_str(), int_config);
            mpi_world.isend(0, 1);
            delete mgr; // exit, closing database and environment
        return (EXIT_SUCCESS);
    This repeatably causes the crash on OS X Mavericks 10.9.1. Also, I have checked that it repeatably causes the crash on a virtualized OS X Mountain Lion 10.8.5. But I do not see any crashes on a virtualized Ubuntu 13.10. My full code likewise works as expected with a large number of readers under the virtualized Ubuntu. I am compiling with clang and libc++ on OS X, and gcc 4.8.1 and libstdc++ on Ubuntu, but using openmpi in both cases. Edit: I have also compiled with clang and libc++ on Ubuntu, and it works equally well.
    Because the virtualized OS X experiences the crash, I hope the fact that it works on Ubuntu is not just an artefact of virtualization. (Unfortunately I don't currently have a physical Linux machine with which to check.) In that case the implication would seem to be that it's an OS X-specific problem. 2nd edit (14 Feb 2014): I have now managed to test on a physical Linux cluster, and it appears to work as expected. Therefore it does appear to be an OS X-specific issue.
    In either OS X 10.8 or 10.9, the crash produces this result:
    -- Writer creating environment
    **   creation response = 0
    -- Writer opening environment
    **   opening response = 0
    -- Writer creating containers
    ++ Reader 7 beginning work
    -- Writer instructing workers
    -- Writer waiting for termination responses
    ++ Reader 1 beginning work
    ++ Reader 2 beginning work
    ++ Reader 3 beginning work
    ++ Reader 4 beginning work
    ++ Reader 5 beginning work
    ++ Reader 6 beginning work
    pthread lock failed: Invalid argument
    PANIC: Invalid argument
    PANIC: fatal region error detected; run recovery
    PANIC: fatal region error detected; run recovery
    PANIC: fatal region error detected; run recovery
    PANIC: fatal region error detected; run recovery
    PANIC: fatal region error detected; run recovery
    PANIC: fatal region error detected; run recovery
    PANIC: fatal region error detected; run recovery
    libc++abi.dylib: terminate called throwing an exception
    [mountainlion-test-rig:00319] *** Process received signal ***
    [mountainlion-test-rig:00319] Signal: Abort trap: 6 (6)
    [mountainlion-test-rig:00319] Signal code:  (0)
    David
    Message was edited by: ds283

  • How to install and use DBXML package in Ubuntu Server 8.04 64bit

    Hi all.
    I used to install and use DBXML in Ubuntu Desktop 8.04 32bit. Now I want to use on Ubuntu Server 8.04 64bit.
    This is code for my installation (I use DBXML 2.2.13)
    env CFLAGS="-O0" sh buildall.sh enable-java with-xerces="xerces-c-src" with-berkeleydb-prefix="/usr/local/BerkeleyDB.4.3" with-xerces-prefix="/usr/local" with-pathan-prefix="/usr/local" with-xquery-prefix="/usr/local/BerkeleyDB.XQuery.1.2" --with-dbxml-prefix="/usr/local/BerkeleyDBXML.2.2"
    After installing, I could open Container, get Document, but when print the result (by "print" command), it failed. (stdin:3: print failed, Error: nsUnmarshalNode overlap File: Nsutil.cpp Line: 2358). Of course, all above commands run successfully with Ubuntu Desktop 8.04 32bit.
    Can you tell me which differences between 2 OS version and how to fix it
    Thanks

    Hello,
    Make sure that you are building a 64-bit version for the 64-bit platform. It's possible that you have mismatched some libraries. Be sure to add "-b 64" to buildall.sh. When you are done run the "file" command on all of the libraries in <path-to-install>/lib to see if they have been built 64-bit.
    That error looks like a 32- vs 64-bit issue of some sort.
    Regards,
    George

  • Berkeley DB - dbxml command line - how to delete multiple documents

    Hello
    is there a way to delete/remove multiple documents through dbxml command line?
    I'm trying to delete old documents, that was created before Oct 1st
    my query returns 717k documents in the result-set, is there a way to delete all of them at once ?
    thanks in advance
    - Y

    Hi,
    Please post this question in the Berkeley DB XML forum [url http://forums.oracle.com/forums/forum.jspa?forumID=274] here
    Regards,
    Alex Gorrod
    Oracle Berkeley DB

  • How to install GCC 3.3 and Berkeley DB ?

    Hi to all
    I am doing a project written in C. It involves the use of BerkeleyDB database too.
    Tthe problem is that the project compiles successfully on GCC 3.3 but on GCC 4.3 its gives error due to strict checking.
    Kindly tell me how can I install GCC 3.3 on archlinux.
    Also how can I install Berkeley DB (including development package) on archlinux with all the header files and configure it.
    thanks to all of you
    regards
    visio159

    Thanks guys I am loving Archlinux, the speed and control is amazing.
    I installed GCC 3.3 and db.h was already in /usr/include/db.h
    but when I compiled the code (MAIN.c) it gave these errors in db.h ??? I don't know what to do now, db.h itself is reflecting errors..huh.
    As you can see the starting lines are directing towards db.h as having errors
    [noface@myhost PROJ]$ gcc-3.3 MAIN.c -ldb
    gcc-3.3: ldb: No such file or directory
    In file included from MAIN.c:3:
    /usr/include/db.h:1201: error: syntax error before "u_int"
    /usr/include/db.h:1206: error: syntax error before '}' token
    /usr/include/db.h:1544: error: syntax error before "u_int"
    /usr/include/db.h:1660: error: `close' redeclared as different kind of symbol
    /usr/include/unistd.h:320: error: previous declaration of `close'
    /usr/include/db.h:1702: error: `remove' redeclared as different kind of symbol
    /usr/include/stdio.h:155: error: previous declaration of `remove'
    /usr/include/db.h:1703: error: `rename' redeclared as different kind of symbol
    /usr/include/stdio.h:157: error: previous declaration of `rename'
    /usr/include/db.h:1740: error: `stat' redeclared as different kind of symbol
    /usr/include/sys/stat.h:210: error: previous declaration of `stat'
    /usr/include/db.h:1742: error: `sync' redeclared as different kind of symbol
    /usr/include/unistd.h:933: error: previous declaration of `sync'
    /usr/include/db.h:1743: error: `truncate' redeclared as different kind of symbol
    /usr/include/unistd.h:949: error: previous declaration of `truncate'
    /usr/include/db.h:1809: error: syntax error before '}' token
    /usr/include/db.h:1916: error: syntax error before "u_int"
    /usr/include/db.h:1923: error: conflicting types for `close'
    /usr/include/db.h:1660: error: previous declaration of `close'
    /usr/include/db.h:1925: error: conflicting types for `del'
    /usr/include/db.h:1664: error: previous declaration of `del'
    /usr/include/db.h:1926: error: `dup' redeclared as different kind of symbol
    /usr/include/unistd.h:490: error: previous declaration of `dup'
    /usr/include/db.h:1927: error: conflicting types for `get'
    /usr/include/db.h:1669: error: previous declaration of `get'
    /usr/include/db.h:1928: error: conflicting types for `get_priority'
    /usr/include/db.h:1687: error: previous declaration of `get_priority'
    /usr/include/db.h:1929: error: conflicting types for `pget'
    /usr/include/db.h:1700: error: previous declaration of `pget'
    /usr/include/db.h:1930: error: conflicting types for `put'
    /usr/include/db.h:1701: error: previous declaration of `put'
    /usr/include/db.h:1931: error: conflicting types for `set_priority'
    /usr/include/db.h:1734: error: previous declaration of `set_priority'
    /usr/include/db.h:1975: error: syntax error before '}' token
    /usr/include/db.h:2126: error: syntax error before "u_int"
    /usr/include/db.h:2145: error: syntax error before "mp_ncache"
    /usr/include/db.h:2211: error: syntax error before "cl_id"
    /usr/include/db.h:2267: error: syntax error before '*' token
    /usr/include/db.h:2282: error: conflicting types for `close'
    /usr/include/db.h:1923: error: previous declaration of `close'
    /usr/include/db.h:2287: error: conflicting types for `err'
    /usr/include/db.h:1665: error: previous declaration of `err'
    /usr/include/db.h:2288: error: conflicting types for `errx'
    /usr/include/db.h:1666: error: previous declaration of `errx'
    /usr/include/db.h:2291: error: conflicting types for `get_cachesize'
    /usr/include/db.h:1672: error: previous declaration of `get_cachesize'
    /usr/include/db.h:2294: error: conflicting types for `get_encrypt_flags'
    /usr/include/db.h:1674: error: previous declaration of `get_encrypt_flags'
    /usr/include/db.h:2295: error: conflicting types for `get_errfile'
    /usr/include/db.h:1676: error: previous declaration of `get_errfile'
    /usr/include/db.h:2296: error: conflicting types for `get_errpfx'
    /usr/include/db.h:1677: error: previous declaration of `get_errpfx'
    /usr/include/db.h:2297: error: conflicting types for `get_flags'
    /usr/include/db.h:1678: error: previous declaration of `get_flags'
    /usr/include/db.h:2312: error: conflicting types for `get_msgfile'
    /usr/include/db.h:1683: error: previous declaration of `get_msgfile'
    /usr/include/db.h:2313: error: conflicting types for `get_open_flags'
    /usr/include/db.h:1685: error: previous declaration of `get_open_flags'
    /usr/include/db.h:2364: error: conflicting types for `open'
    /usr/include/db.h:1698: error: previous declaration of `open'
    /usr/include/db.h:2365: error: conflicting types for `remove'
    /usr/include/db.h:1702: error: previous declaration of `remove'
    /usr/include/db.h:2387: error: syntax error before "u_int"
    /usr/include/db.h:2391: error: syntax error before "u_int"
    /usr/include/db.h:2393: error: syntax error before "u_int"
    /usr/include/db.h:2398: error: conflicting types for `set_alloc'
    /usr/include/db.h:1705: error: previous declaration of `set_alloc'
    /usr/include/db.h:2402: error: conflicting types for `set_cachesize'
    /usr/include/db.h:1713: error: previous declaration of `set_cachesize'
    /usr/include/db.h:2405: error: conflicting types for `set_encrypt'
    /usr/include/db.h:1716: error: previous declaration of `set_encrypt'
    /usr/include/db.h:2406: error: conflicting types for `set_errcall'
    /usr/include/db.h:1717: error: previous declaration of `set_errcall'
    /usr/include/db.h:2408: error: conflicting types for `set_errfile'
    /usr/include/db.h:1719: error: previous declaration of `set_errfile'
    /usr/include/db.h:2409: error: conflicting types for `set_errpfx'
    /usr/include/db.h:1720: error: previous declaration of `set_errpfx'
    /usr/include/db.h:2412: error: conflicting types for `set_feedback'
    /usr/include/db.h:1721: error: previous declaration of `set_feedback'
    /usr/include/db.h:2413: error: conflicting types for `set_flags'
    /usr/include/db.h:1722: error: previous declaration of `set_flags'
    /usr/include/db.h:2431: error: conflicting types for `set_msgcall'
    /usr/include/db.h:1730: error: previous declaration of `set_msgcall'
    /usr/include/db.h:2432: error: conflicting types for `set_msgfile'
    /usr/include/db.h:1731: error: previous declaration of `set_msgfile'
    /usr/include/db.h:2433: error: conflicting types for `set_paniccall'
    /usr/include/db.h:1733: error: previous declaration of `set_paniccall'
    /usr/include/db.h:2448: error: conflicting types for `stat_print'
    /usr/include/db.h:1741: error: previous declaration of `stat_print'
    /usr/include/db.h:2510: error: syntax error before '}' token
    /usr/include/db.h:2632: error: syntax error before "u_long"
    In file included from MAIN.c:6:
    /usr/include/fcntl.h:85: error: `open' redeclared as different kind of symbol
    /usr/include/db.h:2364: error: previous declaration of `open'
    In file included from /media/evt/PROJ/PROJ/include/makeTreeDB.h:2,
    from MAIN.c:19:
    /media/evt/PROJ/PROJ/include/berkeleyDB.h: In function `removeDB':
    /media/evt/PROJ/PROJ/include/berkeleyDB.h:36: warning: passing arg 1 of pointer to function makes pointer from integer without a cast
    /media/evt/PROJ/PROJ/include/berkeleyDB.h:36: error: too few arguments to function
    /media/evt/PROJ/PROJ/include/berkeleyDB.h:37: warning: passing arg 1 of pointer to function from incompatible pointer type
    /media/evt/PROJ/PROJ/include/berkeleyDB.h:37: error: too few arguments to function
    /media/evt/PROJ/PROJ/include/berkeleyDB.h: In function `addNodeToBerkeleyDB':
    /media/evt/PROJ/PROJ/include/berkeleyDB.h:64: error: dereferencing pointer to incomplete type
    /media/evt/PROJ/PROJ/include/berkeleyDB.h:84: error: dereferencing pointer to incomplete type
    /media/evt/PROJ/PROJ/include/berkeleyDB.h:96: error: dereferencing pointer to incomplete type
    In file included from MAIN.c:21:
    /media/evt/PROJ/PROJ/include/scanProc.h: In function `scanProc':
    /media/evt/PROJ/PROJ/include/scanProc.h:92: warning: passing arg 1 of pointer to function from incompatible pointer type
    /media/evt/PROJ/PROJ/include/scanProc.h:92: warning: passing arg 2 of pointer to function from incompatible pointer type
    /media/evt/PROJ/PROJ/include/scanProc.h:92: error: too few arguments to function
    /media/evt/PROJ/PROJ/include/scanProc.h: In function `showSummary':
    /media/evt/PROJ/PROJ/include/scanProc.h:235: warning: passing arg 1 of pointer to function from incompatible pointer type
    /media/evt/PROJ/PROJ/include/scanProc.h:235: warning: passing arg 2 of pointer to function from incompatible pointer type
    /media/evt/PROJ/PROJ/include/scanProc.h:235: error: too few arguments to function
    In file included from MAIN.c:22:
    /media/evt/PROJ/PROJ/include/bigProcessing.h: In function `bigProcessing':
    /media/evt/PROJ/PROJ/include/bigProcessing.h:58: error: dereferencing pointer to incomplete type
    /media/evt/PROJ/PROJ/include/bigProcessing.h:95: error: dereferencing pointer to incomplete type
    /media/evt/PROJ/PROJ/include/bigProcessing.h: In function `scanFS_DB':
    /media/evt/PROJ/PROJ/include/bigProcessing.h:158: error: dereferencing pointer to incomplete type
    /media/evt/PROJ/PROJ/include/bigProcessing.h:178: error: dereferencing pointer to incomplete type
    /media/evt/PROJ/PROJ/include/bigProcessing.h:206: error: dereferencing pointer to incomplete type
    /media/evt/PROJ/PROJ/include/bigProcessing.h:211: error: dereferencing pointer to incomplete type
    /media/evt/PROJ/PROJ/include/bigProcessing.h:219: error: dereferencing pointer to incomplete type
    /media/evt/PROJ/PROJ/include/bigProcessing.h:224: error: dereferencing pointer to incomplete type

Maybe you are looking for