|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56005 config.m4 doesn't work for FreeBSD
Submitted: 2004-03-16 02:25 UTC Modified: 2004-03-16 17:05 UTC
From: Assigned: jon (profile)
Status: Closed Package: xdiff (PECL)
PHP Version: 4CVS-2004-03-16 (stable) OS: FreeBSD 4.9-STABLE
Private report: No CVE-ID: None
 [2004-03-16 02:25 UTC]
FreeBSD doesn't have (or need) the dl library.  Linking against it unconditionally breaks the configure script.  The following patch corrects this for FreeBSD (and probably other platforms) while retaining -ldl for those platforms that require it.

Index: config.m4
RCS file: /repository/pecl/xdiff/config.m4,v
retrieving revision 1.2
diff -u -r1.2 config.m4
--- config.m4   8 Feb 2004 10:49:25 -0000       1.2
+++ config.m4   16 Mar 2004 06:23:02 -0000
@@ -28,6 +28,11 @@
+  EXTRA_LIBS="-lm"
+  AC_CHECK_LIB(dl, dlopen, [
+  ])
@@ -38,7 +43,7 @@
     AC_MSG_ERROR([wrong xdiff lib version or lib not found])
-    -L$XDIFF_DIR/lib -lm -ldl


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-16 17:05 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Dec 05 17:03:53 2021 UTC