Installing mod_geoip failing (using cpanel.net official instructions)
-
Might work if you use command (as it says in that article): /usr/bin/ea-php80-pecl install geoip-1.1.10 -
That command fails. I had made a typo in my initial post because that is the command i had ran. [root@srv ~]# /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, ®ion_code, ®ionlen) == 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, ®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: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, ®ion, &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, ®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: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' failed0 -
Can you let me know the operating system you're using so I can do some additional testing on my end? 0 -
Can you let me know the operating system you're using so I can do some additional testing on my end?
AlmaLinux 8.30 -
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: /usr/bin/ea-php73-pecl install geoip-1.1.1 /usr/bin/ea-php74-pecl install geoip-1.1.10 -
I tested that and got the same errors when trying to install for PHP 8. 0 -
same problem here. Command /usr/bin/ea-php73-pecl install geoip-1.1.1 doesn't work. This is how I have solved it: Download the .tgz PECL geoip from php73/root/usr/lib64/php/modules/geoip.so # check the module geoip.so was properly installed php -m [PHP Modules] bcmath calendar ... ctype geoip # add inside php.ini at the end: (change the "ea-php73" for different PHP version): nano /opt/cpanel/ea-php73/root/etc/php.ini extension=geoip.so # restart apache and php and check is loaded php -i | grep geoip # Check it works with one .php script echo "country: ". geoip_country_code_by_name($_SERVER['REMOTE_ADDR'>); echo "db: ".geoip_db_filename(GEOIP_COUNTRY_EDITION); ?> thats all GeoIP functions: 0
Please sign in to leave a comment.
Comments
7 comments