Installing mod_geoip failing (using cpanel.net official instructions)

Operating System & Version
Almalinux 8
cPanel & WHM Version
v98.0.8

Navigator

Registered
Jul 4, 2013
4
0
51
cPanel Access Level
Root Administrator
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?

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, &region_code, &regionlen) == 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, &region_code, &regionlen) == 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, &region, &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, &region, &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
Any ideas?
 
Last edited by a moderator:

quietFinn

Well-Known Member
Feb 4, 2006
1,329
141
193
Finland
cPanel Access Level
Root Administrator
Might work if you use command (as it says in that article):

Code:
/usr/bin/ea-php80-pecl install geoip-1.1.1
 
  • Like
Reactions: andrew.n

Navigator

Registered
Jul 4, 2013
4
0
51
cPanel Access Level
Root Administrator
That command fails. I had made a typo in my initial post because that is the command i had ran.

Code:
[[email protected] ~]# /usr/bin/ea-php80-pecl install geoip-1.1.1


WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update


downloading geoip-1.1.1.tgz ...


Starting to download geoip-1.1.1.tgz (13,004 bytes)


.....done: 13,004 bytes


5 source files, building


running: phpize


Configuring for:


PHP Api Version: 20200930


Zend Module Api No: 20200930


Zend Extension Api No: 420200930


building in /root/tmp/pear/pear-build-rootGCUwPp/geoip-1.1.1


running: /root/tmp/pear/geoip/configure --with-php-config=/opt/cpanel/ea-php80/root/usr/bin/php-config


checking for grep that handles long lines and -e... /usr/bin/grep


checking for egrep... /usr/bin/grep -E


checking for a sed that does not truncate output... /usr/bin/sed


checking for pkg-config... /usr/bin/pkg-config


checking pkg-config is at least version 0.9.0... yes


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 for system library directory... lib


checking if compiler supports -R... no


checking if compiler supports -Wl,-rpath,... yes


checking build system type... x86_64-pc-linux-gnu


checking host system type... x86_64-pc-linux-gnu


checking target system type... x86_64-pc-linux-gnu


checking for PHP prefix... /opt/cpanel/ea-php80/root/usr


checking for PHP includes... -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


checking for PHP extension directory... /opt/cpanel/ea-php80/root/usr/lib64/php/modules


checking for PHP installed headers prefix... /opt/cpanel/ea-php80/root/usr/include/php


checking if debug is enabled... no


checking if zts is enabled... no


checking for gawk... gawk


checking for geoip support... yes, shared


checking for geoip files in default path... found in /usr


checking for GeoIP_open in -lGeoIP... yes


checking for GeoIP_setup_custom_directory in -lGeoIP... yes


checking for GeoIP_set_charset in -lGeoIP... yes


checking for GeoIP_continent_by_id in -lGeoIP... yes


checking for GeoIP_addr_to_num in -lGeoIP... yes


checking whether GEOIP_NETSPEED_EDITION_REV1 is declared... yes


checking whether GEOIP_ACCURACYRADIUS_EDITION is declared... yes


checking for LGPL compatible GeoIP libs... expr: non-integer argument


cannot detect


checking library features to determine version (not acurate)... found 1005000


checking how to print strings... printf


checking for a sed that does not truncate output... (cached) /usr/bin/sed


checking for fgrep... /usr/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 how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop


checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop


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 dlltool... no


checking how to associate runtime and link libraries... printf %s\n


checking for ar... ar


checking for archiver @FILE support... @


checking for strip... strip


checking for ranlib... ranlib


checking for gawk... (cached) gawk


checking command to parse /usr/bin/nm -B output from cc object... ok


checking for sysroot... no


checking for a working dd... /usr/bin/dd


checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1


checking for mt... no


checking if : is a manifest tool... no


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 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


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-rootGCUwPp/geoip-1.1.1/libtool --mode=compile cc -I. -I/root/tmp/pear/geoip -I/root/tmp/pear/pear-build-rootGCUwPp/geoip-1.1.1/include -I/root/tmp/pear/pear-build-rootGCUwPp/geoip-1.1.1/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-rootGCUwPp/geoip-1.1.1/include -I/root/tmp/pear/pear-build-rootGCUwPp/geoip-1.1.1/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 ‘OnUpdateDirectory’:


/root/tmp/pear/geoip/geoip.c:141:74: error: expected ‘)’ before ‘TSRMLS_CC’


return OnUpdateString(entry, new_value, mh_arg1, mh_arg2, mh_arg3, stage TSRMLS_CC);


^~~~~~~~~~


)


/root/tmp/pear/geoip/geoip.c: In function ‘zif_geoip_db_avail’:


/root/tmp/pear/geoip/geoip.c:264:44: error: expected ‘)’ before ‘TSRMLS_CC’


if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &edition) == FAILURE) {


^~~~~~~~~


/root/tmp/pear/geoip/geoip.c:264: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:32:


/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:270: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:270: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:32:


/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:283:44: error: expected ‘)’ before ‘TSRMLS_CC’


if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &edition) == FAILURE) {


^~~~~~~~~


/root/tmp/pear/geoip/geoip.c:283: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:32:


/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:289: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:289: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:32:


/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_database_info’:


/root/tmp/pear/geoip/geoip.c:354:44: error: expected ‘)’ before ‘TSRMLS_CC’


if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &edition) == FAILURE) {


^~~~~~~~~


/root/tmp/pear/geoip/geoip.c:354: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:32:


/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:360: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:360: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:32:


/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:368: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:368: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:32:


/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:370:26: error: expected ‘)’ before ‘TSRMLS_CC’


php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available.");


^~~~~~~~~


/root/tmp/pear/geoip/geoip.c:370: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:32:


/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.def: In function ‘zif_geoip_country_code_by_name’:


/root/tmp/pear/geoip/geoip.c:396: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:396: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:32:


/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:403: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:403: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:32:


/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.def: In function ‘zif_geoip_country_code3_by_name’:


/root/tmp/pear/geoip/geoip.c:396: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:396: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:32:


/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:403: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:403: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:32:


/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.def: In function ‘zif_geoip_country_name_by_name’:


/root/tmp/pear/geoip/geoip.c:396: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:396: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:32:


/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:403: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:403: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:32:


/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.def: In function ‘zif_geoip_country_code_by_name_v6’:


/root/tmp/pear/geoip/geoip.c:396: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:25:1: note: in expansion of macro ‘GEOIPDEF’


GEOIPDEF(geoip_country_code_by_name_v6, GeoIP_country_code_by_name_v6, GEOIP_COUNTRY_EDITION_V6)


^~~~~~~~


/root/tmp/pear/geoip/geoip.c:396: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:25:1: note: in expansion of macro ‘GEOIPDEF’


GEOIPDEF(geoip_country_code_by_name_v6, GeoIP_country_code_by_name_v6, GEOIP_COUNTRY_EDITION_V6)


^~~~~~~~


In file included from /opt/cpanel/ea-php80/root/usr/include/php/main/php.h:35,


from /root/tmp/pear/geoip/geoip.c:32:


/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:403: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:25:1: note: in expansion of macro ‘GEOIPDEF’


GEOIPDEF(geoip_country_code_by_name_v6, GeoIP_country_code_by_name_v6, GEOIP_COUNTRY_EDITION_V6)


^~~~~~~~


/root/tmp/pear/geoip/geoip.c:403: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:25:1: note: in expansion of macro ‘GEOIPDEF’


GEOIPDEF(geoip_country_code_by_name_v6, GeoIP_country_code_by_name_v6, GEOIP_COUNTRY_EDITION_V6)


^~~~~~~~


In file included from /root/tmp/pear/geoip/geoip.c:32:


/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.def: In function ‘zif_geoip_country_code3_by_name_v6’:


/root/tmp/pear/geoip/geoip.c:396: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:26:1: note: in expansion of macro ‘GEOIPDEF’


GEOIPDEF(geoip_country_code3_by_name_v6, GeoIP_country_code3_by_name_v6, GEOIP_COUNTRY_EDITION_V6)


^~~~~~~~


/root/tmp/pear/geoip/geoip.c:396: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:26:1: note: in expansion of macro ‘GEOIPDEF’


GEOIPDEF(geoip_country_code3_by_name_v6, GeoIP_country_code3_by_name_v6, GEOIP_COUNTRY_EDITION_V6)


^~~~~~~~


In file included from /opt/cpanel/ea-php80/root/usr/include/php/main/php.h:35,


from /root/tmp/pear/geoip/geoip.c:32:


/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:403: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:26:1: note: in expansion of macro ‘GEOIPDEF’


GEOIPDEF(geoip_country_code3_by_name_v6, GeoIP_country_code3_by_name_v6, GEOIP_COUNTRY_EDITION_V6)


^~~~~~~~


/root/tmp/pear/geoip/geoip.c:403: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:26:1: note: in expansion of macro ‘GEOIPDEF’


GEOIPDEF(geoip_country_code3_by_name_v6, GeoIP_country_code3_by_name_v6, GEOIP_COUNTRY_EDITION_V6)


^~~~~~~~


In file included from /root/tmp/pear/geoip/geoip.c:32:


/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.def: In function ‘zif_geoip_country_name_by_name_v6’:


/root/tmp/pear/geoip/geoip.c:396: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:27:1: note: in expansion of macro ‘GEOIPDEF’


GEOIPDEF(geoip_country_name_by_name_v6, GeoIP_country_name_by_name_v6, GEOIP_COUNTRY_EDITION_V6)


^~~~~~~~


/root/tmp/pear/geoip/geoip.c:396: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:27:1: note: in expansion of macro ‘GEOIPDEF’


GEOIPDEF(geoip_country_name_by_name_v6, GeoIP_country_name_by_name_v6, GEOIP_COUNTRY_EDITION_V6)


^~~~~~~~


In file included from /opt/cpanel/ea-php80/root/usr/include/php/main/php.h:35,


from /root/tmp/pear/geoip/geoip.c:32:


/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:403: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:27:1: note: in expansion of macro ‘GEOIPDEF’


GEOIPDEF(geoip_country_name_by_name_v6, GeoIP_country_name_by_name_v6, GEOIP_COUNTRY_EDITION_V6)


^~~~~~~~


/root/tmp/pear/geoip/geoip.c:403: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:27:1: note: in expansion of macro ‘GEOIPDEF’


GEOIPDEF(geoip_country_name_by_name_v6, GeoIP_country_name_by_name_v6, GEOIP_COUNTRY_EDITION_V6)


^~~~~~~~


In file included from /root/tmp/pear/geoip/geoip.c:32:


/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_continent_code_by_name’:


/root/tmp/pear/geoip/geoip.c:461: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:461: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:32:


/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:468: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:468: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:32:


/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_org_by_name’:


/root/tmp/pear/geoip/geoip.c:498: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:498: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:32:


/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:505: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:505: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:32:


/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_asnum_by_name’:


/root/tmp/pear/geoip/geoip.c:536: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:536: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:32:


/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:543:25: error: expected ‘)’ before ‘TSRMLS_CC’


php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[GEOIP_ASNUM_EDITION]);


^~~~~~~~~


/root/tmp/pear/geoip/geoip.c:543: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_ASNUM_EDITION]);


^~~~~~~~~~~~~~~~


In file included from /root/tmp/pear/geoip/geoip.c:32:


/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_domain_by_name’:


/root/tmp/pear/geoip/geoip.c:574: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:574: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:32:


/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:581:25: error: expected ‘)’ before ‘TSRMLS_CC’


php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[GEOIP_DOMAIN_EDITION]);


^~~~~~~~~


/root/tmp/pear/geoip/geoip.c:581: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_DOMAIN_EDITION]);


^~~~~~~~~~~~~~~~


In file included from /root/tmp/pear/geoip/geoip.c:32:


/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_netspeedcell_by_name’:


/root/tmp/pear/geoip/geoip.c:613: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:613: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:32:


/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:620:25: error: expected ‘)’ before ‘TSRMLS_CC’


php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[GEOIP_NETSPEED_EDITION_REV1]);


^~~~~~~~~


/root/tmp/pear/geoip/geoip.c:620: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_REV1]);


^~~~~~~~~~~~~~~~


In file included from /root/tmp/pear/geoip/geoip.c:32:


/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_record_by_name’:


/root/tmp/pear/geoip/geoip.c:652: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:652: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:32:


/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:663: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:663: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:32:


/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_id_by_name’:


/root/tmp/pear/geoip/geoip.c:722: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:722: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:32:


/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:729: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:729: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:32:


/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:752: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:752: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:32:


/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:763: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:763: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:32:


/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_isp_by_name’:


/root/tmp/pear/geoip/geoip.c:800: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:800: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:32:


/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:807: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:807: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:32:


/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_name_by_code’:


/root/tmp/pear/geoip/geoip.c:838:44: error: expected ‘)’ before ‘TSRMLS_CC’


if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &country_code, &countrylen, &region_code, &regionlen) == FAILURE) {


^~~~~~~~~


/root/tmp/pear/geoip/geoip.c:838:6: error: too few arguments to function ‘zend_parse_parameters’


if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &country_code, &countrylen, &region_code, &regionlen) == FAILURE) {


^~~~~~~~~~~~~~~~~~~~~


In file included from /opt/cpanel/ea-php80/root/usr/include/php/main/php.h:35,


from /root/tmp/pear/geoip/geoip.c:32:


/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:843: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:843: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:32:


/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_time_zone_by_country_and_region’:


/root/tmp/pear/geoip/geoip.c:874:44: error: expected ‘)’ before ‘TSRMLS_CC’


if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &country, &countrylen, &region, &arg2len) == FAILURE) {


^~~~~~~~~


/root/tmp/pear/geoip/geoip.c:874:6: error: too few arguments to function ‘zend_parse_parameters’


if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &country, &countrylen, &region, &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:32:


/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:879: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:879: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:32:


/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_setup_custom_directory’:


/root/tmp/pear/geoip/geoip.c:908:44: error: expected ‘)’ before ‘TSRMLS_CC’


if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &dir, &dirlen) == FAILURE) {


^~~~~~~~~


/root/tmp/pear/geoip/geoip.c:908:6: error: too few arguments to function ‘zend_parse_parameters’


if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &dir, &dirlen) == FAILURE) {


^~~~~~~~~~~~~~~~~~~~~


In file included from /opt/cpanel/ea-php80/root/usr/include/php/main/php.h:35,


from /root/tmp/pear/geoip/geoip.c:32:


/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, ...);


^~~~~~~~~~~~~~~~~~~~~


make: *** [Makefile:209: geoip.lo] Error 1


ERROR: `make' failed
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,442
1,004
313
cPanel Access Level
Root Administrator
Thanks for that. I believe that is actually the normal output for PHP 8 as the package is not available for that version. The highest version of PHP where this is available on a cPanel system is 7.4 - we don't have any workarounds available for PHP 8.

If you install this with the following command for 7.3 or 7.4 I would expect that to work well:

Code:
/usr/bin/ea-php73-pecl install geoip-1.1.1
/usr/bin/ea-php74-pecl install geoip-1.1.1
 

quietFinn

Well-Known Member
Feb 4, 2006
1,329
141
193
Finland
cPanel Access Level
Root Administrator
I tested that and got the same errors when trying to install for PHP 8.
 
  • Like
Reactions: cPRex