php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: aleksey dot zholdak at gmail dot com
New email:
PHP Version: OS:

 

 [2011-04-21 02:39 UTC] aleksey dot zholdak at gmail dot com
Description:
------------
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 <tobi@oetiker.ch>
Compiled Apr 12 2011 17:29:02

# pkg_version | grep rrd
rrdtool =

Full configure.log here: http://depositfiles.com/files/2xslh294m

Expected result:
----------------
Successful installation

Actual result:
--------------
Package does not install

Patches

Pull Requests

History

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+])
+    ],[
+      -L$RRDTOOL_LIBDIR
+    ])
+  ],[
+    -L$RRDTOOL_LIBDIR
+  ])
 
   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
http://vhost.mirin.cz/rrd-310515.tgz. 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:

http://fjrkr5af.joyent.us/config.log

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:

CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"

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

HTH,
Florian
 [2011-04-27 04:57 UTC] koubel at seznam dot cz
Hm, problem is still here. Florian is right, I thought that 
if I call PHP_ADD_LIBRARY_WITH_PATH()
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 http://vhost.mirin.cz/rrd-310551.tgz

Package installation should work via "pecl install http://vhost.mirin.cz/rrd-310551.tgz" 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 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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 03:01:28 2025 UTC