php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67178 Error in configuration
Submitted: 2014-05-02 07:30 UTC Modified: 2014-05-03 17:48 UTC
From: mansion@php.net Assigned: ohill (profile)
Status: Closed Package: geoip (PECL)
PHP Version: 5.4.28 OS: centos 6
Private report: No CVE-ID: None
 [2014-05-02 07:30 UTC] mansion@php.net
Description:
------------
I get the following error when trying to configure version 1.1.0

checking for geoip support... yes, shared
./configure: line 5329: syntax error near unexpected token `fi'
./configure: line 5329: `fi'


Test script:
---------------
pecl install -f http://pecl.php.net/get/geoip-1.1.0.tgz

Expected result:
----------------
Configure script should pass.

Actual result:
--------------
Configure script has errors.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-05-03 17:48 UTC] ohill@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ohill
 [2014-05-03 17:48 UTC] ohill@php.net
This issue is fixed on SVN (Thanks to remi)

Will issue a 1.1.1 soon, in the meantime please try a version from SVN and let me know if it works.
 [2015-04-06 10:33 UTC] nickg78 at gmail dot com
How long do you mean "soon"? 

1 year later after your last commend, and the faulty 1.1.0 version is still the latest available online...
 [2016-03-31 10:07 UTC] balugeorge at gmail dot com
Since a newer version with the fix haven't yet been released, details of building the package from SVN are as follows:
-----------------
svn checkout http://svn.php.net/repository/pecl/geoip/trunk/ geoip
cd geoip
phpize
./configure
make
make install
-----------------
After installation, add "extension=geoip.so"(without quotes) to the php.ini file(or to the custom geip.ini file) and restart apache. Details regarding the geoip version can be found from the phpinfo file(similar to the below one)
================
geoip support => enabled
geoip extension version => 1.1.1-dev
geoip library version => 1005000
================
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Nov 29 09:01:24 2020 UTC