RRDTool && libpng12.so.0 ??

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
groenleer
Posts: 5
Joined: Thu May 07, 2009 1:36 am

RRDTool && libpng12.so.0 ??

Post by groenleer »

Hi Folks,

I am having an strange problem I can't solv.
I am running Debian on a VPS.

The following command doesn't work:

Code: Select all

/usr/bin/rrdtool create \
/home/cacti/domains/monitoring/public_html/rra/localhost_proc_7.rrd \
--step 300  \
DS:proc:GAUGE:600:0:1000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
The result is:
/usr/bin/rrdtool: /usr/local/lib/libpng12.so.0: no version information available (required by /usr/lib/librrd.so.2)

Code: Select all

server1:/usr/lib# rrdtool -?
rrdtool: /usr/local/lib/libpng12.so.0: no version information available (required by /usr/lib/librrd.so.2)
RRDtool 1.2.15  Copyright 1997-2006 by Tobias Oetiker <tobi@oetiker.ch>
               Compiled Dec 14 2006 22:05:35

Usage: rrdtool [options] command command_options

Valid commands: create, update, updatev, graph, dump, restore,
                last, first, info, fetch, tune, resize, xport

RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)

For more information read the RRD manpages

Code: Select all

server1:/usr/lib# ld librrd.so.2
ld: warning: cannot find entry symbol _start; not setting start address
librrd.so.2: undefined reference to `png_destroy_write_struct@PNG12_0'
librrd.so.2: undefined reference to `png_write_end@PNG12_0'
librrd.so.2: undefined reference to `png_set_compression_level@PNG12_0'
librrd.so.2: undefined reference to `png_destroy_read_struct@PNG12_0'
librrd.so.2: undefined reference to `png_create_read_struct@PNG12_0'
librrd.so.2: undefined reference to `png_read_info@PNG12_0'
librrd.so.2: undefined reference to `png_create_write_struct@PNG12_0'
librrd.so.2: undefined reference to `png_set_IHDR@PNG12_0'
librrd.so.2: undefined reference to `png_set_text@PNG12_0'
librrd.so.2: undefined reference to `png_set_filter@PNG12_0'
librrd.so.2: undefined reference to `png_create_info_struct@PNG12_0'
librrd.so.2: undefined reference to `png_get_image_height@PNG12_0'
librrd.so.2: undefined reference to `png_init_io@PNG12_0'
librrd.so.2: undefined reference to `png_write_info@PNG12_0'
librrd.so.2: undefined reference to `png_get_image_width@PNG12_0'
librrd.so.2: undefined reference to `png_malloc@PNG12_0'
librrd.so.2: undefined reference to `png_write_image@PNG12_0'
librrd.so.2: undefined reference to `png_free@PNG12_0'

Code: Select all

erver1:/usr/local/lib# ld libpng12.so.0 
ld: warning: cannot find entry symbol _start; not setting start address
libpng12.so.0: undefined reference to `deflate'
libpng12.so.0: undefined reference to `inflate'
libpng12.so.0: undefined reference to `inflateInit_'
libpng12.so.0: undefined reference to `crc32'
libpng12.so.0: undefined reference to `pow'
libpng12.so.0: undefined reference to `deflateInit2_'
libpng12.so.0: undefined reference to `inflateReset'
libpng12.so.0: undefined reference to `deflateReset'
libpng12.so.0: undefined reference to `inflateEnd'
libpng12.so.0: undefined reference to `deflateEnd'
server1:/usr/local/lib# ls -ali libpng*
2998537 -rw-r--r-- 1 root staff 283452 2008-04-07 23:02 libpng12.a
2998544 lrwxrwxrwx 1 root staff     13 2008-04-07 23:02 libpng12.so -> libpng12.so.0
2998543 lrwxrwxrwx 1 root staff     20 2008-04-07 23:02 libpng12.so.0 -> libpng12.so.0.1.2.25
2998539 -rwxr-xr-x 1 root staff 258828 2008-04-07 23:02 libpng12.so.0.1.2.25
2998538 lrwxrwxrwx 1 root staff     10 2008-04-07 23:02 libpng.a -> libpng12.a
2998542 lrwxrwxrwx 1 root staff     11 2008-04-07 23:02 libpng.so -> libpng.so.3
2998541 lrwxrwxrwx 1 root staff     18 2008-04-07 23:02 libpng.so.3 -> libpng.so.3.1.2.25
2998540 -rwxr-xr-x 1 root staff 258828 2008-04-07 23:02 libpng.so.3.1.2.25
I did install libpng by package with
apt-get install libpng3

Does any one have any clue for me?


Edit:

Some more info about libgd.so

Code: Select all

server1:/usr/local/lib# ld libgd.so
ld: warning: cannot find entry symbol _start; not setting start address
server1:/usr/local/lib# ls -ali libg*
2998555 -rw-r--r-- 1 root staff 566004 2008-04-07 15:02 libgd.a
2998553 -rwxr-xr-x 1 root staff    818 2008-04-07 15:02 libgd.la
2998552 lrwxrwxrwx 1 root staff     14 2008-04-07 15:02 libgd.so -> libgd.so.2.0.0
2998551 lrwxrwxrwx 1 root staff     14 2008-04-07 15:02 libgd.so.2 -> libgd.so.2.0.0
2998550 -rwxr-xr-x 1 root staff 603768 2008-04-07 15:02 libgd.so.2.0.0
Some more ldd info:

Code: Select all

server1:/usr/local/lib# ldd /usr/bin/rrdtool 
/usr/bin/rrdtool: /usr/local/lib/libpng12.so.0: no version information available (required by /usr/lib/librrd.so.2)
        linux-gate.so.1 =>  (0xb7fe4000)
        librrd.so.2 => /usr/lib/librrd.so.2 (0xb7f95000)
        libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0xb7f27000)
        libpng12.so.0 => /usr/local/lib/libpng12.so.0 (0xb7eeb000)
        libz.so.1 => /usr/local/lib/libz.so.1 (0xb7ed7000)
        libart_lgpl_2.so.2 => /usr/lib/libart_lgpl_2.so.2 (0xb7ec1000)
        libm.so.6 => /lib/tls/libm.so.6 (0xb7e9c000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7d6a000)
        /lib/ld-linux.so.2 (0xb7fe5000)

Code: Select all

server1:/usr/local/lib# ldd ../../lib/librrd.so.2
../../lib/librrd.so.2: /usr/local/lib/libpng12.so.0: no version information available (required by ../../lib/librrd.so.2)
        linux-gate.so.1 =>  (0xb7fb1000)
        libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0xb7ef3000)
        libpng12.so.0 => /usr/local/lib/libpng12.so.0 (0xb7eb8000)
        libz.so.1 => /usr/local/lib/libz.so.1 (0xb7ea4000)
        libart_lgpl_2.so.2 => /usr/lib/libart_lgpl_2.so.2 (0xb7e8e000)
        libm.so.6 => /lib/tls/libm.so.6 (0xb7e69000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7d37000)
        /lib/ld-linux.so.2 (0x80000000)
groenleer
Posts: 5
Joined: Thu May 07, 2009 1:36 am

Post by groenleer »

Someone just mentioned that RRDTool with this message still *CAN* work and i better should check my poller.

After running the poller by hand my graphs appeard. So my poller wasn't running. I have fixed this by suplying the fullpath towards the PHP executable file.

Now the poller runs on-time and my graphs are working.
Markoetie
Posts: 11
Joined: Wed Nov 05, 2008 8:35 am

Post by Markoetie »

I had the exact same problem and fixed it by compiling libpng from source.

http://libpng.sourceforge.net/index.html
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests