[rrd-developers] Building rrdtool v1.3.8 on win32

Tobias Oetiker tobi at oetiker.ch
Sun Jul 5 18:48:30 CEST 2009


Hi Barrie,

Today Barrie wrote:

> Hi Tobi,
>
> I have a script that does the following.
>
>  * creates and populates the RRD with test data - works OK
> * produces a png graph - works OK
> * extracts the RRD data to an xml file - works OK
> * creates a new RRD from the XML - works OK
> * produces a png graph from the new RRD - works OK
> * fetches a number of data points from the RRD - works OK

do the errors only occure on the rrds created by rrd_restore ? this
would indicate that there is still a problem with rrd_restore on
windows ...

> * returns the date of the first data sample in RRD and the new RRD - fails
> with an error like ERROR: 'test.rrd' is too small (should be 5676 bytes)
> * returns the date of the last data sample in RRD and the new RRD - fails with
> an error like ERROR: 'test.rrd' is too small (should be 5676 bytes)
> * extract header information from the RRD - fails with an error like ERROR:
> 'test.rrd' is too small (should be 5676 bytes)
>
> This is not a comprehensive test. It just tests the functions I use. I have
> seen these errors in the forums, but I haven't looked to deep as yet.
>
> Next I'll try and get the ruby bindings to compile and document the win32
> build steps.
>
> Cheers, Barrie
>
>
>
> Tobias Oetiker wrote:
> > Today Barrie0482 wrote:
> >
> > I found this
> >
> > #ifdef WIN32
> > /* Gross Hack Alert */
> > #if _MSC_VER < 1300
> > #define strtoll(p, e, b) ((*(e) = (char*)(p) + (((b) == 10) ? strspn((p),
> > "0123456789") : 0)), _atoi64(p))
> > #else
> > #define strtoll(p, e, b) _strtoi64(p, e, b)
> > #endif
> >
> > cheers
> > tobi
> >
> >
> > > Hi Tobi,
> > >
> > > I am using Microsoft's Visual C++ 2008 Express edition. I doesn't seem to
> > > support strtoll.
> > >
> > > 1>..\src\rrd_restore.c(136) : error C3861: 'strtoll': identifier not found
> > >
> > > I'm looking to see if I can find a workaround.
> > >
> > > Cheers, Barrie
> > >
> > >
> > >
> > >
> > > oetiker wrote:
> > >
> > > > would the following patch work for you too:
> > > >
> > > > Index: rrd_restore.c
> > > > ===================================================================
> > > > --- rrd_restore.c       (revision 1801)
> > > > +++ rrd_restore.c       (working copy)
> > > >
> > > >
> > > >
> > >
> >
> >   ------------------------------------------------------------------------
> >
> >
> > No virus found in this incoming message.
> > Checked by AVG - www.avg.com Version: 8.5.375 / Virus Database:
> > 270.13.3/2217 - Release Date: 07/03/09 18:11:00
> >
> >
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900



More information about the rrd-developers mailing list