[mrtg] Help with "incompatible libpng version" error on execution

Alex Ames aames at tapeswitch.com
Wed Sep 22 18:24:08 MEST 2004


Greetings.
    I'm hoping somebody on this list will be kind enough to share some 
insight on a problem I'm having with MRTG 2.10.15 on Mandrake Linux 9.1. 
SNMP is already installed, configured and working properly. Following 
the unix install instructions 
(http://people.ee.ethz.ch/~oetiker/webtools/mrtg/mrtg-unix-guide.html), 
I have downloaded and compiled the libraries to the locations listed in 
the instructions.

zlib-1.2.1
libpng-1.2.7
gd-2.0.28

I then run configure as below:
# ./configure --with-gd=/usr/local/src/gd --with-z=/usr/local/src/zlib 
--with-png=/usr/local/src/libpng

The configure output looks normal, and a "make" and "make install" 
appear to work with no problems.
I create my cfg file using cfgmaker, for the switch I'm testing with (a 
3com 3300 series) with no problems.

I then run the following command to test that everything works:
# /usr/local/mrtg-2/bin/mrtg /usr/local/mrtg-2/etc/mrtg.1.cfg

And here's the output: (duplicates removed)

libpng warning: Application was compiled with png.h from libpng-1.2.5
libpng warning: Application  is running with png.c from libpng-1.0.12
gd-png:  fatal libpng error: Incompatible libpng version in application 
and library
ERROR: Skipping webupdates because rateup did not return anything sensible
WARNING: rateup died from Signal 11
 with Exit Value 0 when doing router '10.1.1.250_101'
 Signal was 11, Returncode was 0
#

Why (and from where) is it getting libpng-1.2.5 and libpng-1.0.12 ?!
How can I fix this?

Thanks,
Alex A


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list