Hi,<br><br>I'm using rrd to make simple graphics (no perl, no ruby, no python, just like the first example in the Alex van den Bogaerdt's tutorial) successfuly in PowerPC/Linux, but now I'm facing troubles to reduce the total size of (libpng+lifreetype+libart+librrd).
<br><br>I tried:<br>-strip-unneeded;<br>-static/dynamic libs use;<br>-disable of python, ruby, perl;<br><br>I have a 769 kb executable file... can I do something else?<br><br>Thanks.<br><br>Eduardo Witter<br><br><div><span class="gmail_quote">
2007/2/16, <a href="mailto:rrd-users-request@lists.oetiker.ch">rrd-users-request@lists.oetiker.ch</a> <<a href="mailto:rrd-users-request@lists.oetiker.ch">rrd-users-request@lists.oetiker.ch</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Send rrd-users mailing list submissions to<br> <a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br> <a href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users">
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a><br>or, via email, send a message with subject or body 'help' to<br> <a href="mailto:rrd-users-request@lists.oetiker.ch">rrd-users-request@lists.oetiker.ch
</a><br><br>You can reach the person managing the list at<br> <a href="mailto:rrd-users-owner@lists.oetiker.ch">rrd-users-owner@lists.oetiker.ch</a><br><br>When replying, please edit your Subject line so it is more specific
<br>than "Re: Contents of rrd-users digest..."<br><br><br>Today's Topics:<br><br> 1. Re: setting last_update (Alex van den Bogaerdt)<br> 2. Re: setting last_update (Dan Langille)<br> 3. Call for help: Windows developer trying to get started...
<br> (David Taylor)<br> 4. Re: setting last_update (Alex van den Bogaerdt)<br> 5. Re: Call for help: Windows developer trying to getstarted...<br> (Mike Johnson)<br><br><br>----------------------------------------------------------------------
<br><br>Message: 1<br>Date: Thu, 15 Feb 2007 16:53:45 +0100<br>From: Alex van den Bogaerdt <<a href="mailto:alex@ergens.op.het.net">alex@ergens.op.het.net</a>><br>Subject: Re: [rrd-users] setting last_update<br>To:
<a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>Message-ID: <<a href="mailto:20070215155345.GD1276@ergens.op.het.net">20070215155345.GD1276@ergens.op.het.net</a>><br>Content-Type: text/plain; charset=us-ascii
<br><br>On Thu, Feb 15, 2007 at 10:48:56AM -0500, Dan Langille wrote:<br><br>> > You could try a much more simple case as well:<br>> ><br>> > rrdtool create test.rrd DS:x:GAUGE:600:U:U RRA:AVERAGE:0:1:5<br>
> > rrdtool dump test.rrd<br>><br>> That looks OK<br><br>> # rrdtool dump test.rrd | less<br>> <!-- Round Robin Database Dump --><rrd> <version> 0003 </version><br>> <step> 300 </step> <!-- Seconds -->
<br>> <lastupdate> 1171554437 </lastupdate> <!-- 2007-02-15<br>> 07:47:17 PST --><br><br><br>Hmmm....<br><br>Try adding "--start=0". Perhaps it isn't as harmless as it looks.
<br><br>If that's not the problem, perhaps you can find out what is ?<br><br>> Should this be moved to the developers list?<br><br>Maybe, maybe not. Users can debug problems, so I don't think<br>it is off topic here and now.
<br><br>--<br>Alex van den Bogaerdt<br><a href="http://www.vandenbogaerdt.nl/rrdtool/">http://www.vandenbogaerdt.nl/rrdtool/</a><br><br><br><br>------------------------------<br><br>Message: 2<br>Date: Thu, 15 Feb 2007 11:27:52 -0500
<br>From: "Dan Langille" <<a href="mailto:dan@langille.org">dan@langille.org</a>><br>Subject: Re: [rrd-users] setting last_update<br>To: Alex van den Bogaerdt <<a href="mailto:alex@ergens.op.het.net">alex@ergens.op.het.net
</a>><br>Cc: <a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>Message-ID: <<a href="mailto:45D443B8.24634.33257451@dan.langille.org">45D443B8.24634.33257451@dan.langille.org</a>><br>Content-Type: text/plain; charset=US-ASCII
<br><br>On 15 Feb 2007 at 16:53, Alex van den Bogaerdt wrote:<br><br>> On Thu, Feb 15, 2007 at 10:48:56AM -0500, Dan Langille wrote:<br>><br>> > > You could try a much more simple case as well:<br>> > >
<br>> > > rrdtool create test.rrd DS:x:GAUGE:600:U:U RRA:AVERAGE:0:1:5<br>> > > rrdtool dump test.rrd<br>> ><br>> > That looks OK<br>><br>> > # rrdtool dump test.rrd | less<br>> > <!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
<br>> > <step> 300 </step> <!-- Seconds --><br>> > <lastupdate> 1171554437 </lastupdate> <!-- 2007-02-15<br>> > 07:47:17 PST --><br>><br>><br>> Hmmm....
<br>><br>> Try adding "--start=0". Perhaps it isn't as harmless as it looks.<br><br>Well, you are correct:<br><br>[dan@supernews:~/tmp] $ rm test.rrd<br>[dan@supernews:~/tmp] $ rrdtool create test.rrd
--start=0<br>DS:x:GAUGE:600:U:U RRA:AVERAGE:0:1:5<br>[dan@supernews:~/tmp] $ rrdtool dump test.rrd | head<br><!-- Round Robin Database Dump --><rrd> <version> 0003 </version><br> <step> 300 </step> <!-- Seconds -->
<br> <lastupdate> 944503488000 </lastupdate> <!-- 31900-02-15<br>00:00:00 PST --><br><br> <ds><br> <name> x </name><br> <type> GAUGE </type>
<br> <minimal_heartbeat> 600 </minimal_heartbeat><br> <min> NaN </min><br> <max> NaN </max><br>[dan@supernews:~/tmp] $<br><br><br><br>--<br>
Dan Langille : Software Developer looking for work<br>my resume: <a href="http://www.freebsddiary.org/dan_langille.php">http://www.freebsddiary.org/dan_langille.php</a><br>PGCon - The PostgreSQL Conference - <a href="http://www.pgcon.org/">
http://www.pgcon.org/</a><br><br><br><br><br>------------------------------<br><br>Message: 3<br>Date: Thu, 15 Feb 2007 11:07:42 -0800<br>From: David Taylor <<a href="mailto:david.taylor@sl.com">david.taylor@sl.com</a>
><br>Subject: [rrd-users] Call for help: Windows developer trying to get<br> started...<br>To: <a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>Message-ID: <<a href="mailto:45D4AF7E.40407@sl.com">
45D4AF7E.40407@sl.com</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Hello folks,<br><br>I'm pretty sure that this is a standard message that goes out once in a<br>while and apologize if I have missed some obvious resource.
<br><br>For all the best reasons I am trying to get started with RRDTool. As a<br>developer I am familiar with C/C++ and my preferred Windows development<br>environment is Visual Studio 2005.<br><br>If possible I would like to get started without having to build RRDTool
<br>itself.<br><br>Our intention is to integrate RRDTool with a Windows-based and<br>Java-based proprietary solution.<br><br>I have looked over the material on the web site but there seems to be a<br>lot of stuff that suggests that the preferred RRDTool environment is Linux.
<br><br>Please would someone point me at the method of installing RRDTool and<br>setting up the necessary environment variables, libraries and such like<br>on 32 bit Windows XP SP2?<br><br>Thanks in advance.<br><br>David<br>
--<br><br>David W. Taylor<br>Developer | SL Corporation | <a href="http://www.sl.com">http://www.sl.com</a><br><br><a href="mailto:david.taylor@sl.com">david.taylor@sl.com</a> <mailto:<a href="mailto:david.taylor@sl.com">
david.taylor@sl.com</a>> | Tel: +1.415.927.8555 | Fax: +1.415.927.8401<br><br>------------------------------------------------------------------------<br><br>Email communication may contain privileged or confidential information
<br>proprietary to SL Corporation. If you have received this communication<br>in error, we ask that you advise the sender by reply e-mail and<br>immediately delete the message and any attachments without copying or<br>disclosing the contents.
<br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://lists.oetiker.ch/pipermail/rrd-users/attachments/20070215/0c228c72/attachment.html">http://lists.oetiker.ch/pipermail/rrd-users/attachments/20070215/0c228c72/attachment.html
</a><br><br>------------------------------<br><br>Message: 4<br>Date: Fri, 16 Feb 2007 04:24:28 +0100<br>From: Alex van den Bogaerdt <<a href="mailto:alex@ergens.op.het.net">alex@ergens.op.het.net</a>><br>Subject: Re: [rrd-users] setting last_update
<br>To: <a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>Message-ID: <<a href="mailto:20070216032428.GH1276@ergens.op.het.net">20070216032428.GH1276@ergens.op.het.net</a>><br>Content-Type: text/plain; charset=us-ascii
<br><br>On Thu, Feb 15, 2007 at 11:27:52AM -0500, Dan Langille wrote:<br><br>> > Try adding "--start=0". Perhaps it isn't as harmless as it looks.<br>><br>> Well, you are correct:<br>><br>> [
dan@supernews:~/tmp] $ rm test.rrd<br>> [dan@supernews:~/tmp] $ rrdtool create test.rrd --start=0<br>> DS:x:GAUGE:600:U:U RRA:AVERAGE:0:1:5<br>> [dan@supernews:~/tmp] $ rrdtool dump test.rrd | head<br>> <!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
<br>> <step> 300 </step> <!-- Seconds --><br>> <lastupdate> 944503488000 </lastupdate> <!-- 31900-02-15<br>> 00:00:00 PST --><br><br><br>I don't know what exactly is going wrong, and why it does not go wrong
<br>on 32-bit systems, but the following patch seems to fix the problem.<br><br>I currently have no source unzipped, could someone on 32-bit please<br>verify that my patch does not break rrdtool ?<br><br><br>--- rrdtool-1.2.19
/src/parsetime.c.orig Thu Feb 15 22:15:36 2007<br>+++ rrdtool-1.2.19/src/parsetime.c Thu Feb 15 22:16:57 2007<br>@@ -850,7 +850,7 @@<br> if ( ptv->tm.tm_hour == 30 ){<br> ptv->tm.tm_hour
= hour_sv;<br> }<br>- if ( ptv->tm.tm_hour == 30000 ){<br>+ if ( ptv->tm.tm_year == 30000 ){<br> ptv->tm.tm_year = year_sv;<br> }<br> };
<br><br><br>Thanks in advance.<br>--<br>Alex van den Bogaerdt<br><a href="http://www.vandenbogaerdt.nl/rrdtool/">http://www.vandenbogaerdt.nl/rrdtool/</a><br><br><br><br>------------------------------<br><br>Message: 5<br>
Date: Fri, 16 Feb 2007 13:01:51 -0000<br>From: "Mike Johnson" <<a href="mailto:mike@quick.co.jp">mike@quick.co.jp</a>><br>Subject: Re: [rrd-users] Call for help: Windows developer trying to<br> getstarted...
<br>To: <<a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a>><br>Message-ID: <<a href="mailto:001301c751ca$a4076460$33e018ac@qcl.quick.co.jp">001301c751ca$a4076460$33e018ac@qcl.quick.co.jp</a>
><br>Content-Type: text/plain; charset="us-ascii"<br><br>I started trying to link to RRDtool, but even trying to compile it for<br>Windows is very difficult.<br><br><br><br>After wasting quite a lot of time I gave that up and just called it as an
<br>external application passing in the command line. I also switched to using<br>C# and .Net 2 as well. It does not seem to be that much of an overhead, and<br>I can buffer data in my application to cut down on the number of calls to
<br>RRDtool.<br><br><br><br>I think there is a lot to learn in the calls to rrdtool and getting an<br>application working, without the extra work of trying to compile and/or link<br>to it when it's almost undocumented.
<br><br><br><br>I'm using version 1.2.15, which is the latest windows binary I could find.<br><br><br><br>The only problem I've had is with graphs, when re-using the output file name<br>sometimes the file remains locked even when the graph is no longer
<br>displayed, so I have a small pool temporary filenames.<br><br><br><br><br><br>public static void CallRRDTool(string cmd)<br><br>{<br><br> lock (sync) // rrdtool may not be thread safe<br><br> {<br><br> Process rrdtool = new Process();
<br><br> rrdtool.StartInfo.FileName = "RRDTool.exe";<br><br> rrdtool.StartInfo.CreateNoWindow = true;<br><br> rrdtool.StartInfo.UseShellExecute = false;<br><br> rrdtool.StartInfo.RedirectStandardError
= true;<br><br> rrdtool.StartInfo.RedirectStandardOutput = true;<br><br> rrdtool.StartInfo.Arguments = cmd;<br><br><br><br> rrdtool.Start();<br><br> rrdtool.WaitForExit(2000);<br><br><br><br> string output =
rrdtool.StandardOutput.ReadToEnd().Trim();<br><br> if (output.Length != 0)<br><br> {<br><br> logmsg("RRDtool Stdout: " + output);<br><br> logmsg("RRDtool Cmd: " + cmd);<br><br>
}<br><br> output = rrdtool.StandardError.ReadToEnd().Trim();<br><br> if (output.Length != 0)<br><br> {<br><br> logmsg("RRDtool Stderr: " + output);<br><br> logmsg("RRDtool Cmd: " + cmd);
<br><br> }<br><br> }<br><br>}<br><br><br><br><br><br>-----Original Message-----<br>From: <a href="mailto:rrd-users-bounces@lists.oetiker.ch">rrd-users-bounces@lists.oetiker.ch</a><br>[mailto:<a href="mailto:rrd-users-bounces@lists.oetiker.ch">
rrd-users-bounces@lists.oetiker.ch</a>] On Behalf Of David Taylor<br>Sent: 15 February 2007 19:08<br>To: <a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>Subject: [rrd-users] Call for help: Windows developer trying to
<br>getstarted...<br><br><br><br>Hello folks,<br><br>I'm pretty sure that this is a standard message that goes out once in a<br>while and apologize if I have missed some obvious resource.<br><br>For all the best reasons I am trying to get started with RRDTool. As a
<br>developer I am familiar with C/C++ and my preferred Windows development<br>environment is Visual Studio 2005.<br><br>If possible I would like to get started without having to build RRDTool<br>itself.<br><br>Our intention is to integrate RRDTool with a Windows-based and Java-based
<br>proprietary solution.<br><br>I have looked over the material on the web site but there seems to be a lot<br>of stuff that suggests that the preferred RRDTool environment is Linux.<br><br>Please would someone point me at the method of installing RRDTool and
<br>setting up the necessary environment variables, libraries and such like on<br>32 bit Windows XP SP2?<br><br>Thanks in advance.<br><br>David<br><br>--<br><br>David W. Taylor<br>Developer | SL Corporation | <a href="http://www.sl.com">
http://www.sl.com</a><br><a href="mailto:david.taylor@sl.com">david.taylor@sl.com</a> | Tel: +1.415.927.8555 | Fax: +1.415.927.8401<br> _____<br><br><br>Email communication may contain privileged or confidential information
<br>proprietary to SL Corporation. If you have received this communication in<br>error, we ask that you advise the sender by reply e-mail and immediately<br>delete the message and any attachments without copying or disclosing the
<br>contents.<br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://lists.oetiker.ch/pipermail/rrd-users/attachments/20070216/6ca4686e/attachment.htm">http://lists.oetiker.ch/pipermail/rrd-users/attachments/20070216/6ca4686e/attachment.htm
</a><br><br>------------------------------<br><br>_______________________________________________<br>rrd-users mailing list<br><a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br><a href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users">
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a><br><br><br>End of rrd-users Digest, Vol 2, Issue 11<br>****************************************<br></blockquote></div><br><br clear="all"><br>-- <br>Eduardo Witter