<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tequila Fish &#187; mrtg</title>
	<atom:link href="http://www.tequilafish.com/tag/mrtg/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tequilafish.com</link>
	<description>Ran-dumb ramblings of me...</description>
	<lastBuildDate>Thu, 26 Jan 2012 23:30:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>MRTG Error: gd-png:  fatal libpng error: Invalid filter type specified</title>
		<link>http://www.tequilafish.com/2005/02/17/mrtg-error-gd-png-fatal-libpng-error-invalid-filter-type-specified/</link>
		<comments>http://www.tequilafish.com/2005/02/17/mrtg-error-gd-png-fatal-libpng-error-invalid-filter-type-specified/#comments</comments>
		<pubDate>Thu, 17 Feb 2005 18:08:05 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[gd-png]]></category>
		<category><![CDATA[libpng]]></category>
		<category><![CDATA[mrtg]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/?p=2</guid>
		<description><![CDATA[I recently upgraded my MRTG install from v 2.10.13 to 2.11.1, and while the upgrade went fine, I ran into problems running mrtg: [bash] /usr/local/mrtg-2/bin/mrtg /etc/mrtg/mrtg.cfg gd-png: fatal libpng error: Invalid filter type specified gd-png error: setjmp returns error condition gd-png: fatal libpng error: Invalid filter type specified gd-png error: setjmp returns error condition gd-png: [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2005%2F02%2F17%2Fmrtg-error-gd-png-fatal-libpng-error-invalid-filter-type-specified%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2005%2F02%2F17%2Fmrtg-error-gd-png-fatal-libpng-error-invalid-filter-type-specified%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I recently upgraded my MRTG install from v 2.10.13 to 2.11.1, and while the upgrade went fine, I ran into problems running mrtg:<br />
<code>[bash] /usr/local/mrtg-2/bin/mrtg /etc/mrtg/mrtg.cfg<br />
gd-png:  fatal libpng error: Invalid filter type specified<br />
gd-png error: setjmp returns error condition<br />
gd-png:  fatal libpng error: Invalid filter type specified<br />
gd-png error: setjmp returns error condition<br />
gd-png:  fatal libpng error: Invalid filter type specified<br />
gd-png error: setjmp returns error condition<br />
.....</code><br />
I did a thorough Google search and never found a good answer or fix, except for a patch to the MRTG source code, which I didn't find satisfactory.  So it turns out that it was a problem with the PNG libraries.  The machine was running an old Redhat 7.2, and libpng had previously been installed via RPM, with the libpng files from this RPM residing in <tt>/usr/lib</tt>.  Prior to upgrading MRTG I had installed a newer libpng via source, with the new libpng files residing in <tt>/usr/local/lib</tt>.  So the problem was that I had two different versions of libpng installed in different places on the machine, and this was causing the problems.  This was easily fixed by creating symbolic links from the old RPM dir (<tt>/usr/lib</tt>) to the new manually installed dir (<tt>/usr/local/lib</tt>)<br />
<code>[bash] cd /usr/lib<br />
[bash] mv libpng.a libpng.a.old<br />
[bash] ln -s /usr/local/lib/libpng.a libpng.a<br />
[bash] ln -s /usr/local/lib/libpng.so.3.1.2.8 libpng.so.3<br />
[bash] ln -s /usr/local/lib/libpng.so.3 libpng.so</code><br />
Once this library hell was fixed, MRTG went back to operating as expected.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2005/02/17/mrtg-error-gd-png-fatal-libpng-error-invalid-filter-type-specified/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

