[rrd-users] Build problem - Cygwin

Philip Peake philip at vogon.net
Tue Sep 14 16:50:52 CEST 2010


 Since the only Cygwin binary seems to be quite old and out of date, I
decided to try building on  Cygwin.

I have (as far as I know at this stage) all the requisite libraries
installed, but don't get quite that far.

In the configure stage I see this warning:

    *Resolve Portability Issues*
    checking if msync with MS_ASYNC updates the files mtime... no
    configure: WARNING: With mmap access, your platform fails to update
    the files
    configure: WARNING: mtime. RRDtool will work around this problem by
    calling utime on each
    configure: WARNING: file it opens for rw access.

Ok ...

Now when compiling I get this error:

      CC     rrd_open.lo
    rrd_open.c:1: warning: -fPIC ignored for target (all code is
    position independent)
    In file included from rrd_tool.h:57,
                     from rrd_open.c:9:
    rrd_getopt.h:35: warning: 'optarg' redeclared without dllimport
    attribute: previous dllimport ignored
    rrd_getopt.h:49: warning: 'optind' redeclared without dllimport
    attribute: previous dllimport ignored
    rrd_getopt.h:54: warning: 'opterr' redeclared without dllimport
    attribute: previous dllimport ignored
    rrd_getopt.h:58: warning: 'optopt' redeclared without dllimport
    attribute: previous dllimport ignored
    rrd_open.c: In function 'rrd_open':
    rrd_open.c:105: error: 'MAP_FAILED' undeclared (first use in this
    function)
    rrd_open.c:105: error: (Each undeclared identifier is reported only once
    rrd_open.c:105: error: for each function it appears in.)
    rrd_open.c:153: error: 'PROT_READ' undeclared (first use in this
    function)
    rrd_open.c:160: error: 'MAP_PRIVATE' undeclared (first use in this
    function)
    rrd_open.c:169: error: 'MAP_SHARED' undeclared (first use in this
    function)
    rrd_open.c:170: error: 'PROT_WRITE' undeclared (first use in this
    function)
    rrd_open.c:248: warning: implicit declaration of function 'mmap'
    rrd_open.c:248: warning: nested extern declaration of 'mmap'
    rrd_open.c:250: warning: assignment makes pointer from integer
    without a cast
    rrd_open.c:376: warning: implicit declaration of function 'munmap'
    rrd_open.c:376: warning: nested extern declaration of 'munmap'
    rrd_open.c:104: warning: unused variable '_page_size'
    rrd_open.c: In function 'rrd_close':
    rrd_open.c:559: warning: implicit declaration of function 'msync'
    rrd_open.c:559: warning: nested extern declaration of 'msync'
    rrd_open.c:559: error: 'MS_ASYNC' undeclared (first use in this
    function)
    make[2]: *** [rrd_open.lo] Error 1
    make[2]: Leaving directory `/home/Philip/rrdtool-src/rrdtool-1.4.4/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/Philip/rrdtool-src/rrdtool-1.4.4'
    make: *** [all] Error 2

Anyone successfully built on Cygwin and have any pointers to resolving
these errors?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20100914/583033fa/attachment-0001.htm 


More information about the rrd-users mailing list