<!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> CC librrd_th_la-rrd_thread_safe.lo<br>
In file included from rrd_tool.h:57,<br>
from rrd_thread_safe.c:16:<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>
CCLD librrd_th.la<br>
libtool: link: warning: undefined symbols not allowed in
i686-pc-cygwin shared libraries</tt><br>
<br>
...<br>
<br>
<tt> CCLD 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. 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++ --shared -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/ -lrrd -o
blib/arch/auto/RRDs/RRDs.dll \<br>
/usr/lib/perl5/5.10/i686-cygwin/CORE/cygperl5_10.dll \<br>
<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>