Problems compiling php_db4 -
11-20-2005
, 11:45 AM
I'm getting the following errors compiling the php_db4 wrapper in dbxml
2.2.8:
`pwd` = /root/dbxml-2.2.8/db-4.3.29/php_db4
`make`
/bin/sh /root/dbxml-2.2.8/db-4.3.29/php_db4/libtool --mode=compile g++
-I. -I/root/dbxml-2.2.8/db-4.3.29/php_db4 -DPHP_ATOM_INC
-I/root/dbxml-2.2.8/db-4.3.29/php_db4/include
-I/root/dbxml-2.2.8/db-4.3.29/php_db4/main
-I/root/dbxml-2.2.8/db-4.3.29/php_db4 -I/usr/include/php
-I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend
-I/usr/include/apache -DHAVE_CONFIG_H -c
/root/dbxml-2.2.8/db-4.3.29/php_db4/db4.cpp -o db4.lo
g++ -I. -I/root/dbxml-2.2.8/db-4.3.29/php_db4 -DPHP_ATOM_INC
-I/root/dbxml-2.2.8/db-4.3.29/php_db4/include
-I/root/dbxml-2.2.8/db-4.3.29/php_db4/main
-I/root/dbxml-2.2.8/db-4.3.29/php_db4 -I/usr/include/php
-I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend
-I/usr/include/apache -DHAVE_CONFIG_H -c
/root/dbxml-2.2.8/db-4.3.29/php_db4/db4.cpp -fPIC -DPIC -o db4.lo
# and this errors the following:
/root/dbxml-2.2.8/db-4.3.29/php_db4/db4.cpp: In function 'void
_free_php_dbenv(zend_rsrc_list_entry*, void***)':
/root/dbxml-2.2.8/db-4.3.29/php_db4/db4.cpp:108: error: 'pdb' was not
declared in this scope
/root/dbxml-2.2.8/db-4.3.29/php_db4/db4.cpp: In function 'void
php_db4_error(const DB_ENV*, const char*, const char*)':
/root/dbxml-2.2.8/db-4.3.29/php_db4/db4.cpp:1810: error: 'tsrm_ls' was
not declared in this scope
/root/dbxml-2.2.8/db-4.3.29/php_db4/db4.cpp: In function 'void
_wrap_db_env_close(int, zval*, zval*, int, void***)':
/root/dbxml-2.2.8/db-4.3.29/php_db4/db4.cpp:728: error: too few
arguments to function 'php_DB_ENV* php_db4_getPhpDbEnvFromObj(zval*,
void***)'
/root/dbxml-2.2.8/db-4.3.29/php_db4/db4.cpp:1846: error: at this point
in file
make: *** [db4.lo] Error 1
I'm compiling against php 4.4.1 and apache 1.3.34 using gcc 4.0.3, any
help would be greatly appreciated. |