pecl-ben nem tudom telepíteni:
Ilyet kapok...:
https://bugs.php.net/bug.php?id=71247
appending configuration tag "CXX" to libtool
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/bash /root/tmp/pear-build-rootHIaGkA/geoip-1.0.8/libtool --mode=compile cc -I. -I/root/tmp/geoip -I/root/tmp/pear-build-rootHIaGkA/geoip-1.0.8/include -I/root/tmp/pear-build-rootHIaGkA/geoip-1.0.8/main -I/root/tmp/geoip -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/tmp/geoip/geoip.c -o geoip.lo
mkdir .libs
cc -I. -I/root/tmp/geoip -I/root/tmp/pear-build-rootHIaGkA/geoip-1.0.8/include -I/root/tmp/pear-build-rootHIaGkA/geoip-1.0.8/main -I/root/tmp/geoip -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/tmp/geoip/geoip.c -fPIC -DPIC -o .libs/geoip.o
/root/tmp/geoip/geoip.c: In function ‘zm_startup_geoip’:
/root/tmp/geoip/geoip.c:118:2: warning: implicit declaration of function ‘_GeoIP_setup_dbfilename’; did you mean ‘zif_geoip_db_filename’? [-Wimplicit-function-declaration]
_GeoIP_setup_dbfilename();
^~~~~~~~~~~~~~~~~~~~~~~
zif_geoip_db_filename
/root/tmp/geoip/geoip.c: In function ‘zif_geoip_db_avail’:
/root/tmp/geoip/geoip.c:190:44: error: expected ‘)’ before ‘TSRMLS_CC’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &edition) == FAILURE) {
^~~~~~~~~
/root/tmp/geoip/geoip.c:190:6: error: too few arguments to function ‘zend_parse_parameters’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &edition) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35:0,
from /root/tmp/geoip/geoip.c:29:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:196:25: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Database type given is out of bound.");
^~~~~~~~~
/root/tmp/geoip/geoip.c:196:3: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Database type given is out of bound.");
^~~~~~~~~~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c: In function ‘zif_geoip_db_filename’:
/root/tmp/geoip/geoip.c:209:44: error: expected ‘)’ before ‘TSRMLS_CC’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &edition) == FAILURE) {
^~~~~~~~~
/root/tmp/geoip/geoip.c:209:6: error: too few arguments to function ‘zend_parse_parameters’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &edition) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35:0,
from /root/tmp/geoip/geoip.c:29:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:215:25: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Database type given is out of bound.");
^~~~~~~~~
/root/tmp/geoip/geoip.c:215:3: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Database type given is out of bound.");
^~~~~~~~~~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:220:44: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1
RETURN_STRING(GeoIPDBFileName[edition], 1);
^
/root/tmp/geoip/geoip.c:220:3: error: ‘RETURN_STRING’ undeclared (first use in this function)
RETURN_STRING(GeoIPDBFileName[edition], 1);
^~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:220:3: note: each undeclared identifier is reported only once for each function it appears in
/root/tmp/geoip/geoip.c: In function ‘zif_geoip_db_get_all_info’:
/root/tmp/geoip/geoip.c:236:4: warning: implicit declaration of function ‘ALLOC_INIT_ZVAL’ [-Wimplicit-function-declaration]
ALLOC_INIT_ZVAL(row);
^~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:240:73: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(row, "description", (char *)GeoIPDBDescription[i], 1);
^
/root/tmp/geoip/geoip.c:240:4: error: ‘add_assoc_string’ undeclared (first use in this function); did you mean ‘add_assoc_string_ex’?
add_assoc_string(row, "description", (char *)GeoIPDBDescription[i], 1);
^~~~~~~~~~~~~~~~
add_assoc_string_ex
/root/tmp/geoip/geoip.c:242:60: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(row, "filename", GeoIPDBFileName[i], 1);
^
/root/tmp/geoip/geoip.c: In function ‘zif_geoip_database_info’:
/root/tmp/geoip/geoip.c:259:44: error: expected ‘)’ before ‘TSRMLS_CC’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &edition) == FAILURE) {
^~~~~~~~~
/root/tmp/geoip/geoip.c:259:6: error: too few arguments to function ‘zend_parse_parameters’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &edition) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35:0,
from /root/tmp/geoip/geoip.c:29:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:265:25: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Database type given is out of bound.");
^~~~~~~~~
/root/tmp/geoip/geoip.c:265:3: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Database type given is out of bound.");
^~~~~~~~~~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:273:26: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[GEOIP_COUNTRY_EDITION]);
^~~~~~~~~
/root/tmp/geoip/geoip.c:273:4: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[GEOIP_COUNTRY_EDITION]);
^~~~~~~~~~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:275:26: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available.");
^~~~~~~~~
/root/tmp/geoip/geoip.c:275:4: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available.");
^~~~~~~~~~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:282:26: error: macro "RETVAL_STRING" passed 2 arguments, but takes just 1
RETVAL_STRING(db_info, 1);
^
/root/tmp/geoip/geoip.c:282:2: error: ‘RETVAL_STRING’ undeclared (first use in this function)
RETVAL_STRING(db_info, 1);
^~~~~~~~~~~~~
/root/tmp/geoip/geoip.def: In function ‘zif_geoip_country_code_by_name’:
/root/tmp/geoip/geoip.c:296:45: error: expected ‘)’ before ‘TSRMLS_CC’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hostname, &arglen) == FAILURE) { \
^
/root/tmp/geoip/geoip.def:20:1: note: in expansion of macro ‘GEOIPDEF’
GEOIPDEF(geoip_country_code_by_name, GeoIP_country_code_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~
/root/tmp/geoip/geoip.c:296:7: error: too few arguments to function ‘zend_parse_parameters’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hostname, &arglen) == FAILURE) { \
^
/root/tmp/geoip/geoip.def:20:1: note: in expansion of macro ‘GEOIPDEF’
GEOIPDEF(geoip_country_code_by_name, GeoIP_country_code_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~
In file included from /usr/local/include/php/main/php.h:35:0,
from /root/tmp/geoip/geoip.c:29:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:303:26: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[db_type]); \
^
/root/tmp/geoip/geoip.def:20:1: note: in expansion of macro ‘GEOIPDEF’
GEOIPDEF(geoip_country_code_by_name, GeoIP_country_code_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~
/root/tmp/geoip/geoip.c:303:4: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[db_type]); \
^
/root/tmp/geoip/geoip.def:20:1: note: in expansion of macro ‘GEOIPDEF’
GEOIPDEF(geoip_country_code_by_name, GeoIP_country_code_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:310:26: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Host %s not found", hostname); \
^
/root/tmp/geoip/geoip.def:20:1: note: in expansion of macro ‘GEOIPDEF’
GEOIPDEF(geoip_country_code_by_name, GeoIP_country_code_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~
/root/tmp/geoip/geoip.c:310:4: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Host %s not found", hostname); \
^
/root/tmp/geoip/geoip.def:20:1: note: in expansion of macro ‘GEOIPDEF’
GEOIPDEF(geoip_country_code_by_name, GeoIP_country_code_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
In file included from /root/tmp/geoip/geoip.c:316:0:
/root/tmp/geoip/geoip.def:20:1: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1
GEOIPDEF(geoip_country_code_by_name, GeoIP_country_code_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:313:3: error: ‘RETURN_STRING’ undeclared (first use in this function)
RETURN_STRING((char*)return_code, 1); \
^
/root/tmp/geoip/geoip.def:20:1: note: in expansion of macro ‘GEOIPDEF’
GEOIPDEF(geoip_country_code_by_name, GeoIP_country_code_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~
/root/tmp/geoip/geoip.def: In function ‘zif_geoip_country_code3_by_name’:
/root/tmp/geoip/geoip.c:296:45: error: expected ‘)’ before ‘TSRMLS_CC’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hostname, &arglen) == FAILURE) { \
^
/root/tmp/geoip/geoip.def:21:1: note: in expansion of macro ‘GEOIPDEF’
GEOIPDEF(geoip_country_code3_by_name, GeoIP_country_code3_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~
/root/tmp/geoip/geoip.c:296:7: error: too few arguments to function ‘zend_parse_parameters’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hostname, &arglen) == FAILURE) { \
^
/root/tmp/geoip/geoip.def:21:1: note: in expansion of macro ‘GEOIPDEF’
GEOIPDEF(geoip_country_code3_by_name, GeoIP_country_code3_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~
In file included from /usr/local/include/php/main/php.h:35:0,
from /root/tmp/geoip/geoip.c:29:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:303:26: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[db_type]); \
^
/root/tmp/geoip/geoip.def:21:1: note: in expansion of macro ‘GEOIPDEF’
GEOIPDEF(geoip_country_code3_by_name, GeoIP_country_code3_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~
/root/tmp/geoip/geoip.c:303:4: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[db_type]); \
^
/root/tmp/geoip/geoip.def:21:1: note: in expansion of macro ‘GEOIPDEF’
GEOIPDEF(geoip_country_code3_by_name, GeoIP_country_code3_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:310:26: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Host %s not found", hostname); \
^
/root/tmp/geoip/geoip.def:21:1: note: in expansion of macro ‘GEOIPDEF’
GEOIPDEF(geoip_country_code3_by_name, GeoIP_country_code3_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~
/root/tmp/geoip/geoip.c:310:4: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Host %s not found", hostname); \
^
/root/tmp/geoip/geoip.def:21:1: note: in expansion of macro ‘GEOIPDEF’
GEOIPDEF(geoip_country_code3_by_name, GeoIP_country_code3_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
In file included from /root/tmp/geoip/geoip.c:316:0:
/root/tmp/geoip/geoip.def:21:1: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1
GEOIPDEF(geoip_country_code3_by_name, GeoIP_country_code3_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:313:3: error: ‘RETURN_STRING’ undeclared (first use in this function)
RETURN_STRING((char*)return_code, 1); \
^
/root/tmp/geoip/geoip.def:21:1: note: in expansion of macro ‘GEOIPDEF’
GEOIPDEF(geoip_country_code3_by_name, GeoIP_country_code3_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~
/root/tmp/geoip/geoip.def: In function ‘zif_geoip_country_name_by_name’:
/root/tmp/geoip/geoip.c:296:45: error: expected ‘)’ before ‘TSRMLS_CC’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hostname, &arglen) == FAILURE) { \
^
/root/tmp/geoip/geoip.def:22:1: note: in expansion of macro ‘GEOIPDEF’
GEOIPDEF(geoip_country_name_by_name, GeoIP_country_name_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~
/root/tmp/geoip/geoip.c:296:7: error: too few arguments to function ‘zend_parse_parameters’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hostname, &arglen) == FAILURE) { \
^
/root/tmp/geoip/geoip.def:22:1: note: in expansion of macro ‘GEOIPDEF’
GEOIPDEF(geoip_country_name_by_name, GeoIP_country_name_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~
In file included from /usr/local/include/php/main/php.h:35:0,
from /root/tmp/geoip/geoip.c:29:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:303:26: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[db_type]); \
^
/root/tmp/geoip/geoip.def:22:1: note: in expansion of macro ‘GEOIPDEF’
GEOIPDEF(geoip_country_name_by_name, GeoIP_country_name_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~
/root/tmp/geoip/geoip.c:303:4: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[db_type]); \
^
/root/tmp/geoip/geoip.def:22:1: note: in expansion of macro ‘GEOIPDEF’
GEOIPDEF(geoip_country_name_by_name, GeoIP_country_name_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:310:26: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Host %s not found", hostname); \
^
/root/tmp/geoip/geoip.def:22:1: note: in expansion of macro ‘GEOIPDEF’
GEOIPDEF(geoip_country_name_by_name, GeoIP_country_name_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~
/root/tmp/geoip/geoip.c:310:4: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Host %s not found", hostname); \
^
/root/tmp/geoip/geoip.def:22:1: note: in expansion of macro ‘GEOIPDEF’
GEOIPDEF(geoip_country_name_by_name, GeoIP_country_name_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
In file included from /root/tmp/geoip/geoip.c:316:0:
/root/tmp/geoip/geoip.def:22:1: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1
GEOIPDEF(geoip_country_name_by_name, GeoIP_country_name_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:313:3: error: ‘RETURN_STRING’ undeclared (first use in this function)
RETURN_STRING((char*)return_code, 1); \
^
/root/tmp/geoip/geoip.def:22:1: note: in expansion of macro ‘GEOIPDEF’
GEOIPDEF(geoip_country_name_by_name, GeoIP_country_name_by_name, GEOIP_COUNTRY_EDITION)
^~~~~~~~
/root/tmp/geoip/geoip.c: In function ‘zif_geoip_continent_code_by_name’:
/root/tmp/geoip/geoip.c:329:44: error: expected ‘)’ before ‘TSRMLS_CC’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hostname, &arglen) == FAILURE) {
^~~~~~~~~
/root/tmp/geoip/geoip.c:329:6: error: too few arguments to function ‘zend_parse_parameters’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hostname, &arglen) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35:0,
from /root/tmp/geoip/geoip.c:29:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:336:25: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[GEOIP_COUNTRY_EDITION]);
^~~~~~~~~
/root/tmp/geoip/geoip.c:336:3: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[GEOIP_COUNTRY_EDITION]);
^~~~~~~~~~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:343:25: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Host %s not found", hostname);
^~~~~~~~~
/root/tmp/geoip/geoip.c:343:3: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Host %s not found", hostname);
^~~~~~~~~~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:346:54: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1
RETURN_STRING((char *)GeoIP_country_continent[id], 1);
^
/root/tmp/geoip/geoip.c:346:2: error: ‘RETURN_STRING’ undeclared (first use in this function)
RETURN_STRING((char *)GeoIP_country_continent[id], 1);
^~~~~~~~~~~~~
/root/tmp/geoip/geoip.c: In function ‘zif_geoip_org_by_name’:
/root/tmp/geoip/geoip.c:359:44: error: expected ‘)’ before ‘TSRMLS_CC’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hostname, &arglen) == FAILURE) {
^~~~~~~~~
/root/tmp/geoip/geoip.c:359:6: error: too few arguments to function ‘zend_parse_parameters’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hostname, &arglen) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35:0,
from /root/tmp/geoip/geoip.c:29:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:366:25: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[GEOIP_ORG_EDITION]);
^~~~~~~~~
/root/tmp/geoip/geoip.c:366:3: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[GEOIP_ORG_EDITION]);
^~~~~~~~~~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:373:25: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Host %s not found", hostname);
^~~~~~~~~
/root/tmp/geoip/geoip.c:373:3: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Host %s not found", hostname);
^~~~~~~~~~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:376:22: error: macro "RETVAL_STRING" passed 2 arguments, but takes just 1
RETVAL_STRING(org, 1);
^
/root/tmp/geoip/geoip.c:376:2: error: ‘RETVAL_STRING’ undeclared (first use in this function)
RETVAL_STRING(org, 1);
^~~~~~~~~~~~~
/root/tmp/geoip/geoip.c: In function ‘zif_geoip_record_by_name’:
/root/tmp/geoip/geoip.c:390:44: error: expected ‘)’ before ‘TSRMLS_CC’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hostname, &arglen) == FAILURE) {
^~~~~~~~~
/root/tmp/geoip/geoip.c:390:6: error: too few arguments to function ‘zend_parse_parameters’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hostname, &arglen) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35:0,
from /root/tmp/geoip/geoip.c:29:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:401:25: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[GEOIP_CITY_EDITION_REV0]);
^~~~~~~~~
/root/tmp/geoip/geoip.c:401:3: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[GEOIP_CITY_EDITION_REV0]);
^~~~~~~~~~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:409:25: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Host %s not found", hostname);
^~~~~~~~~
/root/tmp/geoip/geoip.c:409:3: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Host %s not found", hostname);
^~~~~~~~~~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:415:110: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(return_value, "continent_code", (gir->continent_code == NULL) ? "" : gir->continent_code, 1);
^
/root/tmp/geoip/geoip.c:415:2: error: ‘add_assoc_string’ undeclared (first use in this function); did you mean ‘add_assoc_string_ex’?
add_assoc_string(return_value, "continent_code", (gir->continent_code == NULL) ? "" : gir->continent_code, 1);
^~~~~~~~~~~~~~~~
add_assoc_string_ex
/root/tmp/geoip/geoip.c:417:104: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(return_value, "country_code", (gir->country_code == NULL) ? "" : gir->country_code, 1);
^
/root/tmp/geoip/geoip.c:418:107: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(return_value, "country_code3", (gir->country_code3 == NULL) ? "" : gir->country_code3, 1);
^
/root/tmp/geoip/geoip.c:419:104: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(return_value, "country_name", (gir->country_name == NULL) ? "" : gir->country_name, 1);
^
/root/tmp/geoip/geoip.c:420:86: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(return_value, "region", (gir->region == NULL) ? "" : gir->region, 1);
^
/root/tmp/geoip/geoip.c:421:80: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(return_value, "city", (gir->city == NULL) ? "" : gir->city, 1);
^
/root/tmp/geoip/geoip.c:422:101: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(return_value, "postal_code", (gir->postal_code == NULL) ? "" : gir->postal_code, 1);
^
/root/tmp/geoip/geoip.c: In function ‘zif_geoip_id_by_name’:
/root/tmp/geoip/geoip.c:445:44: error: expected ‘)’ before ‘TSRMLS_CC’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hostname, &arglen) == FAILURE) {
^~~~~~~~~
/root/tmp/geoip/geoip.c:445:6: error: too few arguments to function ‘zend_parse_parameters’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hostname, &arglen) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35:0,
from /root/tmp/geoip/geoip.c:29:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:452:25: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[GEOIP_NETSPEED_EDITION]);
^~~~~~~~~
/root/tmp/geoip/geoip.c:452:3: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[GEOIP_NETSPEED_EDITION]);
^~~~~~~~~~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c: In function ‘zif_geoip_region_by_name’:
/root/tmp/geoip/geoip.c:471:44: error: expected ‘)’ before ‘TSRMLS_CC’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hostname, &arglen) == FAILURE) {
^~~~~~~~~
/root/tmp/geoip/geoip.c:471:6: error: too few arguments to function ‘zend_parse_parameters’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hostname, &arglen) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35:0,
from /root/tmp/geoip/geoip.c:29:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:482:25: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[GEOIP_REGION_EDITION_REV0]);
^~~~~~~~~
/root/tmp/geoip/geoip.c:482:3: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[GEOIP_REGION_EDITION_REV0]);
^~~~~~~~~~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:490:25: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Host %s not found", hostname);
^~~~~~~~~
/root/tmp/geoip/geoip.c:490:3: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Host %s not found", hostname);
^~~~~~~~~~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:495:72: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(return_value, "country_code", region->country_code, 1);
^
/root/tmp/geoip/geoip.c:495:2: error: ‘add_assoc_string’ undeclared (first use in this function); did you mean ‘add_assoc_string_ex’?
add_assoc_string(return_value, "country_code", region->country_code, 1);
^~~~~~~~~~~~~~~~
add_assoc_string_ex
/root/tmp/geoip/geoip.c:496:60: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(return_value, "region", region->region, 1);
^
/root/tmp/geoip/geoip.c: In function ‘zif_geoip_isp_by_name’:
/root/tmp/geoip/geoip.c:511:44: error: expected ‘)’ before ‘TSRMLS_CC’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hostname, &arglen) == FAILURE) {
^~~~~~~~~
/root/tmp/geoip/geoip.c:511:6: error: too few arguments to function ‘zend_parse_parameters’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hostname, &arglen) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35:0,
from /root/tmp/geoip/geoip.c:29:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:518:25: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[GEOIP_ISP_EDITION]);
^~~~~~~~~
/root/tmp/geoip/geoip.c:518:3: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[GEOIP_ISP_EDITION]);
^~~~~~~~~~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:525:25: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Host %s not found", hostname);
^~~~~~~~~
/root/tmp/geoip/geoip.c:525:3: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Host %s not found", hostname);
^~~~~~~~~~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:528:22: error: macro "RETVAL_STRING" passed 2 arguments, but takes just 1
RETVAL_STRING(isp, 1);
^
/root/tmp/geoip/geoip.c:528:2: error: ‘RETVAL_STRING’ undeclared (first use in this function)
RETVAL_STRING(isp, 1);
^~~~~~~~~~~~~
/root/tmp/geoip/geoip.c: In function ‘zif_geoip_region_name_by_code’:
/root/tmp/geoip/geoip.c:542:44: error: expected ‘)’ before ‘TSRMLS_CC’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &country_code, &countrylen, ®ion_code, ®ionlen) == FAILURE) {
^~~~~~~~~
/root/tmp/geoip/geoip.c:542:6: error: too few arguments to function ‘zend_parse_parameters’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &country_code, &countrylen, ®ion_code, ®ionlen) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35:0,
from /root/tmp/geoip/geoip.c:29:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:547:25: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "You need to specify the country and region codes.");
^~~~~~~~~
/root/tmp/geoip/geoip.c:547:3: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "You need to specify the country and region codes.");
^~~~~~~~~~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:555:37: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1
RETURN_STRING((char*)region_name, 1);
^
/root/tmp/geoip/geoip.c:555:2: error: ‘RETURN_STRING’ undeclared (first use in this function)
RETURN_STRING((char*)region_name, 1);
^~~~~~~~~~~~~
/root/tmp/geoip/geoip.c: In function ‘zif_geoip_time_zone_by_country_and_region’:
/root/tmp/geoip/geoip.c:570:44: error: expected ‘)’ before ‘TSRMLS_CC’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &country, &countrylen, ®ion, &arg2len) == FAILURE) {
^~~~~~~~~
/root/tmp/geoip/geoip.c:570:6: error: too few arguments to function ‘zend_parse_parameters’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &country, &countrylen, ®ion, &arg2len) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35:0,
from /root/tmp/geoip/geoip.c:29:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:575:25: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "You need to specify at least the country code.");
^~~~~~~~~
/root/tmp/geoip/geoip.c:575:3: error: too few arguments to function ‘php_error_docref’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "You need to specify at least the country code.");
^~~~~~~~~~~~~~~~
In file included from /root/tmp/geoip/geoip.c:29:0:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/root/tmp/geoip/geoip.c:583:34: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1
RETURN_STRING((char*)timezone, 1);
^
/root/tmp/geoip/geoip.c:583:2: error: ‘RETURN_STRING’ undeclared (first use in this function)
RETURN_STRING((char*)timezone, 1);
^~~~~~~~~~~~~
Makefile:209: recipe for target 'geoip.lo' failed
make: *** [geoip.lo] Error 1
ERROR: `make' failed