Hi Philip, Today Philip Peake wrote:
> Well, the dependencies should be explicit in the makefile - no? te dependencies are, but normally the generated library (librrd.so) knows what its dependencies are, so when you link -lrrd you do not need to link the other dependencies as well because librrd will pull them in automatically. > Similarly, the choice between the rrd and rrd_th libs isn't one that I > make, its the configure/make process that determines that. > (I don't even know the difference between the two). rrd_th is for multithreaded use ... but you are right, in the tcl bindings, they actually do use rrd_th, so this should be fine ... > Is the Cygwin build config something you did, or was it contributed?? this was contributed, or I would be better able to help you ... I do not realy use windows for server tasks, so my experiance is rather anectotal in the area ... but if you want to sponsor a project, I will be glad to conquer the beast for you :-) cheers tobi > Philip > > ------ > On 9/14/2010 9:26 PM, Tobias Oetiker wrote: > > Hi Philip, > > > > not sure, but could it be that in cygwin mode, somehow the > > dependencies for 3rd party libraries get lost ? in the exammple > > above, -lrrd_th (although I would actually use -lrrd) should know > > that it has to pull in pango, cairo, freetype, libxml ... > > > > cheers > > tobi > > > > > > Yesterday Philip Peake wrote: > > > >> On 9/14/2010 9:17 AM, Tobias Oetiker wrote: > >>> Hi Philip, > >>> > >>> Today Philip Peake wrote: > >>> > >>>> 1.4.4 - downloaded from your website this morning. > >>> Try the 1.4 snapshot ... > >>> > >>> > >> Trying with rrdtool-1.4-svn-snap.tar.gz rrdtool-1.4.4.002129 > >> > >> Basic first attempt, > >> > >> ./Configure > >> make > >> > >> Same as stable release - barfs on mmap defines. > >> Notice that configure doesn't explicitly check for sys/mman.h > >> > >> Next try with --disable-mmap (and --prefix=/usr/local --- I can't see > >> that upsetting much) > >> > >> ------------ > >> > >> Same result - dies with unresolved symbols when building bindings (tcl > >> is first). > >> > >> Its trying to build a shared library when it fails: > >> > >> gcc -shared -g -O2 -D_GNU_SOURCE -fno-strict-aliasing -Wall > >> -std=gnu99 -pedantic -Wundef -Wshadow -Wpointer-arith -Wcast-align > >> -Wmissing-prototypes -Wmissing-declarations -Wnested-externs > >> -Winline -Wold-style-definition -W -DDLL_EXPORT -DPIC > >> -L../../src/.libs -L../../src -L/usr/local/lib tclrrd.o -o > >> tclrrd1.4.4.002129.dll -lrrd_th -lm -ltclstub84 > >> ../../src/.libs/librrd_th.a(librrd_th_la-rrd_graph.o): In function > >> `rrd_set_font_desc': > >> /home/Philip/rrdtool-src/rrdtool-1.4.4.002129/src/rrd_graph.c:4016: > >> undefined reference to `_pango_font_description_free' > >> /home/Philip/rrdtool-src/rrdtool-1.4.4.002129/src/rrd_graph.c:4017: > >> undefined reference to `_pango_font_description_from_string' > >> ../../src/.libs/librrd_th.a(librrd_th_la-rrd_graph.o): In function > >> `rrd_graph_options': > >> /home/Philip/rrdtool-src/rrdtool-1.4.4.002129/src/rrd_graph.c:4599: > >> undefined reference to `_cairo_font_options_set_antialias' > >> /home/Philip/rrdtool-src/rrdtool-1.4.4.002129/src/rrd_graph.c:4601: > >> undefined reference to `_cairo_font_options_set_hint_style' > >> /home/Philip/rrdtool-src/rrdtool-1.4.4.002129/src/rrd_graph.c:4594: > >> undefined reference to `_cairo_font_options_set_antialias' > >> /home/Philip/rrdtool-src/rrdtool-1.4.4.002129/src/rrd_graph.c:4596: > >> undefined reference to `_cairo_font_options_set_hint_style' > >> /home/Philip/rrdtool-src/rrdtool-1.4.4.002129/src/rrd_graph.c:4657: > >> undefined reference to `_pango_layout_get_context' > >> /home/Philip/rrdtool-src/rrdtool-1.4.4.002129/src/rrd_graph.c:4657: > >> undefined reference to `_pango_cairo_context_set_font_options' > >> /home/Philip/rrdtool-src/rrdtool-1.4.4.002129/src/rrd_graph.c:4658: > >> undefined reference to `_pango_layout_context_changed' > >> ../../src/.libs/librrd_th.a(librrd_th_la-rrd_graph.o): In function > >> `rrd_graph_init': > >> /home/Philip/rrdtool-src/rrdtool-1.4.4.002129/src/rrd_graph.c:4047: > >> undefined reference to `_cairo_font_options_create' > >> /home/Philip/rrdtool-src/rrdtool-1.4.4.002129/src/rrd_graph.c:4105: > >> undefined reference to `_cairo_image_surface_create' > >> /home/Philip/rrdtool-src/rrdtool-1.4.4.002129/src/rrd_graph.c:4106: > >> undefined reference to `_cairo_create' > >> /home/Philip/rrdtool-src/rrdtool-1.4.4.002129/src/rrd_graph.c:4118: > >> undefined reference to `_pango_cairo_font_map_create_context' > >> /home/Philip/rrdtool-src/rrdtool-1.4.4.002129/src/rrd_graph.c:4120: > >> undefined reference to `_pango_cairo_context_set_resolution' > >> /home/Philip/rrdtool-src/rrdtool-1.4.4.002129/src/rrd_graph.c:4122: > >> undefined reference to `_pango_cairo_update_context' > >> /home/Philip/rrdtool-src/rrdtool-1.4.4.002129/src/rrd_graph.c:4124: > >> undefined reference to `_pango_layout_new' > >> /home/Philip/rrdtool-src/rrdtool-1.4.4.002129/src/rrd_graph.c:4125: > >> undefined reference to `_g_object_unref' > >> > >> > > -- Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland http://it.oetiker.ch [email protected] ++41 62 775 9902 / sb: -9900 _______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
