php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58402 configure fails on freebsd
Submitted: 2008-10-31 09:00 UTC Modified: 2008-10-31 09:05 UTC
From: nobleclem at fatalexception dot us Assigned:
Status: Closed Package: sphinx (PECL)
PHP Version: 5.2.5 OS: CentOS 4, FreeBSD 7
Private report: No CVE-ID: None
 [2008-10-31 09:00 UTC] nobleclem at fatalexception dot us
Description:
------------
The config.m4 file has a line in it that doesn't seem to be supported on bsd systems.  By removing the "-ldl" in the config.m4 file that seems to resolve the problem.  Also I have successfully compiled and installed this on FreeBSD and CentOS 4 by removing this option.

Reproduce code:
---------------
On FreeBSD I performed the following
#$ phpize
#$ ./configure

Output:
...
checking for libsphinxclient headers in default path... found in /usr/local
checking for sphinx_create in -lsphinxclient... no
configure: error: wrong libsphinxclient version or lib not found

Fix:
--- config.m4.bak	2008-10-31 09:48:28.000000000 -0400
+++ config.m4	2008-10-31 09:48:38.000000000 -0400
@@ -41,7 +41,7 @@
   ],[
     AC_MSG_ERROR([wrong libsphinxclient version or lib not found])
   ],[
-    -L$SPHINX_DIR/$PHP_LIBDIR -lm -ldl
+    -L$SPHINX_DIR/$PHP_LIBDIR -lm
   ])
   
   PHP_SUBST(SPHINX_SHARED_LIBADD)

Expected result:
----------------
It should have had a successful configured.

Actual result:
--------------
Output
...
checking for libsphinxclient headers in default path... found in /usr/local
checking for sphinx_create in -lsphinxclient... no
configure: error: wrong libsphinxclient version or lib not found

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-31 09:05 UTC] tony at daylessday dot org
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

Patch committed, thanks!
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Dec 06 23:03:35 2021 UTC