[rrd-developers] embedded rrdtool error

D.Walsh info at daleenterprise.com
Wed Feb 2 15:26:53 MET 2005


I've been trying to embed the rrdtool functions in PHP.
The problem seems to be when PHP is built in this manner, the rrd_graph 
function doesn't appear to work properly.

I get the following error.

rrd_graph(): invalid rpn expression 'v1,UN,0,v1,IF'

This error doesn't  occur when I use the CLI tool and I've examined the 
config.m4 file and I don't believe the problem is there, I believe it's 
in the rrdtool.c file, specifically the rrd_graph function.

To be sure, does anyone have a simple php script that works with the 
embedded functions that I could use as a test?
.
Another thing I noticed is that the librrd.dylib doesn't appear to be 
built properly based on a test file used to link against it and this 
may be the root of the problem, it gives the following errors when I 
link against it.

dyld: Undefined symbols:
__array_init
__convert_to_string
__efree
__emalloc
__estrdup
__estrndup
_add_assoc_long_ex
_add_next_index_double
_add_next_index_string
_convert_to_array
_convert_to_long

I have run a similar test linking against libz and I don't encounter 
any errors so I suspect it's a build issue.

I also have no contact with anyone who has the embedded functions 
working so I am unable to examine valid or working files.

PHP is 4.3.10, ZLIB is 1.2.2, OS is Mac OSXS 10.3.7, using local png 
and local zlib with rrdtool.

Assistance would be greatly appreciated.

-- Dale

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



More information about the rrd-developers mailing list