I'm following the official cpanel.net instructions on installing mod_geoip on my server. It unfortunately fails with an odd error in compilation.
The command /usr/bin/ea-php80-pecl install geoip
The support article: How do I install mod_geoip?
Any ideas?
The command /usr/bin/ea-php80-pecl install geoip
The support article: How do I install mod_geoip?
Code:
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
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
running: make
/bin/sh /root/tmp/pear/pear-build-rooty6cb7V/geoip-1.0.8/libtool --mode=compile cc -I. -I/root/tmp/pear/geoip -I/root/tmp/pear/pear-build-rooty6cb7V/geoip-1.0.8/include -I/root/tmp/pear/pear-build-rooty6cb7V/geoip-1.0.8/main -I/root/tmp/pear/geoip -I/opt/cpanel/ea-php80/root/usr/include/php -I/opt/cpanel/ea-php80/root/usr/include/php/main -I/opt/cpanel/ea-php80/root/usr/include/php/TSRM -I/opt/cpanel/ea-php80/root/usr/include/php/Zend -I/opt/cpanel/ea-php80/root/usr/include/php/ext -I/opt/cpanel/ea-php80/root/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/geoip/geoip.c -o geoip.lo
libtool: compile: cc -I. -I/root/tmp/pear/geoip -I/root/tmp/pear/pear-build-rooty6cb7V/geoip-1.0.8/include -I/root/tmp/pear/pear-build-rooty6cb7V/geoip-1.0.8/main -I/root/tmp/pear/geoip -I/opt/cpanel/ea-php80/root/usr/include/php -I/opt/cpanel/ea-php80/root/usr/include/php/main -I/opt/cpanel/ea-php80/root/usr/include/php/TSRM -I/opt/cpanel/ea-php80/root/usr/include/php/Zend -I/opt/cpanel/ea-php80/root/usr/include/php/ext -I/opt/cpanel/ea-php80/root/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/geoip/geoip.c -fPIC -DPIC -o .libs/geoip.o
/root/tmp/pear/geoip/geoip.c: In function ‘zm_startup_geoip’:
/root/tmp/pear/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/pear/geoip/geoip.c: In function ‘zif_geoip_db_avail’:
/root/tmp/pear/geoip/geoip.c:190:44: error: expected ‘)’ before ‘TSRMLS_CC’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &edition) == FAILURE) {
^~~~~~~~~
/root/tmp/pear/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 /opt/cpanel/ea-php80/root/usr/include/php/main/php.h:35,
from /root/tmp/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/geoip/geoip.c: In function ‘zif_geoip_db_filename’:
/root/tmp/pear/geoip/geoip.c:209:44: error: expected ‘)’ before ‘TSRMLS_CC’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &edition) == FAILURE) {
^~~~~~~~~
/root/tmp/pear/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 /opt/cpanel/ea-php80/root/usr/include/php/main/php.h:35,
from /root/tmp/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/geoip/geoip.c:220:44: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1
RETURN_STRING(GeoIPDBFileName[edition], 1);
^
/root/tmp/pear/geoip/geoip.c:220:3: error: ‘RETURN_STRING’ undeclared (first use in this function)
RETURN_STRING(GeoIPDBFileName[edition], 1);
^~~~~~~~~~~~~
/root/tmp/pear/geoip/geoip.c:220:3: note: each undeclared identifier is reported only once for each function it appears in
/root/tmp/pear/geoip/geoip.c: In function ‘zif_geoip_db_get_all_info’:
/root/tmp/pear/geoip/geoip.c:236:4: warning: implicit declaration of function ‘ALLOC_INIT_ZVAL’ [-Wimplicit-function-declaration]
ALLOC_INIT_ZVAL(row);
^~~~~~~~~~~~~~~
/root/tmp/pear/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/pear/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/pear/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/pear/geoip/geoip.c: In function ‘zif_geoip_database_info’:
/root/tmp/pear/geoip/geoip.c:259:44: error: expected ‘)’ before ‘TSRMLS_CC’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &edition) == FAILURE) {
^~~~~~~~~
/root/tmp/pear/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 /opt/cpanel/ea-php80/root/usr/include/php/main/php.h:35,
from /root/tmp/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/geoip/geoip.c:275:26: error: expected ‘)’ before ‘TSRMLS_CC’
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available.");
^~~~~~~~~
/root/tmp/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/geoip/geoip.c:282:26: error: macro "RETVAL_STRING" passed 2 arguments, but takes just 1
RETVAL_STRING(db_info, 1);
^
/root/tmp/pear/geoip/geoip.c:282:2: error: ‘RETVAL_STRING’ undeclared (first use in this function)
RETVAL_STRING(db_info, 1);
^~~~~~~~~~~~~
/root/tmp/pear/geoip/geoip.def: In function ‘zif_geoip_country_code_by_name’:
/root/tmp/pear/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/pear/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/pear/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/pear/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 /opt/cpanel/ea-php80/root/usr/include/php/main/php.h:35,
from /root/tmp/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/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/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/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/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/geoip/geoip.c:316:
/root/tmp/pear/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/pear/geoip/geoip.c:313:3: error: ‘RETURN_STRING’ undeclared (first use in this function)
RETURN_STRING((char*)return_code, 1); \
^~~~~~~~~~~~~
/root/tmp/pear/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/pear/geoip/geoip.def: In function ‘zif_geoip_country_code3_by_name’:
/root/tmp/pear/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/pear/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/pear/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/pear/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 /opt/cpanel/ea-php80/root/usr/include/php/main/php.h:35,
from /root/tmp/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/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/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/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/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/geoip/geoip.c:316:
/root/tmp/pear/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/pear/geoip/geoip.c:313:3: error: ‘RETURN_STRING’ undeclared (first use in this function)
RETURN_STRING((char*)return_code, 1); \
^~~~~~~~~~~~~
/root/tmp/pear/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/pear/geoip/geoip.def: In function ‘zif_geoip_country_name_by_name’:
/root/tmp/pear/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/pear/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/pear/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/pear/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 /opt/cpanel/ea-php80/root/usr/include/php/main/php.h:35,
from /root/tmp/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/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/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/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/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/geoip/geoip.c:316:
/root/tmp/pear/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/pear/geoip/geoip.c:313:3: error: ‘RETURN_STRING’ undeclared (first use in this function)
RETURN_STRING((char*)return_code, 1); \
^~~~~~~~~~~~~
/root/tmp/pear/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/pear/geoip/geoip.c: In function ‘zif_geoip_continent_code_by_name’:
/root/tmp/pear/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/pear/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 /opt/cpanel/ea-php80/root/usr/include/php/main/php.h:35,
from /root/tmp/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/geoip/geoip.c:346:2: error: ‘RETURN_STRING’ undeclared (first use in this function)
RETURN_STRING((char *)GeoIP_country_continent[id], 1);
^~~~~~~~~~~~~
/root/tmp/pear/geoip/geoip.c: In function ‘zif_geoip_org_by_name’:
/root/tmp/pear/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/pear/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 /opt/cpanel/ea-php80/root/usr/include/php/main/php.h:35,
from /root/tmp/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/geoip/geoip.c:376:22: error: macro "RETVAL_STRING" passed 2 arguments, but takes just 1
RETVAL_STRING(org, 1);
^
/root/tmp/pear/geoip/geoip.c:376:2: error: ‘RETVAL_STRING’ undeclared (first use in this function)
RETVAL_STRING(org, 1);
^~~~~~~~~~~~~
/root/tmp/pear/geoip/geoip.c: In function ‘zif_geoip_record_by_name’:
/root/tmp/pear/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/pear/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 /opt/cpanel/ea-php80/root/usr/include/php/main/php.h:35,
from /root/tmp/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/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/pear/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/pear/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/pear/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/pear/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/pear/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/pear/geoip/geoip.c: In function ‘zif_geoip_id_by_name’:
/root/tmp/pear/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/pear/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 /opt/cpanel/ea-php80/root/usr/include/php/main/php.h:35,
from /root/tmp/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/geoip/geoip.c: In function ‘zif_geoip_region_by_name’:
/root/tmp/pear/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/pear/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 /opt/cpanel/ea-php80/root/usr/include/php/main/php.h:35,
from /root/tmp/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/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/pear/geoip/geoip.c: In function ‘zif_geoip_isp_by_name’:
/root/tmp/pear/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/pear/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 /opt/cpanel/ea-php80/root/usr/include/php/main/php.h:35,
from /root/tmp/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/geoip/geoip.c:528:22: error: macro "RETVAL_STRING" passed 2 arguments, but takes just 1
RETVAL_STRING(isp, 1);
^
/root/tmp/pear/geoip/geoip.c:528:2: error: ‘RETVAL_STRING’ undeclared (first use in this function)
RETVAL_STRING(isp, 1);
^~~~~~~~~~~~~
/root/tmp/pear/geoip/geoip.c: In function ‘zif_geoip_region_name_by_code’:
/root/tmp/pear/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/pear/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 /opt/cpanel/ea-php80/root/usr/include/php/main/php.h:35,
from /root/tmp/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/geoip/geoip.c:555:37: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1
RETURN_STRING((char*)region_name, 1);
^
/root/tmp/pear/geoip/geoip.c:555:2: error: ‘RETURN_STRING’ undeclared (first use in this function)
RETURN_STRING((char*)region_name, 1);
^~~~~~~~~~~~~
/root/tmp/pear/geoip/geoip.c: In function ‘zif_geoip_time_zone_by_country_and_region’:
/root/tmp/pear/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/pear/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 /opt/cpanel/ea-php80/root/usr/include/php/main/php.h:35,
from /root/tmp/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/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/pear/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/pear/geoip/geoip.c:29:
/opt/cpanel/ea-php80/root/usr/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/pear/geoip/geoip.c:583:34: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1
RETURN_STRING((char*)timezone, 1);
^
/root/tmp/pear/geoip/geoip.c:583:2: error: ‘RETURN_STRING’ undeclared (first use in this function)
RETURN_STRING((char*)timezone, 1);
^~~~~~~~~~~~~
make: *** [Makefile:209: geoip.lo] Error 1
ERROR: `make' failed
Last edited by a moderator: