<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 9/14/2010 7:57 AM, Tobias Oetiker wrote:
    <blockquote
      cite="mid:alpine.DEB.2.00.1009141657260.13370@sebohet.brgvxre.pu"
      type="cite">
      <pre wrap="">Hi Philip,

Today Philip Peake wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">    rrd_open.c:105: error: 'MAP_FAILED' undeclared (first use in this
    function)
</pre>
      </blockquote>
      <pre wrap="">
</pre>
      <blockquote type="cite">
        <pre wrap="">Anyone successfully built on Cygwin and have any pointers to resolving
these errors
</pre>
      </blockquote>
      <pre wrap="">
try building without mmap support

cheers
tobi

</pre>
    </blockquote>
    <br>
    That gets me a little further. BTW, there are a couple of header
    file where there is a define possible to include sys/mman.h, neither
    seem to have been set by Confgure.<br>
    <br>
    Anyway ... gets much further. Died trying to build tcl bindings.
    Since I am not about to use those, I added the flag to drop those.<br>
    Now it fails trying to build lua bindings. the cause seem to be the
    same:<br>
    <blockquote><tt>&nbsp; CC&nbsp;&nbsp;&nbsp;&nbsp; librrd_th_la-rrd_thread_safe.lo<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_thread_safe.c:16:<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>
        &nbsp; CCLD&nbsp;&nbsp; librrd_th.la<br>
        libtool: link: warning: undefined symbols not allowed in
        i686-pc-cygwin shared libraries</tt><br>
      <br>
      ...<br>
      <br>
      <tt>&nbsp; CCLD&nbsp;&nbsp; rrd.la<br>
        <br>
        *** Warning: This system can not link to static lib archive
        /home/Philip/rrdtool-src/rrdtool-1.4.4/src/.libs/librrd.la.<br>
        *** I have the capability to make that library automatically
        link in when<br>
        *** you link to this library.&nbsp; But I can only do this if you
        have a<br>
        *** shared version of the library, which you do not appear to
        have.<br>
        *** But as you try to build a module library, libtool will still
        create <br>
        *** a static module, that should work as long as the dlopening
        application<br>
        *** is linked with the -dlopen flag to resolve symbols at
        runtime.<br>
        libtool: link: warning: undefined symbols not allowed in
        i686-pc-cygwin shared libraries</tt><br>
      <br>
      ...<br>
      <br>
      <tt>g++&nbsp; --shared&nbsp; -Wl,--enable-auto-import
        -Wl,--export-all-symbols -Wl,--stack,8388608
        -Wl,--enable-auto-image-base -L/usr/local/lib -fstack-protector
        RRDs.o -L../../src/.libs/&nbsp; -lrrd&nbsp; -o
        blib/arch/auto/RRDs/RRDs.dll&nbsp;&nbsp; \<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        /usr/lib/perl5/5.10/i686-cygwin/CORE/cygperl5_10.dll&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
        ../../src/.libs//librrd.a(rrd_graph.o): In function
        `rrd_set_font_desc':<br>
        /home/Philip/rrdtool-src/rrdtool-1.4.4/src/rrd_graph.c:4006:
        undefined reference to `_pango_font_description_from_string'<br>
        ../../src/.libs//librrd.a(rrd_graph.o): In function
        `rrd_graph_options':<br>
        /home/Philip/rrdtool-src/rrdtool-1.4.4/src/rrd_graph.c:4586:
        undefined reference to `_cairo_font_options_set_antialias'<br>
        /home/Philip/rrdtool-src/rrdtool-1.4.4/src/rrd_graph.c:4588:
        undefined reference to `_cairo_font_options_set_hint_style'<br>
        /home/Philip/rrdtool-src/rrdtool-1.4.4/src/rrd_graph.c:4581:
        undefined reference to `_cairo_font_options_set_antialias'<br>
        /home/Philip/rrdtool-src/rrdtool-1.4.4/src/rrd_graph.c:4583:
        undefined reference to `_cairo_font_options_set_hint_style'<br>
        /home/Philip/rrdtool-src/rrdtool-1.4.4/src/rrd_graph.c:4644:
        undefined reference to `_pango_layout_get_context'<br>
        /home/Philip/rrdtool-src/rrdtool-1.4.4/src/rrd_graph.c:4644:
        undefined reference to `_pango_cairo_context_set_font_options'<br>
        /home/Philip/rrdtool-src/rrdtool-1.4.4/src/rrd_graph.c:4645:
        undefined reference to `_pango_layout_context_changed'</tt><br>
      <br>
      ... etc.<br>
    </blockquote>
  </body>
</html>