[rrd-users] problems with rrdtool.so

D.Walsh info at daleenterprise.com
Mon Jan 3 05:07:44 MET 2005


My env:
Mac OSXS 10.3.7
Darwin Kernel Version 7.7.0: Sun Nov 7 16:06:51 PST 2004
  root:xnu/xnu-517.9.5.obj~1/RELEASE_PPC Power Macintosh

PHP 4.3.10 (built: Jan  1 2005 22:13:48)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

__________________________________

Everything seems to build and install OK, rrdtool seems to work but the 
standalone module or embedding rrdtool doesn't appear to be working.

I also followed the included instructions for installing as an embedded 
module in php by untaring the package in php/ext folder but doing 
./buildconf in the php-4.3.10 folder reported:

daleenterprise:/SourceCache/apache_mod_php/apache_mod_php-12/php-4.3.10 
root# ./buildconf
You should not run buildconf in a release package.
use buildconf --force to override this check.
daleenterprise:/SourceCache/apache_mod_php/apache_mod_php-12/php-4.3.10 
root#

doing with --force resulted in:

daleenterprise:/SourceCache/apache_mod_php/apache_mod_php-12/php-4.3.10 
root# ./buildconf --force
Forcing buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.57 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
            Running cvsclean for you.
            To avoid this, install autoconf-2.13 and automake-1.5.
buildconf: libtool version 1.5 (ok)
rebuilding main/php_config.h.in
WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
WARNING: and `config.h.top', to define templates for `config.h.in'
WARNING: is deprecated and discouraged.

WARNING: Using the third argument of `AC_DEFINE' and
WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
WARNING: `acconfig.h':

WARNING:   AC_DEFINE([NEED_MAIN], 1,
WARNING:             [Define if a function `main' is needed.])

WARNING: More sophisticated templates can also be produced, see the
WARNING: documentation.
daleenterprise:/SourceCache/apache_mod_php/apache_mod_php-12/php-4.3.10 
root#

built php with the --with-rrdtool=/usr but it didn't work, had to 
manually build it.
__________________________________

built rrdtool with:

./configure --prefix=/usr --mandir=/usr/share --sysconfdir=/etc 
--enable-local-libpng --enable-local-zlib --enable-shared && make && 
make install
__________________________________

built module with:

cd contrib/php4
./configure --with-rrdtool=/usr --with-php-config=/usr/bin/php-config


Added line to php.ini

extension=rrdtool.so
__________________________________

excerpts from logs

Processing config directory: /www/*.conf
  Processing config file: /www/Aliases.conf
Processing config directory: /etc/httpd/sites/*.conf
  Processing config file: /etc/httpd/sites/0000_any_80_default.conf
  Processing config file: 
/etc/httpd/sites/0001_any_80_daleenterprise.com.conf
  Processing config file: 
/etc/httpd/sites/0002_any_80_www.daleenterprise.com.conf
  Processing config file: 
/etc/httpd/sites/0003_any_80_mustangrestomods.com.conf
  Processing config file: 
/etc/httpd/sites/0004_any_80_www.mustangrestomods.com.conf
  Processing config file: /etc/httpd/sites/virtual_host_global.conf
PHP Warning:  Unknown(): Invalid library (maybe not a PHP library) 
'rrdtool.so'  in Unknown on line 0
[Sun Jan  2 17:25:57 2005] [notice] Apache/1.3.33 (Darwin) DAV/1.0.3 
mod_ssl/2.8.22 OpenSSL/0.9.7b mod_perl/1.26 PHP/4.3.10 configured -- 
resuming normal operations
[Sun Jan  2 17:25:57 2005] [notice] Accept mutex: flock (Default: flock)

__________________________________


I'd like to embed it or use the module, any ideas on a solution?

-- Dale


--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list