|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58862 error running ./config
Submitted: 2009-09-20 01:36 UTC Modified: 2012-03-17 14:16 UTC
From: mikeb at fellowshipholden dot com Assigned:
Status: No Feedback Package: shape (PECL)
PHP Version: 5.2.9 OS: suse linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-09-20 01:36 UTC] mikeb at fellowshipholden dot com
I have shapelib installed, and the lib is located in /usr/local/lib/

When I run ./configure, or when the PECL installer tries to run it, it says:

checking for shpopen in -lshp... no
configure: error: wrong shp lib version or lib not found

I started going through the configure script, and found two lines:

LIBNAME=shp # you may want to change this
LIBSYMBOL=SHPOpen # you most likely want to change this

So I indeed changed these values, hopefully corresponding to my version of shp lib:

LIBNAME=libshp # you may want to change this
LIBSYMBOL=shpopen # you most likely want to change this

but I still get the same error.  I've tried variants, with upper/lowercase SHPOpen, and libshp, libshape, shapelib, shplib, etc, but to no avail.

I then tried compiling shplib myself, and made sure to include shpopen.o, and tried to configure, but it fails.

I've been on this problem for 2 days now, and really need a solution.  I've already looked elsewhere for help or even alternatives to this PECL extension.  If I can't solve this problem, perhaps I'll just have to write my own extension, or just write a little C program that does what I want so I can execute it from PHP.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-09-21 04:52 UTC]
Hi, can you try latest SVN or you are using source packages?
I committed a fix, I think it should help.
 [2012-03-17 14:16 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

 [2012-03-17 14:16 UTC]
-Status: Feedback +Status: No Feedback
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC