Re: [rrd-users] RRDs seems broken on OpenBSD

This is a discussion on Re: [rrd-users] RRDs seems broken on OpenBSD within the RRD Users forums, part of the Networking and Network Related category; On 4/9/07, jim steele <jsteele1997@gmail.com> wrote: > Hello, > > I installed rrdtool 1....


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2007
Sam Umbach
 
Posts: n/a
Default Re: [rrd-users] RRDs seems broken on OpenBSD

On 4/9/07, jim steele <jsteele1997@gmail.com> wrote:
> Hello,
>
> I installed rrdtool 1.2.19 on my newly-installed OpenBSD 4.0 machine,
> exactly according to the instructions provided. It compiles and
> installs fine, and the rrdtool command line program works properly,
> and produces this output:


> However, when I try to use RRDs in a perl script, I get this error:
>
> /usr/bin/perl:/usr/local/rrdtool-1.2.19/lib/librrd.so.2.9: undefined
> symbol 'art_alloc'
> lazy binding failed!
> Segmentation fault


Looks like a missing dependency. rrdtool 1.2.x depends on libart_lgpl
(as well as libfreetype and libpng). The first thing to try is ldd
(or the equivalent on OpenBSD). Here is the output on my Fedora Core
6 box:
$ ldd `which rrdtool`
linux-gate.so.1 => (0x00ddf000)
librrd.so.2 => /usr/lib/librrd.so.2 (0x00212000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x05f1f000)
libz.so.1 => /usr/lib/libz.so.1 (0x00d4b000)
libart_lgpl_2.so.2 => /usr/lib/libart_lgpl_2.so.2 (0x006ea000)
libm.so.6 => /lib/libm.so.6 (0x00d03000)
libc.so.6 => /lib/libc.so.6 (0x00bc4000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x05e9d000)
/lib/ld-linux.so.2 (0x001f5000)

> This is the code I am using in my perl script:
> ($cpuavg,$xsize,$ysize) = RRDs::graph(
> '/var/www/htdocs/test/test.png',
> '--start','-900',
> '--end','-300',
> "DEF:test=$rrd_root/$host/$host_cpu.rrd:ds0:AVERAGE",
> "DEF:test2=$rrd_root/$host/$host_cpu.rrd:ds1:AVERAGE",
> 'PRINT:test:AVERAGE:%lf',
> 'PRINT:test2:AVERAGE:%lf');


Try running the equivalent rrdtool graph command at the command-line
(this may not be perfect, but it's close):
rrdtool graph
/var/www/htdocs/test/test.png
--start -900
--end -300
DEF:test=$rrd_root/$host/$host_cpu.rrd:ds0:AVERAGE
DEF:test2=$rrd_root/$host/$host_cpu.rrd:ds1:AVERAGE
PRINT:test:AVERAGE:%lf
PRINT:test2:AVERAGE:%lf

If that shows the same error message, the problem lies with rrdtool, not RRDs.

-Sam

_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:19 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0