[rrd-users] Build problem - Cygwin

Tobias Oetiker tobi at oetiker.ch
Tue Sep 14 17:55:21 CEST 2010


Hi Philip,

you are using the latest rrdtool version ? maybe even the snapshot?

cheers
tobi

Today Philip Peake wrote:

>  On 9/14/2010 7:57 AM, Tobias Oetiker wrote:
> > Hi Philip,
> >
> > Today Philip Peake wrote:
> >
> >>     rrd_open.c:105: error: 'MAP_FAILED' undeclared (first use in this
> >>     function)
> >> Anyone successfully built on Cygwin and have any pointers to resolving
> >> these errors
> > try building without mmap support
> >
> > cheers
> > tobi
> >
>
> 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.
>
> 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.
> Now it fails trying to build lua bindings. the cause seem to be the same:
>
>       CC     librrd_th_la-rrd_thread_safe.lo
>     In file included from rrd_tool.h:57,
>                      from rrd_thread_safe.c:16:
>     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
>       CCLD   librrd_th.la
>     libtool: link: warning: undefined symbols not allowed in
>     i686-pc-cygwin shared libraries
>
>     ...
>
>       CCLD   rrd.la
>
>     *** Warning: This system can not link to static lib archive
>     /home/Philip/rrdtool-src/rrdtool-1.4.4/src/.libs/librrd.la.
>     *** I have the capability to make that library automatically link in
>     when
>     *** you link to this library.  But I can only do this if you have a
>     *** shared version of the library, which you do not appear to have.
>     *** But as you try to build a module library, libtool will still create
>     *** a static module, that should work as long as the dlopening
>     application
>     *** is linked with the -dlopen flag to resolve symbols at runtime.
>     libtool: link: warning: undefined symbols not allowed in
>     i686-pc-cygwin shared libraries
>
>     ...
>
>     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   \
>
>     /usr/lib/perl5/5.10/i686-cygwin/CORE/cygperl5_10.dll          \
>
>     ../../src/.libs//librrd.a(rrd_graph.o): In function `rrd_set_font_desc':
>     /home/Philip/rrdtool-src/rrdtool-1.4.4/src/rrd_graph.c:4006:
>     undefined reference to `_pango_font_description_from_string'
>     ../../src/.libs//librrd.a(rrd_graph.o): In function `rrd_graph_options':
>     /home/Philip/rrdtool-src/rrdtool-1.4.4/src/rrd_graph.c:4586:
>     undefined reference to `_cairo_font_options_set_antialias'
>     /home/Philip/rrdtool-src/rrdtool-1.4.4/src/rrd_graph.c:4588:
>     undefined reference to `_cairo_font_options_set_hint_style'
>     /home/Philip/rrdtool-src/rrdtool-1.4.4/src/rrd_graph.c:4581:
>     undefined reference to `_cairo_font_options_set_antialias'
>     /home/Philip/rrdtool-src/rrdtool-1.4.4/src/rrd_graph.c:4583:
>     undefined reference to `_cairo_font_options_set_hint_style'
>     /home/Philip/rrdtool-src/rrdtool-1.4.4/src/rrd_graph.c:4644:
>     undefined reference to `_pango_layout_get_context'
>     /home/Philip/rrdtool-src/rrdtool-1.4.4/src/rrd_graph.c:4644:
>     undefined reference to `_pango_cairo_context_set_font_options'
>     /home/Philip/rrdtool-src/rrdtool-1.4.4/src/rrd_graph.c:4645:
>     undefined reference to `_pango_layout_context_changed'
>
>     ... etc.
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900



More information about the rrd-users mailing list