pear , pecl not working after EasyApach4

Jaison V John

Member
Apr 15, 2016
17
3
3
India
cPanel Access Level
Root Administrator
Hi @cPJacob

The pecl installation of geoIP ends in the make error. Any ideas?

===============================================

libtool: compile: cc -I. -I/root/tmp/pear/geoip -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootFWGEh9/geoip-1.0.8/include -I/root/tmp/pear/pear-build-rootFWGEh9/geoip-1.0.8/main -I/root/tmp/pear/geoip -I/opt/cpanel/ea-php70/root/usr/include/php -I/opt/cpanel/ea-php70/root/usr/include/php/main -I/opt/cpanel/ea-php70/root/usr/include/php/TSRM -I/opt/cpanel/ea-php70/root/usr/include/php/Zend -I/opt/cpanel/ea-php70/root/usr/include/php/ext -I/opt/cpanel/ea-php70/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:220:44: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1
/root/tmp/pear/geoip/geoip.c: In function ‘zif_geoip_db_filename’:
/root/tmp/pear/geoip/geoip.c:220: error: ‘RETURN_STRING’ undeclared (first use in this function)
/root/tmp/pear/geoip/geoip.c:220: error: (Each undeclared identifier is reported only once
/root/tmp/pear/geoip/geoip.c:220: error: for each function it appears in.)

/root/tmp/pear/geoip/geoip.c: In function ‘zif_geoip_time_zone_by_country_and_region’:
/root/tmp/pear/geoip/geoip.c:583: error: ‘RETURN_STRING’ undeclared (first use in this function)
make: *** [geoip.lo] Error 1
ERROR: `make' failed


[[email protected] ~]# ll -d /tmp
drwxrwxrwt 46 root root 20480 Mar 22 07:06 /tmp
[[email protected] ~]# ll -d /root/tmp/pear/
drwxr-xr-x 2 root root 4096 Mar 22 07:04 /root/tmp/pear/
[[email protected] ~]#

===============================================