1 2 3 Previous Next 31 Replies Latest reply: Jan 12, 2012 6:51 AM by 737935 Go to original post RSS
      • 15. Re: unable to allocate memory for mutex; resize mutex region
        560979
        Hi Rucong,

        1. In my archive db-4.8.26 ( not db-4.8.24 ).

        2. On next step I am got error.
        root@kubuntu:/usr/local/dbxml-2.5.16/db-4.8.26/php_db4# ./configure --with-db4=$PWD/../../install
        checking for grep that handles long lines and -e... /bin/grep
        checking for egrep... /bin/grep -E
        checking for a sed that does not truncate output... /bin/sed
        checking for cc... cc
        checking whether the C compiler works... yes
        checking for C compiler default output file name... a.out
        checking for suffix of executables...
        checking whether we are cross compiling... no
        checking for suffix of object files... o
        checking whether we are using the GNU C compiler... yes
        checking whether cc accepts -g... yes
        checking for cc option to accept ISO C89... none needed
        checking how to run the C preprocessor... cc -E
        checking for icc... no
        checking for suncc... no
        checking whether cc understands -c and -o together... yes
        checking for system library directory... lib
        checking if compiler supports -R... no
        checking if compiler supports -Wl,-rpath,... yes
        checking build system type... x86_64-unknown-linux-gnu
        checking host system type... x86_64-unknown-linux-gnu
        checking target system type... x86_64-unknown-linux-gnu
        checking for PHP prefix... /usr
        checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
        checking for PHP extension directory... /usr/lib/php5/20090626
        checking for PHP installed headers prefix... /usr/include/php5
        checking if debug is enabled... no
        checking if zts is enabled... no
        checking for re2c... no
        configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
        checking for gawk... no
        checking for nawk... nawk
        checking if nawk is broken... no
        checking whether to enable db4 support... yes, shared
        checking whether to link against mod_db4... yes, shared
        checking if we really need to link against mod_db4... no
        checking for g++... g++
        checking whether we are using the GNU C++ compiler... yes
        checking whether g++ accepts -g... yes
        checking how to run the C++ preprocessor... g++ -E
        configure: WARNING: *** A note about pthreads ***
          The db4 c++ library by default tries to link against libpthread on some
          systems (notably Linux).  If your PHP install is not linked against
          libpthread, you will need to disable pthread support in db4.  This can
          be done by compiling db4 with the flag  --with-mutex=x86/gcc-assembly.
          PHP can itself be forced to link against libpthread either by manually editing
          its build files (which some distributions do), or by building it with
          --with-experimental-zts.
        checking for a sed that does not truncate output... (cached) /bin/sed
        checking for fgrep... /bin/grep -F
        checking for ld used by cc... /usr/bin/ld
        checking if the linker (/usr/bin/ld) is GNU ld... yes
        checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
        checking the name lister (/usr/bin/nm -B) interface... BSD nm
        checking whether ln -s works... yes
        checking the maximum length of command line arguments... 1572864
        checking whether the shell understands some XSI constructs... yes
        checking whether the shell understands "+="... yes
        checking for /usr/bin/ld option to reload object files... -r
        checking for objdump... objdump
        checking how to recognize dependent libraries... pass_all
        checking for ar... ar
        checking for strip... strip
        checking for ranlib... ranlib
        checking command to parse /usr/bin/nm -B output from cc object... ok
        checking for ANSI C header files... yes
        checking for sys/types.h... yes
        checking for sys/stat.h... yes
        checking for stdlib.h... yes
        checking for string.h... yes
        checking for memory.h... yes
        checking for strings.h... yes
        checking for inttypes.h... yes
        checking for stdint.h... yes
        checking for unistd.h... yes
        checking for dlfcn.h... yes
        checking whether we are using the GNU C++ compiler... (cached) yes
        checking whether g++ accepts -g... (cached) yes
        checking how to run the C++ preprocessor... g++ -E
        checking for objdir... .libs
        checking if cc supports -fno-rtti -fno-exceptions... no
        checking for cc option to produce PIC... -fPIC -DPIC
        checking if cc PIC flag -fPIC -DPIC works... yes
        checking if cc static flag -static works... yes
        checking if cc supports -c -o file.o... yes
        checking if cc supports -c -o file.o... (cached) yes
        checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
        checking whether -lc should be explicitly linked in... no
        checking dynamic linker characteristics... GNU/Linux ld.so
        checking how to hardcode library paths into programs... immediate
        checking whether stripping libraries is possible... yes
        checking if libtool supports shared libraries... yes
        checking whether to build shared libraries... yes
        checking whether to build static libraries... no
        checking for ld used by g++... /usr/bin/ld -m elf_x86_64
        checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
        checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
        checking for g++ option to produce PIC... -fPIC -DPIC
        checking if g++ PIC flag -fPIC -DPIC works... yes
        checking if g++ static flag -static works... yes
        checking if g++ supports -c -o file.o... yes
        checking if g++ supports -c -o file.o... (cached) yes
        checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
        checking dynamic linker characteristics... GNU/Linux ld.so
        checking how to hardcode library paths into programs... immediate
        configure: creating ./config.status
        config.status: creating config.h
        config.status: executing libtool commands
        root@kubuntu:/usr/local/dbxml-2.5.16/db-4.8.26/php_db4# make
        /bin/bash /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/libtool --mode=compile g++  -I. -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4 -DPHP_ATOM_INC -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4/include -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4/main -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4/../../install/include  -DHAVE_CONFIG_H  -g -O2   -c /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp -o db4.lo
        libtool: compile:  g++ -I. -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4 -DPHP_ATOM_INC -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4/include -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4/main -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4/../../install/include -DHAVE_CONFIG_H -g -O2 -c /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp  -fPIC -DPIC -o .libs/db4.o
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:193: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:342: error: ‘second_arg_force_ref’ was not declared in this scope
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:342: error: ‘second_arg_force_ref’ was not declared in this scope
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:351: error: too many initializers for ‘zend_function_entry’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘int zm_startup_db4(int, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:406: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:407: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:408: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:409: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:414: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘DB_ENV* php_db4_getDbEnvFromObj(zval*)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:671: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘php_DB_ENV* php_db4_getPhpDbEnvFromObj(zval*)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:684: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘php_DB* getPhpDbFromObj(zval*)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:719: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘DB* php_db4_getDbFromObj(zval*)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:730: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘DB_TXN* php_db4_getDbTxnFromObj(zval*)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:788: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘php_DB_TXN* getPhpDbTxnFromObj(zval*)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:801: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘DBC* php_db4_getDbcFromObj(zval*)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:880: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘php_DBC* getPhpDbcFromObj(zval*)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:893: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_txn_commit(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:969: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_txn_set_timeout(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1026: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_txn_set_name(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1047: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_new_db4(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1103: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_open(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1143: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_del(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1198: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_get(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1227: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_pget(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1261: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_set_encrypt(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1328: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_stat(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1361: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_join(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1474: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_put(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1514: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_truncate(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1562: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_cursor(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1590: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_dbc_close(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1623: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_dbc_count(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1642: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_dbc_del(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1659: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_dbc_dup(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1679: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_dbc_get(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1704: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_dbc_pget(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1740: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_dbc_put(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1780: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_new_DbEnv(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1821: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_env_close(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1849: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_env_dbremove(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1872: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_env_dbrename(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1901: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_env_open(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1932: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_env_remove(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1957: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_env_set_data_dir(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1975: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_env_set_encrypt(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1995: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_env_txn_begin(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:2033: warning: deprecated conversion from string constant to ‘char*’
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_env_txn_checkpoint(int, zval*, zval**, zval*, int)’:
        /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:2066: warning: deprecated conversion from string constant to ‘char*’
        make: *** [db4.lo] Error 1
        In last time I am use patch like this Re: Berkeley DB XML and PHP 5.3 (item 1.). Apply his now?

        --
        Thx, Vitaliy
        • 16. Re: unable to allocate memory for mutex; resize mutex region
          655560
          Hi Vitaliy,

          Yes. Since your environment is also PHP 5.3 and you run into the same issue, the patch of Re: Berkeley DB XML and PHP 5.3 (see the last post of that forum thread) should solves the problem.

          Please apply the patch, rebuild and let me know if there are other problems.

          Best regards,
          Rucong
          Oracle Berkeley DB XML
          • 17. Re: unable to allocate memory for mutex; resize mutex region
            560979
            Hi, Rucong.

            db4:
            root@kubuntu:/usr/local/dbxml-2.5.16/db-4.8.26/php_db4# ./configure --with-db4=$PWD/../../install
            checking for grep that handles long lines and -e... /bin/grep
            checking for egrep... /bin/grep -E
            checking for a sed that does not truncate output... /bin/sed
            checking for cc... cc
            checking whether the C compiler works... yes
            checking for C compiler default output file name... a.out
            checking for suffix of executables...
            checking whether we are cross compiling... no
            checking for suffix of object files... o
            checking whether we are using the GNU C compiler... yes
            checking whether cc accepts -g... yes
            checking for cc option to accept ISO C89... none needed
            checking how to run the C preprocessor... cc -E
            checking for icc... no
            checking for suncc... no
            checking whether cc understands -c and -o together... yes
            checking for system library directory... lib
            checking if compiler supports -R... no
            checking if compiler supports -Wl,-rpath,... yes
            checking build system type... x86_64-unknown-linux-gnu
            checking host system type... x86_64-unknown-linux-gnu
            checking target system type... x86_64-unknown-linux-gnu
            checking for PHP prefix... /usr
            checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
            checking for PHP extension directory... /usr/lib/php5/20090626
            checking for PHP installed headers prefix... /usr/include/php5
            checking if debug is enabled... no
            checking if zts is enabled... no
            checking for re2c... no
            configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
            checking for gawk... no
            checking for nawk... nawk
            checking if nawk is broken... no
            checking whether to enable db4 support... yes, shared
            checking whether to link against mod_db4... yes, shared
            checking if we really need to link against mod_db4... no
            checking for g++... g++
            checking whether we are using the GNU C++ compiler... yes
            checking whether g++ accepts -g... yes
            checking how to run the C++ preprocessor... g++ -E
            configure: WARNING: *** A note about pthreads ***
              The db4 c++ library by default tries to link against libpthread on some
              systems (notably Linux).  If your PHP install is not linked against
              libpthread, you will need to disable pthread support in db4.  This can
              be done by compiling db4 with the flag  --with-mutex=x86/gcc-assembly.
              PHP can itself be forced to link against libpthread either by manually editing
              its build files (which some distributions do), or by building it with
              --with-experimental-zts.
            checking for a sed that does not truncate output... (cached) /bin/sed
            checking for fgrep... /bin/grep -F
            checking for ld used by cc... /usr/bin/ld
            checking if the linker (/usr/bin/ld) is GNU ld... yes
            checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
            checking the name lister (/usr/bin/nm -B) interface... BSD nm
            checking whether ln -s works... yes
            checking the maximum length of command line arguments... 1572864
            checking whether the shell understands some XSI constructs... yes
            checking whether the shell understands "+="... yes
            checking for /usr/bin/ld option to reload object files... -r
            checking for objdump... objdump
            checking how to recognize dependent libraries... pass_all
            checking for ar... ar
            checking for strip... strip
            checking for ranlib... ranlib
            checking command to parse /usr/bin/nm -B output from cc object... ok
            checking for ANSI C header files... yes
            checking for sys/types.h... yes
            checking for sys/stat.h... yes
            checking for stdlib.h... yes
            checking for string.h... yes
            checking for memory.h... yes
            checking for strings.h... yes
            checking for inttypes.h... yes
            checking for stdint.h... yes
            checking for unistd.h... yes
            checking for dlfcn.h... yes
            checking whether we are using the GNU C++ compiler... (cached) yes
            checking whether g++ accepts -g... (cached) yes
            checking how to run the C++ preprocessor... g++ -E
            checking for objdir... .libs
            checking if cc supports -fno-rtti -fno-exceptions... no
            checking for cc option to produce PIC... -fPIC -DPIC
            checking if cc PIC flag -fPIC -DPIC works... yes
            checking if cc static flag -static works... yes
            checking if cc supports -c -o file.o... yes
            checking if cc supports -c -o file.o... (cached) yes
            checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
            checking whether -lc should be explicitly linked in... no
            checking dynamic linker characteristics... GNU/Linux ld.so
            checking how to hardcode library paths into programs... immediate
            checking whether stripping libraries is possible... yes
            checking if libtool supports shared libraries... yes
            checking whether to build shared libraries... yes
            checking whether to build static libraries... no
            checking for ld used by g++... /usr/bin/ld -m elf_x86_64
            checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
            checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
            checking for g++ option to produce PIC... -fPIC -DPIC
            checking if g++ PIC flag -fPIC -DPIC works... yes
            checking if g++ static flag -static works... yes
            checking if g++ supports -c -o file.o... yes
            checking if g++ supports -c -o file.o... (cached) yes
            checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
            checking dynamic linker characteristics... GNU/Linux ld.so
            checking how to hardcode library paths into programs... immediate
            configure: creating ./config.status
            config.status: creating config.h
            config.status: config.h is unchanged
            config.status: executing libtool commands
            root@kubuntu:/usr/local/dbxml-2.5.16/db-4.8.26/php_db4# make
            /bin/bash /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/libtool --mode=compile g++  -I. -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4 -DPHP_ATOM_INC -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4/include -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4/main -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4/../../install/include  -DHAVE_CONFIG_H  -g -O2   -c /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp -o db4.lo
            libtool: compile:  g++ -I. -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4 -DPHP_ATOM_INC -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4/include -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4/main -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4/../../install/include -DHAVE_CONFIG_H -g -O2 -c /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp  -fPIC -DPIC -o .libs/db4.o
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:193: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘int zm_startup_db4(int, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:408: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:409: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:410: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:411: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:416: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘DB_ENV* php_db4_getDbEnvFromObj(zval*)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:673: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘php_DB_ENV* php_db4_getPhpDbEnvFromObj(zval*)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:686: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘php_DB* getPhpDbFromObj(zval*)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:721: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘DB* php_db4_getDbFromObj(zval*)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:732: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘DB_TXN* php_db4_getDbTxnFromObj(zval*)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:790: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘php_DB_TXN* getPhpDbTxnFromObj(zval*)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:803: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘DBC* php_db4_getDbcFromObj(zval*)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:882: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘php_DBC* getPhpDbcFromObj(zval*)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:895: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_txn_commit(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:971: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_txn_set_timeout(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1028: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_txn_set_name(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1049: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_new_db4(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1105: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_open(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1145: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_del(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1200: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_get(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1229: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_pget(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1263: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_set_encrypt(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1330: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_stat(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1363: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_join(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1476: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_put(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1516: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_truncate(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1564: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_cursor(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1592: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_dbc_close(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1625: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_dbc_count(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1644: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_dbc_del(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1661: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_dbc_dup(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1681: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_dbc_get(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1706: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_dbc_pget(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1742: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_dbc_put(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1782: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_new_DbEnv(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1823: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_env_close(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1851: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_env_dbremove(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1874: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_env_dbrename(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1903: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_env_open(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1934: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_env_remove(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1959: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_env_set_data_dir(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1977: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_env_set_encrypt(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1997: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_env_txn_begin(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:2035: warning: deprecated conversion from string constant to ‘char*’
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function ‘void _wrap_db_env_txn_checkpoint(int, zval*, zval**, zval*, int)’:
            /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:2068: warning: deprecated conversion from string constant to ‘char*’
            /bin/bash /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/libtool --mode=link cc -DPHP_ATOM_INC -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4/include -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4/main -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4/../../install/include  -DHAVE_CONFIG_H  -g -O2   -o db4.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/modules  db4.lo -Wl,-rpath,/usr/local/dbxml-2.5.16/db-4.8.26/php_db4/../../install/lib -L/usr/local/dbxml-2.5.16/db-4.8.26/php_db4/../../install/lib -ldb_cxx -ldb_cxx -lstdc++
            libtool: link: cc -shared  .libs/db4.o   -L/usr/local/dbxml-2.5.16/db-4.8.26/php_db4/../../install/lib -ldb_cxx -lstdc++  -Wl,-rpath -Wl,/usr/local/dbxml-2.5.16/db-4.8.26/php_db4/../../install/lib   -Wl,-soname -Wl,db4.so -o .libs/db4.so
            libtool: link: ( cd ".libs" && rm -f "db4.la" && ln -s "../db4.la" "db4.la" )
            /bin/bash /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/libtool --mode=install cp ./db4.la /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/modules
            libtool: install: cp ./.libs/db4.so /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/modules/db4.so
            libtool: install: cp ./.libs/db4.lai /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/modules/db4.la
            libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/sbin" ldconfig -n /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/modules
            ----------------------------------------------------------------------
            Libraries have been installed in:
               /usr/local/dbxml-2.5.16/db-4.8.26/php_db4/modules
            
            If you ever happen to want to link against installed libraries
            in a given directory, LIBDIR, you must either use libtool, and
            specify the full pathname of the library, or use the `-LLIBDIR'
            flag during linking and do at least one of the following:
               - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
                 during execution
               - add LIBDIR to the `LD_RUN_PATH' environment variable
                 during linking
               - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
               - have your system administrator add LIBDIR to `/etc/ld.so.conf'
            
            See any operating system documentation about shared libraries for
            more information, such as the ld(1) and ld.so(8) manual pages.
            ----------------------------------------------------------------------
            
            Build complete.
            Don't forget to run 'make test'.
            DBXML next error:
            root@kubuntu:/usr/local/dbxml-2.5.16/dbxml/src/php# make
            /bin/bash /usr/local/dbxml-2.5.16/dbxml/src/php/libtool --mode=compile g++  -I. -I/usr/local/dbxml-2.5.16/dbxml/src/php -DPHP_ATOM_INC -I/usr/local/dbxml-2.5.16/dbxml/src/php/include -I/usr/local/dbxml-2.5.16/dbxml/src/php/main -I/usr/local/dbxml-2.5.16/dbxml/src/php -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/include -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4 -I/usr/local/dbxml-2.5.16/dbxml/src/php/../../../install/include  -DHAVE_CONFIG_H  -g -O2   -c /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml.cpp -o php_dbxml.lo
            libtool: compile:  g++ -I. -I/usr/local/dbxml-2.5.16/dbxml/src/php -DPHP_ATOM_INC -I/usr/local/dbxml-2.5.16/dbxml/src/php/include -I/usr/local/dbxml-2.5.16/dbxml/src/php/main -I/usr/local/dbxml-2.5.16/dbxml/src/php -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/include -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4 -I/usr/local/dbxml-2.5.16/dbxml/src/php/../../../install/include -DHAVE_CONFIG_H -g -O2 -c /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml.cpp  -fPIC -DPIC -o .libs/php_dbxml.o
            In file included from /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml.cpp:10:
            /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_int.hpp:24: fatal error: ext/db4/php_db4.h: No such file or directory
            compilation terminated.
            make: *** [php_dbxml.lo] Error 1
            --
            Vitaliy

            Edited by: Vitaliy Katochka on Dec 23, 2010 4:18 PM
            • 18. Re: unable to allocate memory for mutex; resize mutex region
              655560
              Hi Vitaliy,

              The building of DB PHP completed. The building issue of DBXML PHP should be caused by:
              1) You should execute "make install" for DB PHP. Otherwise DBXML can not find the installed files. That's why php_db4.h can not be found.
              2) Please remember to configure DBXML PHP before building:
              cd ../../dbxml/src/php/ 
              phpize
              ./configure --with-dbxml=$PWD/../../../install
              make
              sudo make install
              Best regards,
              Rucong
              Oracle Berkeley DB XML
              • 19. Re: unable to allocate memory for mutex; resize mutex region
                560979
                Rucong

                Sorry, was in a hurry.

                Result of make. Execute all you steps, but same error.
                ...
                libtool: compile:  g++ -I. -I/usr/local/dbxml-2.5.16/dbxml/src/php -DPHP_ATOM_INC -I/usr/local/dbxml-2.5.16/dbxml/src/php/include -I/usr/local/dbxml-2.5.16/dbxml/src/php/main -I/usr/local/dbxml-2.5.16/dbxml/src/php -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/include -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4 -I/usr/local/dbxml-2.5.16/dbxml/src/php/../../../install/include -DHAVE_CONFIG_H -g -O2 -c /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp  -fPIC -DPIC -o .libs/php_dbxml_indexspecification.o
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp: In function ‘void zim_XmlIndexSpecification_XmlIndexSpecification(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:38: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp: In function ‘void zim_XmlIndexSpecification_addIndex(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:50: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:52: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:57: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp: In function ‘void zim_XmlIndexSpecification_deleteIndex(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:69: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:71: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:76: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp: In function ‘void zim_XmlIndexSpecification_replaceIndex(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:88: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:90: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:95: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp: In function ‘void zim_XmlIndexSpecification_addDefaultIndex(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:107: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:109: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:114: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp: In function ‘void zim_XmlIndexSpecification_deleteDefaultIndex(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:126: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:128: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:133: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp: In function ‘void zim_XmlIndexSpecification_replaceDefaultIndex(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:145: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:147: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:152: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp: In function ‘void zim_XmlIndexSpecification_find(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:164: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:173: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp: In function ‘void zim_XmlIndexSpecification_getDefaultIndex(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:189: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp: In function ‘void zim_XmlIndexSpecification_getIndexes(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:213: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp: In function ‘void zim_XmlIndexSpecification_getAutoIndexing(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:216: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp: In function ‘void zim_XmlIndexSpecification_setAutoIndexing(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:224: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexspecification.cpp:228: warning: format not a string literal and no format arguments
                /bin/bash /usr/local/dbxml-2.5.16/dbxml/src/php/libtool --mode=compile g++  -I. -I/usr/local/dbxml-2.5.16/dbxml/src/php -DPHP_ATOM_INC -I/usr/local/dbxml-2.5.16/dbxml/src/php/include -I/usr/local/dbxml-2.5.16/dbxml/src/php/main -I/usr/local/dbxml-2.5.16/dbxml/src/php -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/include -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4 -I/usr/local/dbxml-2.5.16/dbxml/src/php/../../../install/include  -DHAVE_CONFIG_H  -g -O2   -c /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_data.cpp -o php_dbxml_data.lo
                libtool: compile:  g++ -I. -I/usr/local/dbxml-2.5.16/dbxml/src/php -DPHP_ATOM_INC -I/usr/local/dbxml-2.5.16/dbxml/src/php/include -I/usr/local/dbxml-2.5.16/dbxml/src/php/main -I/usr/local/dbxml-2.5.16/dbxml/src/php -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/include -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4 -I/usr/local/dbxml-2.5.16/dbxml/src/php/../../../install/include -DHAVE_CONFIG_H -g -O2 -c /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_data.cpp  -fPIC -DPIC -o .libs/php_dbxml_data.o
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_data.cpp: In function ‘void zim_XmlData_XmlData(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_data.cpp:23: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_data.cpp:32: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_data.cpp: In function ‘void zim_XmlData_get_data(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_data.cpp:43: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_data.cpp: In function ‘void zim_XmlData_set_data(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_data.cpp:51: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_data.cpp:56: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_data.cpp: In function ‘void zim_XmlData_set(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_data.cpp:64: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_data.cpp:69: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_data.cpp: In function ‘void zim_XmlData_append(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_data.cpp:77: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_data.cpp:82: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_data.cpp: In function ‘void zim_XmlData_reserve(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_data.cpp:89: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_data.cpp:94: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_data.cpp: In function ‘void zim_XmlData_getReservedSize(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_data.cpp:105: warning: format not a string literal and no format arguments
                /bin/bash /usr/local/dbxml-2.5.16/dbxml/src/php/libtool --mode=compile g++  -I. -I/usr/local/dbxml-2.5.16/dbxml/src/php -DPHP_ATOM_INC -I/usr/local/dbxml-2.5.16/dbxml/src/php/include -I/usr/local/dbxml-2.5.16/dbxml/src/php/main -I/usr/local/dbxml-2.5.16/dbxml/src/php -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/include -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4 -I/usr/local/dbxml-2.5.16/dbxml/src/php/../../../install/include  -DHAVE_CONFIG_H  -g -O2   -c /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp -o php_dbxml_document.lo
                libtool: compile:  g++ -I. -I/usr/local/dbxml-2.5.16/dbxml/src/php -DPHP_ATOM_INC -I/usr/local/dbxml-2.5.16/dbxml/src/php/include -I/usr/local/dbxml-2.5.16/dbxml/src/php/main -I/usr/local/dbxml-2.5.16/dbxml/src/php -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/include -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4 -I/usr/local/dbxml-2.5.16/dbxml/src/php/../../../install/include -DHAVE_CONFIG_H -g -O2 -c /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp  -fPIC -DPIC -o .libs/php_dbxml_document.o
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp: In function ‘void zim_XmlDocument_XmlDocument(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp:20: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp: In function ‘void zim_XmlDocument_equals(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp:27: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp:33: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp: In function ‘void zim_XmlDocument_getContent(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp:40: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp: In function ‘void zim_XmlDocument_getContentAsString(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp:48: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp: In function ‘void zim_XmlDocument_getContentAsEventReader(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp:55: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp: In function ‘void zim_XmlDocument_getContentAsEventWriter(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp:61: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp:65: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp: In function ‘void zim_XmlDocument_setContent(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp:73: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp:76: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp:80: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp:84: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp:91: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp: In function ‘void zim_XmlDocument_fetchAllData(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp:101: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp: In function ‘void zim_XmlDocument_getMetaData(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp:110: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp:118: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp: In function ‘void zim_XmlDocument_setMetaData(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp:128: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp:133: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp: In function ‘void zim_XmlDocument_setName(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_document.cpp:135: warning: deprecated conversion from string constant to ‘char*’
                /bin/bash /usr/local/dbxml-2.5.16/dbxml/src/php/libtool --mode=compile g++  -I. -I/usr/local/dbxml-2.5.16/dbxml/src/php -DPHP_ATOM_INC -I/usr/local/dbxml-2.5.16/dbxml/src/php/include -I/usr/local/dbxml-2.5.16/dbxml/src/php/main -I/usr/local/dbxml-2.5.16/dbxml/src/php -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/include -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4 -I/usr/local/dbxml-2.5.16/dbxml/src/php/../../../install/include  -DHAVE_CONFIG_H  -g -O2   -c /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_statistics.cpp -o php_dbxml_statistics.lo
                libtool: compile:  g++ -I. -I/usr/local/dbxml-2.5.16/dbxml/src/php -DPHP_ATOM_INC -I/usr/local/dbxml-2.5.16/dbxml/src/php/include -I/usr/local/dbxml-2.5.16/dbxml/src/php/main -I/usr/local/dbxml-2.5.16/dbxml/src/php -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/include -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4 -I/usr/local/dbxml-2.5.16/dbxml/src/php/../../../install/include -DHAVE_CONFIG_H -g -O2 -c /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_statistics.cpp  -fPIC -DPIC -o .libs/php_dbxml_statistics.o
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_statistics.cpp: In function ‘void zim_XmlStatistics_getNumberOfIndexedKeys(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_statistics.cpp:35: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_statistics.cpp: In function ‘void zim_XmlStatistics_getNumberOfUniqueKeys(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_statistics.cpp:36: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_statistics.cpp: In function ‘void zim_XmlStatistics_getSumKeyValueSize(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_statistics.cpp:37: warning: format not a string literal and no format arguments
                /bin/bash /usr/local/dbxml-2.5.16/dbxml/src/php/libtool --mode=compile g++  -I. -I/usr/local/dbxml-2.5.16/dbxml/src/php -DPHP_ATOM_INC -I/usr/local/dbxml-2.5.16/dbxml/src/php/include -I/usr/local/dbxml-2.5.16/dbxml/src/php/main -I/usr/local/dbxml-2.5.16/dbxml/src/php -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/include -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4 -I/usr/local/dbxml-2.5.16/dbxml/src/php/../../../install/include  -DHAVE_CONFIG_H  -g -O2   -c /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp -o php_dbxml_indexlookup.lo
                libtool: compile:  g++ -I. -I/usr/local/dbxml-2.5.16/dbxml/src/php -DPHP_ATOM_INC -I/usr/local/dbxml-2.5.16/dbxml/src/php/include -I/usr/local/dbxml-2.5.16/dbxml/src/php/main -I/usr/local/dbxml-2.5.16/dbxml/src/php -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/include -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4 -I/usr/local/dbxml-2.5.16/dbxml/src/php/../../../install/include -DHAVE_CONFIG_H -g -O2 -c /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp  -fPIC -DPIC -o .libs/php_dbxml_indexlookup.o
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp: In function ‘void zim_XmlIndexLookup_XmlIndexLookup(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:22: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp: In function ‘void zim_XmlIndexLookup_getIndex(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:38: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp: In function ‘void zim_XmlIndexLookup_setIndex(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:49: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:53: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp: In function ‘void zim_XmlIndexLookup_getNodeURI(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:69: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp: In function ‘void zim_XmlIndexLookup_getNodeName(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:85: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp: In function ‘void zim_XmlIndexLookup_setNode(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:96: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:100: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp: In function ‘void zim_XmlIndexLookup_getParentURI(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:116: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp: In function ‘void zim_XmlIndexLookup_setParent(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:127: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:131: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp: In function ‘void zim_XmlIndexLookup_getParentName(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:147: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp: In function ‘void zim_XmlIndexLookup_getLowBoundValue(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:161: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp: In function ‘void zim_XmlIndexLookup_getLowBoundOperation(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:175: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp: In function ‘void zim_XmlIndexLookup_setLowBound(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:186: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:192: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp: In function ‘void zim_XmlIndexLookup_getHighBoundValue(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:206: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp: In function ‘void zim_XmlIndexLookup_getHighBoundOperation(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:220: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp: In function ‘void zim_XmlIndexLookup_setHighBound(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:231: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:237: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp: In function ‘void zim_XmlIndexLookup_getContainer(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:251: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp: In function ‘void zim_XmlIndexLookup_setContainer(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:261: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:267: warning: format not a string literal and no format arguments
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp: In function ‘void zim_XmlIndexLookup_execute(int, zval*, zval**, zval*, int)’:
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:285: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:290: warning: deprecated conversion from string constant to ‘char*’
                /usr/local/dbxml-2.5.16/dbxml/src/php/php_dbxml_indexlookup.cpp:297: warning: format not a string literal and no format arguments
                /bin/bash /usr/local/dbxml-2.5.16/dbxml/src/php/libtool --mode=link g++ -DPHP_ATOM_INC -I/usr/local/dbxml-2.5.16/dbxml/src/php/include -I/usr/local/dbxml-2.5.16/dbxml/src/php/main -I/usr/local/dbxml-2.5.16/dbxml/src/php -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/include -I/usr/local/dbxml-2.5.16/db-4.8.26/php_db4 -I/usr/local/dbxml-2.5.16/dbxml/src/php/../../../install/include  -DHAVE_CONFIG_H  -g -O2   -o dbxml.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/local/dbxml-2.5.16/dbxml/src/php/modules  php_dbxml.lo php_dbxml_manager.lo php_dbxml_resolver.lo php_dbxml_container.lo php_dbxml_containerconfig.lo php_dbxml_eventreader.lo php_dbxml_eventwriter.lo php_dbxml_eventreadertowriter.lo php_dbxml_exception.lo php_dbxml_inputstream.lo php_dbxml_transaction.lo php_dbxml_results.lo php_dbxml_value.lo php_dbxml_queryexpression.lo php_dbxml_querycontext.lo php_dbxml_updatecontext.lo php_dbxml_indexspecification.lo php_dbxml_data.lo php_dbxml_document.lo php_dbxml_statistics.lo php_dbxml_indexlookup.lo -Wl,-rpath,/lib -L/lib -lxqilla -Wl,-rpath,/lib -L/lib -lxerces-c -Wl,-rpath,/usr/local/dbxml-2.5.16/dbxml/src/php/../../../install/lib -L/usr/local/dbxml-2.5.16/dbxml/src/php/../../../install/lib -ldbxml -Wl,-rpath,/lib -L/lib -ldb -lstdc++
                libtool: link: g++ -shared  .libs/php_dbxml.o .libs/php_dbxml_manager.o .libs/php_dbxml_resolver.o .libs/php_dbxml_container.o .libs/php_dbxml_containerconfig.o .libs/php_dbxml_eventreader.o .libs/php_dbxml_eventwriter.o .libs/php_dbxml_eventreadertowriter.o .libs/php_dbxml_exception.o .libs/php_dbxml_inputstream.o .libs/php_dbxml_transaction.o .libs/php_dbxml_results.o .libs/php_dbxml_value.o .libs/php_dbxml_queryexpression.o .libs/php_dbxml_querycontext.o .libs/php_dbxml_updatecontext.o .libs/php_dbxml_indexspecification.o .libs/php_dbxml_data.o .libs/php_dbxml_document.o .libs/php_dbxml_statistics.o .libs/php_dbxml_indexlookup.o   -Wl,-rpath -Wl,/usr/local/dbxml-2.5.16/install/lib -Wl,-rpath -Wl,/usr/local/dbxml-2.5.16/install/lib -L/lib /usr/local/dbxml-2.5.16/install/lib/libxqilla.so /usr/local/dbxml-2.5.16/install/lib/libxerces-c.so -L/usr/local/dbxml-2.5.16/dbxml/src/php/../../../install/lib /usr/local/dbxml-2.5.16/install/lib/libdbxml.so -ldb -lstdc++  -Wl,-rpath -Wl,/lib -Wl,-rpath -Wl,/lib -Wl,-rpath -Wl,/usr/local/dbxml-2.5.16/dbxml/src/php/../../../install/lib -Wl,-rpath -Wl,/lib   -Wl,-soname -Wl,dbxml.so -o .libs/dbxml.so
                libtool: link: ( cd ".libs" && rm -f "dbxml.la" && ln -s "../dbxml.la" "dbxml.la" )
                /bin/bash /usr/local/dbxml-2.5.16/dbxml/src/php/libtool --mode=install cp ./dbxml.la /usr/local/dbxml-2.5.16/dbxml/src/php/modules
                libtool: install: cp ./.libs/dbxml.so /usr/local/dbxml-2.5.16/dbxml/src/php/modules/dbxml.so
                libtool: install: cp ./.libs/dbxml.lai /usr/local/dbxml-2.5.16/dbxml/src/php/modules/dbxml.la
                libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/sbin" ldconfig -n /usr/local/dbxml-2.5.16/dbxml/src/php/modules
                ----------------------------------------------------------------------
                Libraries have been installed in:
                   /usr/local/dbxml-2.5.16/dbxml/src/php/modules
                
                If you ever happen to want to link against installed libraries
                in a given directory, LIBDIR, you must either use libtool, and
                specify the full pathname of the library, or use the `-LLIBDIR'
                flag during linking and do at least one of the following:
                   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
                     during execution
                   - add LIBDIR to the `LD_RUN_PATH' environment variable
                     during linking
                   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
                   - have your system administrator add LIBDIR to `/etc/ld.so.conf'
                
                See any operating system documentation about shared libraries for
                more information, such as the ld(1) and ld.so(8) manual pages.
                ----------------------------------------------------------------------
                
                Build complete.
                Don't forget to run 'make test'.
                root@kubuntu:/usr/local/dbxml-2.5.16/dbxml/examples/php# php 08.php
                Create an use a transactional XML Container:
                add a document, get the document, display the content of
                the document.
                
                EXPECTED RESULT:
                book1 = <book><title>Knowledge Discovery in Databases.</title></book>
                ACTUAL RESULT:
                PHP Warning:  xmlmanager::createcontainer(): (null) unable to allocate memory for mutex; resize mutex region
                 in /usr/local/dbxml-2.5.16/dbxml/examples/php/08.php on line 20
                PHP Stack trace:
                PHP   1. {main}() /usr/local/dbxml-2.5.16/dbxml/examples/php/08.php:0
                PHP   2. xmlmanager->createcontainer() /usr/local/dbxml-2.5.16/dbxml/examples/php/08.php:20
                PHP Fatal error:  Uncaught exception 'xmlexception' with message 'Error: Cannot allocate memory' in /usr/local/dbxml-2.5.16/dbxml/examples/php/08.php:20
                Stack trace:
                #0 /usr/local/dbxml-2.5.16/dbxml/examples/php/08.php(20): xmlmanager->createcontainer('test.dbxml')
                #1 {main}
                  thrown in /usr/local/dbxml-2.5.16/dbxml/examples/php/08.php on line 20
                • 20. Re: unable to allocate memory for mutex; resize mutex region
                  776338
                  Could you please use "free" to check your memory? Sometimes most of memory was cached if you had ever handled large files. I'll try to reproduce your problem.

                  Best regards,
                  Jason
                  Oracle Berkeley DB XML
                  • 21. Re: unable to allocate memory for mutex; resize mutex region
                    655560
                    Hi Vitaliy,

                    Jason and I gave 08.php a try on PHP 5.3.3. However, we still can not reproduce the problem. Here is the version information of our environment:
                    PHP Api Version:         20090626
                    Zend Module Api No:      20090626
                    Zend Extension Api No:   220090626
                    
                    PHP 5.3.3-0.dotdeb.1 with Suhosin-Patch (cli) (built: Oct  4 2010 16:15:33) 
                    Copyright (c) 1997-2009 The PHP Group
                    Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
                        with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH
                    Test result:
                    $ php 08.php 
                    Create an use a transactional XML Container:
                    add a document, get the document, display the content of
                    the document.
                    
                    EXPECTED RESULT:
                    book1 = <book><title>Knowledge Discovery in Databases.</title></book>
                    ACTUAL RESULT:
                    book1 = <book><title>Knowledge Discovery in Databases.</title></book>
                    PHP 5.3 is not a stable release version on Ubuntu deb system. I guess that you install it from source code or a unstable deb source. There might be some potential compatibility/privilege issues in the PHP system.

                    If possible, please use Ubuntu deb to install a stable PHP version(5.2) enviornment(including php5-dev and php5-cli), re-install the package, and try 08.php again.

                    Best regards,
                    Rucong
                    Oracle Berkeley DB XML
                    • 22. Re: unable to allocate memory for mutex; resize mutex region
                      560979
                      Hi

                      I am download Ubuntu 10.10 from http://www.ubuntu.com/server/get-ubuntu/download. Then apt-get install php5 and other packages. No installs from source code or a other deb source.
                      PHP Api Version:         20090626
                      Zend Module Api No:      20090626
                      Zend Extension Api No:   220090626
                      php -v says:
                      root@kubuntu:~# php -v
                      PHP 5.3.3-1ubuntu9.1 with Suhosin-Patch (cli) (built: Oct 15 2010 14:00:18)
                      Copyright (c) 1997-2009 The PHP Group
                      Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
                          with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans
                          with Suhosin v0.9.31, Copyright (c) 2007-2010, by SektionEins GmbH
                      free says
                      root@kubuntu:~# free
                                   total       used       free     shared    buffers     cached
                      Mem:       1022924     914520     108404          0      32732     748644
                      -/+ buffers/cache:     133144     889780
                      Swap:       916476          0     916476
                      I can't use php 5.2, because need php5-fpm. php5-fpm include from version 5.3.3.

                      --
                      Vitaliy
                      • 23. Re: unable to allocate memory for mutex; resize mutex region
                        776338
                        Could you please first try using "echo 3 > /proc/sys/vm/drop_caches" to free the cached memory and try the test again, since we can't reproduce your issue.
                        • 24. Re: unable to allocate memory for mutex; resize mutex region
                          560979
                          Done. Did not help.
                          My friend on his workstation installed dbxml. He has same result.
                          • 25. Re: unable to allocate memory for mutex; resize mutex region
                            655560
                            Hi,

                            Are you using a 64bit Ubuntu or 32bit? I'll give it a try on a similar platform.

                            Best regards,
                            Rucong
                            • 26. Re: unable to allocate memory for mutex; resize mutex region
                              560979
                              Hello, Rucong.

                              Thx, for help. I am using 64 bit.

                              --
                              Vitaliy
                              • 27. Re: unable to allocate memory for mutex; resize mutex region
                                655560
                                Hi Vitaliy,

                                I try it on 64bit Ubuntu but still can not reproduce the issue. I think it relates to system environment/account privilege/file permissions issues or something like that...

                                Best regards,
                                Rucong
                                Oracle Berkeley DB XML
                                • 28. Re: unable to allocate memory for mutex; resize mutex region
                                  560979
                                  Hi, Rucong.

                                  And how did you do that? ) You tried on 64bit Ubuntu Server Edition 10.10?

                                  --
                                  Vitaliy
                                  • 29. Re: unable to allocate memory for mutex; resize mutex region
                                    655560
                                    Hi Vitaliy,

                                    Not exactly. I tried on both Ubuntu 8.04 64bit and Ubuntu 10.04 32bit. The issue you mentioned just can not be reproduced. I need more time to setup a similar environment.

                                    Best regards,
                                    Rucong
                                    Oracle Berkeley DB XML