|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59729 Package does not install
Submitted: 2011-04-21 02:39 UTC Modified: 2011-04-29 04:30 UTC
From: aleksey dot zholdak at gmail dot com Assigned: koubel (profile)
Status: Closed Package: rrd (PECL)
PHP Version: 5.3.5 OS: FreeBSD 7.4-STABLE
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
30 + 45 = ?
Subscribe to this entry?

 [2011-04-21 02:39 UTC] aleksey dot zholdak at gmail dot com
Package does not install

Reproduce code:
# pecl install rrd
downloading rrd-1.0.2.tar ...
configure: error: rrd lib version seems older than 1.3.0, update to 1.3.0+
ERROR: `/go-pear/rrd/configure' failed

# rrdtool -v
RRDtool 1.4.5  Copyright 1997-2010 by Tobias Oetiker <>
Compiled Apr 12 2011 17:29:02

# pkg_version | grep rrd
rrdtool =

Full configure.log here:

Expected result:
Successful installation

Actual result:
Package does not install


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-04-22 18:51 UTC] bernard at vanhpc dot org
Try this patch for config.m4:

--- config.m4.orig	2011-04-19 05:54:53.000000000 -0700
+++ config.m4	2011-04-22 15:41:47.323151336 -0700
@@ -76,10 +76,17 @@
   dnl rrd_graph_v is available in 1.3.0+
-  PHP_CHECK_FUNC(rrd_graph_v, rrd)
-  if test "$ac_cv_func_rrd_graph_v" != yes; then
-    AC_MSG_ERROR([rrd lib version seems older than 1.3.0, update to 1.3.0+])
-  fi
+  PHP_CHECK_LIBRARY(rrd, rrd_graph_v,
+  [],[
+    PHP_CHECK_LIBRARY(rrd, rrd_graph_v,
+    [],[
+      AC_MSG_ERROR([rrd lib version seems older than 1.3.0, update to 1.3.0+])
+    ],[
+    ])
+  ],[
+  ])
   dnl rrd_lastupdate_r available in 1.4.0+
   PHP_CHECK_FUNC(rrd_lastupdate_r, rrd)

The same change should be done for rrd_lastupdate_r.

I had same issue on Solaris 10 and after applying this patch it detected that my installed RRDtool library has rrd_graph_v function.

You will need to untar the tarball, patch, then run phpize and then ./configure, make, make install manually.
 [2011-04-26 08:49 UTC] koubel at seznam dot cz
bernard at vanhpc dot org: I don't think that your solutions is right.

Regarding log, it seems that problem is missing rrd lib when the configure checks for rrd_graph_v:

configure:6934: checking for rrd_graph_v in -lrrd
configure:6959: cc -o conftest -g  -O0   conftest.c -lrrd   >&5
/usr/bin/ld: cannot find -lrrd 

PHP_CHECK_FUNC(rrd_graph_v, rrd) is OK, it fall backs to check presence of rrd_graph_v in librrd. I need to modify library flags prior to this check. Modified version of package with a patch (see diff in the trunk) is on Try to phpize install for this one, if fails, send me a config.log again. Thanks
 [2011-04-26 14:30 UTC] bernard at vanhpc dot org
Still not working for me with the patched snapshot.  config.log here:

Should I try passing --with-rrd to configure?
 [2011-04-26 17:15 UTC] flo at FreeBSD dot org
i committed this into the FreeBSD ports tree today. All i had to add was:


The last config.log shows that -L/usr/local/lib is still missing.

 [2011-04-27 04:57 UTC] koubel at seznam dot cz
Hm, problem is still here. Florian is right, I thought that 
before PHP_CHECK_FUNC(rrd_graph_v, rrd), it adds necessary -L options for LDFLAGS. Obviously doesn't. Maybe there is some php libtool magic for this, I don't have any experiences with libtool.

I'll try to investigate it little more, maybe I use temporary "LDFLAGS" before PHP_CHECK_FUNC.
 [2011-04-27 06:34 UTC] koubel at seznam dot cz
I used temporary LDFLAGS for all PHP_CHECK_FUNC(), patch is in the trunk.

Test please new snapshot at

Package installation should work via "pecl install" and via phpize way too without any LDFLAGS modifications.
 [2011-04-28 16:04 UTC] bernard at vanhpc dot org
Tested rrd-310551.tgz on Solaris 10 and it works -- thanks!
 [2011-04-29 04:30 UTC] koubel at seznam dot cz
This bug has been fixed in SVN.

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

In case this was a 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.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Oct 27 20:03:34 2021 UTC