Tristan
Verified User
Did anyone have any succes installing the GeoIP extension with the Poralix php-extension.sh script lately? Just tried on a Debian server with PHP 7.4 but it seems to fail with:
Code:
/usr/local/src/tmp.sMKtA74d5w/geoip-1.0.8/geoip.c:555:2: error: 'RETURN_STRING' undeclared (first use in this function); did you mean 'ZEND_STR_STRING'?
RETURN_STRING((char*)region_name, 1);
^~~~~~~~~~~~~
ZEND_STR_STRING
/usr/local/src/tmp.sMKtA74d5w/geoip-1.0.8/geoip.c: In function 'zif_geoip_time_zone_by_country_and_region':
/usr/local/src/tmp.sMKtA74d5w/geoip-1.0.8/geoip.c:583:34: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1
RETURN_STRING((char*)timezone, 1);
^
/usr/local/src/tmp.sMKtA74d5w/geoip-1.0.8/geoip.c:583:2: error: 'RETURN_STRING' undeclared (first use in this function); did you mean 'ZEND_STR_STRING'?
RETURN_STRING((char*)timezone, 1);
^~~~~~~~~~~~~
ZEND_STR_STRING
make: *** [Makefile:192: geoip.lo] Error 1
[ERROR] Installation of geoip for php74 failed
[ERROR] Could not find /usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/geoip.so. Removing extension from /usr/local/php74/lib/php.conf.d/10-directadmin.ini
[ERROR] Could not find /usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/geoip.so. Removing extension from /usr/local/php74/lib/php.conf.d/11-nextcloud.ini
[ERROR] Could not find /usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/geoip.so. Removing extension from /usr/local/php74/lib/php.conf.d/50-webapps.ini
[ERROR] Could not find /usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/geoip.so. Removing extension from /usr/local/php74/lib/php.conf.d/90-custom.ini