<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Since the only Cygwin binary seems to be quite old and out of date,
    I decided to try building on&nbsp; Cygwin.<br>
    <br>
    I have (as far as I know at this stage) all the requisite libraries
    installed, but don't get quite that far.<br>
    <br>
    In the configure stage I see this warning:<br>
    <blockquote><tt><b>Resolve Portability Issues</b><br>
        checking if msync with MS_ASYNC updates the files mtime... no<br>
        configure: WARNING: With mmap access, your platform fails to
        update the files<br>
        configure: WARNING: mtime. RRDtool will work around this problem
        by calling utime on each<br>
        configure: WARNING: file it opens for rw access.</tt><br>
    </blockquote>
    Ok ...<br>
    <br>
    Now when compiling I get this error:<br>
    <blockquote><tt>&nbsp; CC&nbsp;&nbsp;&nbsp;&nbsp; rrd_open.lo<br>
        rrd_open.c:1: warning: -fPIC ignored for target (all code is
        position independent)<br>
        In file included from rrd_tool.h:57,<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from rrd_open.c:9:<br>
        rrd_getopt.h:35: warning: &#8216;optarg&#8217; redeclared without dllimport
        attribute: previous dllimport ignored<br>
        rrd_getopt.h:49: warning: &#8216;optind&#8217; redeclared without dllimport
        attribute: previous dllimport ignored<br>
        rrd_getopt.h:54: warning: &#8216;opterr&#8217; redeclared without dllimport
        attribute: previous dllimport ignored<br>
        rrd_getopt.h:58: warning: &#8216;optopt&#8217; redeclared without dllimport
        attribute: previous dllimport ignored<br>
        rrd_open.c: In function &#8216;rrd_open&#8217;:<br>
        rrd_open.c:105: error: &#8216;MAP_FAILED&#8217; undeclared (first use in
        this function)<br>
        rrd_open.c:105: error: (Each undeclared identifier is reported
        only once<br>
        rrd_open.c:105: error: for each function it appears in.)<br>
        rrd_open.c:153: error: &#8216;PROT_READ&#8217; undeclared (first use in this
        function)<br>
        rrd_open.c:160: error: &#8216;MAP_PRIVATE&#8217; undeclared (first use in
        this function)<br>
        rrd_open.c:169: error: &#8216;MAP_SHARED&#8217; undeclared (first use in
        this function)<br>
        rrd_open.c:170: error: &#8216;PROT_WRITE&#8217; undeclared (first use in
        this function)<br>
        rrd_open.c:248: warning: implicit declaration of function &#8216;mmap&#8217;<br>
        rrd_open.c:248: warning: nested extern declaration of &#8216;mmap&#8217;<br>
        rrd_open.c:250: warning: assignment makes pointer from integer
        without a cast<br>
        rrd_open.c:376: warning: implicit declaration of function
        &#8216;munmap&#8217;<br>
        rrd_open.c:376: warning: nested extern declaration of &#8216;munmap&#8217;<br>
        rrd_open.c:104: warning: unused variable &#8216;_page_size&#8217;<br>
        rrd_open.c: In function &#8216;rrd_close&#8217;:<br>
        rrd_open.c:559: warning: implicit declaration of function
        &#8216;msync&#8217;<br>
        rrd_open.c:559: warning: nested extern declaration of &#8216;msync&#8217;<br>
        rrd_open.c:559: error: &#8216;MS_ASYNC&#8217; undeclared (first use in this
        function)<br>
        make[2]: *** [rrd_open.lo] Error 1<br>
        make[2]: Leaving directory
        `/home/Philip/rrdtool-src/rrdtool-1.4.4/src'<br>
        make[1]: *** [all-recursive] Error 1<br>
        make[1]: Leaving directory
        `/home/Philip/rrdtool-src/rrdtool-1.4.4'<br>
        make: *** [all] Error 2</tt><br>
    </blockquote>
    Anyone successfully built on Cygwin and have any pointers to
    resolving these errors?<br>
  </body>
</html>