Hey,
I have some issue with installation of pdo_pgsql...
I used pecl -> pecl install pdo_pgsql
PHP Version 5.4.16 (default php version)
here is error:
How can I install pdo_pgsql successfully?
I have some issue with installation of pdo_pgsql...
I used pecl -> pecl install pdo_pgsql
PHP Version 5.4.16 (default php version)
here is error:
/var/tmp/PDO/pdo_dbh.c: In function 'pdo_stmt_instantiate':
/var/tmp/PDO/pdo_dbh.c:410:8: error: 'zval' has no member named 'refcount'
object->refcount = 1;
^
/var/tmp/PDO/pdo_dbh.c:411:8: error: 'zval' has no member named 'is_ref'
object->is_ref = 1;
^
/var/tmp/PDO/pdo_dbh.c: In function 'pdo_stmt_construct':
/var/tmp/PDO/pdo_dbh.c:424:2: error: too few arguments to function 'std_object_handlers.write_property'
std_object_handlers.write_property(object, &z_key, query_string TSRMLS_CC);
^
/var/tmp/PDO/pdo_dbh.c:435:6: error: 'zend_fcall_info' has no member named 'object_pp'
fci.object_pp = &object;
^
/var/tmp/PDO/pdo_dbh.c:458:6: error: 'zend_fcall_info_cache' has no member named 'object_pp'
fcc.object_pp = &object;
^
/var/tmp/PDO/pdo_dbh.c: In function 'zim_PDO_setAttribute':
/var/tmp/PDO/pdo_dbh.c:752:12: error: 'zval' has no member named 'refcount'
(*item)->refcount++;
^
/var/tmp/PDO/pdo_dbh.c: In function 'zim_PDO_getAttribute':
/var/tmp/PDO/pdo_dbh.c:818:28: error: 'zval' has no member named 'refcount'
dbh->def_stmt_ctor_args->refcount++;
^
/var/tmp/PDO/pdo_dbh.c: In function 'pdo_hash_methods':
/var/tmp/PDO/pdo_dbh.c:1126:20: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
ifunc->arg_info = funcs->arg_info + 1;
^
/var/tmp/PDO/pdo_dbh.c:1128:26: error: 'const struct _zend_arg_info' has no member named 'required_num_args'
if (funcs->arg_info[0].required_num_args == -1) {
^
/var/tmp/PDO/pdo_dbh.c:1131:50: error: 'const struct _zend_arg_info' has no member named 'required_num_args'
ifunc->required_num_args = funcs->arg_info[0].required_num_args;
^
/var/tmp/PDO/pdo_dbh.c:1133:9: error: 'zend_internal_function' has no member named 'pass_rest_by_reference'
ifunc->pass_rest_by_reference = funcs->arg_info[0].pass_by_reference;
^
/var/tmp/PDO/pdo_dbh.c:1134:9: error: 'zend_internal_function' has no member named 'return_reference'
ifunc->return_reference = funcs->arg_info[0].return_reference;
^
/var/tmp/PDO/pdo_dbh.c:1134:48: error: 'const struct _zend_arg_info' has no member named 'return_reference'
ifunc->return_reference = funcs->arg_info[0].return_reference;
^
/var/tmp/PDO/pdo_dbh.c:1139:9: error: 'zend_internal_function' has no member named 'pass_rest_by_reference'
ifunc->pass_rest_by_reference = 0;
^
/var/tmp/PDO/pdo_dbh.c:1140:9: error: 'zend_internal_function' has no member named 'return_reference'
ifunc->return_reference = 0;
^
/var/tmp/PDO/pdo_dbh.c: In function 'pdo_dbh_init':
/var/tmp/PDO/pdo_dbh.c:1242:37: warning: assignment from incompatible pointer type [enabled by default]
pdo_dbh_object_handlers.get_method = dbh_method_get;
^
/var/tmp/PDO/pdo_dbh.c: In function 'pdo_dbh_new':
/var/tmp/PDO/pdo_dbh.c:1413:37: error: 'zend_class_entry' has no member named 'default_properties'
zend_hash_copy(dbh->properties, &ce->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *));
^
make: *** [pdo_dbh.lo] Error 1
ERROR: `make' failed
running: make
/bin/sh /var/tmp/pear-build-rootzsS75N/PDO_PGSQL-1.0.2/libtool --mode=compile cc -I -I. -I/var/tmp/PDO_PGSQL -DPHP_ATOM_INC -I/var/tmp/pear-build-rootzsS75N/PDO_PGSQL-1.0.2/include -I/var/tmp/pear-build-rootzsS75N/PDO_PGSQL-1.0.2/main -I/var/tmp/PDO_PGSQL -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/PDO_PGSQL/pdo_pgsql.c -o pdo_pgsql.lo
libtool: compile: cc -I -I. -I/var/tmp/PDO_PGSQL -DPHP_ATOM_INC -I/var/tmp/pear-build-rootzsS75N/PDO_PGSQL-1.0.2/include -I/var/tmp/pear-build-rootzsS75N/PDO_PGSQL-1.0.2/main -I/var/tmp/PDO_PGSQL -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/PDO_PGSQL/pdo_pgsql.c -fPIC -DPIC -o .libs/pdo_pgsql.o
/var/tmp/PDO_PGSQL/pdo_pgsql.c:22:20: fatal error: config.h: No such file or directory
#include "config.h"
^
compilation terminated.
make: *** [pdo_pgsql.lo] Error 1
ERROR: `make' failed
/var/tmp/PDO/pdo_dbh.c:410:8: error: 'zval' has no member named 'refcount'
object->refcount = 1;
^
/var/tmp/PDO/pdo_dbh.c:411:8: error: 'zval' has no member named 'is_ref'
object->is_ref = 1;
^
/var/tmp/PDO/pdo_dbh.c: In function 'pdo_stmt_construct':
/var/tmp/PDO/pdo_dbh.c:424:2: error: too few arguments to function 'std_object_handlers.write_property'
std_object_handlers.write_property(object, &z_key, query_string TSRMLS_CC);
^
/var/tmp/PDO/pdo_dbh.c:435:6: error: 'zend_fcall_info' has no member named 'object_pp'
fci.object_pp = &object;
^
/var/tmp/PDO/pdo_dbh.c:458:6: error: 'zend_fcall_info_cache' has no member named 'object_pp'
fcc.object_pp = &object;
^
/var/tmp/PDO/pdo_dbh.c: In function 'zim_PDO_setAttribute':
/var/tmp/PDO/pdo_dbh.c:752:12: error: 'zval' has no member named 'refcount'
(*item)->refcount++;
^
/var/tmp/PDO/pdo_dbh.c: In function 'zim_PDO_getAttribute':
/var/tmp/PDO/pdo_dbh.c:818:28: error: 'zval' has no member named 'refcount'
dbh->def_stmt_ctor_args->refcount++;
^
/var/tmp/PDO/pdo_dbh.c: In function 'pdo_hash_methods':
/var/tmp/PDO/pdo_dbh.c:1126:20: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
ifunc->arg_info = funcs->arg_info + 1;
^
/var/tmp/PDO/pdo_dbh.c:1128:26: error: 'const struct _zend_arg_info' has no member named 'required_num_args'
if (funcs->arg_info[0].required_num_args == -1) {
^
/var/tmp/PDO/pdo_dbh.c:1131:50: error: 'const struct _zend_arg_info' has no member named 'required_num_args'
ifunc->required_num_args = funcs->arg_info[0].required_num_args;
^
/var/tmp/PDO/pdo_dbh.c:1133:9: error: 'zend_internal_function' has no member named 'pass_rest_by_reference'
ifunc->pass_rest_by_reference = funcs->arg_info[0].pass_by_reference;
^
/var/tmp/PDO/pdo_dbh.c:1134:9: error: 'zend_internal_function' has no member named 'return_reference'
ifunc->return_reference = funcs->arg_info[0].return_reference;
^
/var/tmp/PDO/pdo_dbh.c:1134:48: error: 'const struct _zend_arg_info' has no member named 'return_reference'
ifunc->return_reference = funcs->arg_info[0].return_reference;
^
/var/tmp/PDO/pdo_dbh.c:1139:9: error: 'zend_internal_function' has no member named 'pass_rest_by_reference'
ifunc->pass_rest_by_reference = 0;
^
/var/tmp/PDO/pdo_dbh.c:1140:9: error: 'zend_internal_function' has no member named 'return_reference'
ifunc->return_reference = 0;
^
/var/tmp/PDO/pdo_dbh.c: In function 'pdo_dbh_init':
/var/tmp/PDO/pdo_dbh.c:1242:37: warning: assignment from incompatible pointer type [enabled by default]
pdo_dbh_object_handlers.get_method = dbh_method_get;
^
/var/tmp/PDO/pdo_dbh.c: In function 'pdo_dbh_new':
/var/tmp/PDO/pdo_dbh.c:1413:37: error: 'zend_class_entry' has no member named 'default_properties'
zend_hash_copy(dbh->properties, &ce->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *));
^
make: *** [pdo_dbh.lo] Error 1
ERROR: `make' failed
running: make
/bin/sh /var/tmp/pear-build-rootzsS75N/PDO_PGSQL-1.0.2/libtool --mode=compile cc -I -I. -I/var/tmp/PDO_PGSQL -DPHP_ATOM_INC -I/var/tmp/pear-build-rootzsS75N/PDO_PGSQL-1.0.2/include -I/var/tmp/pear-build-rootzsS75N/PDO_PGSQL-1.0.2/main -I/var/tmp/PDO_PGSQL -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/PDO_PGSQL/pdo_pgsql.c -o pdo_pgsql.lo
libtool: compile: cc -I -I. -I/var/tmp/PDO_PGSQL -DPHP_ATOM_INC -I/var/tmp/pear-build-rootzsS75N/PDO_PGSQL-1.0.2/include -I/var/tmp/pear-build-rootzsS75N/PDO_PGSQL-1.0.2/main -I/var/tmp/PDO_PGSQL -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/PDO_PGSQL/pdo_pgsql.c -fPIC -DPIC -o .libs/pdo_pgsql.o
/var/tmp/PDO_PGSQL/pdo_pgsql.c:22:20: fatal error: config.h: No such file or directory
#include "config.h"
^
compilation terminated.
make: *** [pdo_pgsql.lo] Error 1
ERROR: `make' failed
How can I install pdo_pgsql successfully?
Last edited: