<!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 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> CC 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>
from rrd_open.c:9:<br>
rrd_getopt.h:35: warning: ‘optarg’ redeclared without dllimport
attribute: previous dllimport ignored<br>
rrd_getopt.h:49: warning: ‘optind’ redeclared without dllimport
attribute: previous dllimport ignored<br>
rrd_getopt.h:54: warning: ‘opterr’ redeclared without dllimport
attribute: previous dllimport ignored<br>
rrd_getopt.h:58: warning: ‘optopt’ redeclared without dllimport
attribute: previous dllimport ignored<br>
rrd_open.c: In function ‘rrd_open’:<br>
rrd_open.c:105: error: ‘MAP_FAILED’ 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: ‘PROT_READ’ undeclared (first use in this
function)<br>
rrd_open.c:160: error: ‘MAP_PRIVATE’ undeclared (first use in
this function)<br>
rrd_open.c:169: error: ‘MAP_SHARED’ undeclared (first use in
this function)<br>
rrd_open.c:170: error: ‘PROT_WRITE’ undeclared (first use in
this function)<br>
rrd_open.c:248: warning: implicit declaration of function ‘mmap’<br>
rrd_open.c:248: warning: nested extern declaration of ‘mmap’<br>
rrd_open.c:250: warning: assignment makes pointer from integer
without a cast<br>
rrd_open.c:376: warning: implicit declaration of function
‘munmap’<br>
rrd_open.c:376: warning: nested extern declaration of ‘munmap’<br>
rrd_open.c:104: warning: unused variable ‘_page_size’<br>
rrd_open.c: In function ‘rrd_close’:<br>
rrd_open.c:559: warning: implicit declaration of function
‘msync’<br>
rrd_open.c:559: warning: nested extern declaration of ‘msync’<br>
rrd_open.c:559: error: ‘MS_ASYNC’ 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>