<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3354" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=609580822-28072008><FONT face=Arial size=2>I've been trying to
build rrdtool-1.3.0 on a couple of machines, but I'm not having a lot of
luck. After getting various tools and libraries installed
(like Cairo and Pango), I finally got to the "configure; make; make
install" steps. I used the following (annotated) configure command to
setup the build:</FONT></SPAN></DIV>
<DIV><SPAN class=609580822-28072008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=609580822-28072008><FONT face=Arial size=2> ./configure
\</FONT></SPAN></DIV>
<DIV><SPAN class=609580822-28072008><FONT face=Arial size=2>
--prefix=/my/special/dir
\ (I use a
special directory structure for my tools)</FONT></SPAN></DIV>
<DIV><SPAN class=609580822-28072008><FONT face=Arial
size=2> --enable-static-programs
\ (I want rrdtool to
work on systems that have not been setup)</FONT></SPAN></DIV>
<DIV><SPAN class=609580822-28072008><FONT face=Arial size=2>
--disable-ruby
\ (I
don't have Ruby)</FONT></SPAN></DIV>
<DIV><SPAN class=609580822-28072008><FONT face=Arial size=2>
--disable-tcl
(I don't have Tcl)</FONT></SPAN></DIV>
<DIV><SPAN class=609580822-28072008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=609580822-28072008><FONT face=Arial size=2>This configure
seemed to work, so I tried to "make" it. I had to apply the following
patch to the source code first (basically change a few C++-style declarations
into C-style):</FONT></SPAN></DIV>
<DIV><SPAN class=609580822-28072008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=609580822-28072008><FONT face=Arial size=2>***
./src/rrd_gfx.c.orig Sun Jul 27 15:12:06 2008<BR>---
./src/rrd_gfx.c Sun Jul 27 15:14:59 2008<BR>***************<BR>*** 46,55
****<BR> double dash_off)<BR>
{<BR> cairo_t *cr =
im->cr;<BR>! double dashes[] = {
dash_on, dash_off };<BR> double
x = 0;<BR> double y =
0;<BR> <BR>
cairo_save(cr);<BR>
cairo_new_path(cr);<BR> cairo_set_line_width(cr,
width);<BR>--- 46,57 ----<BR> double
dash_off)<BR> {<BR> cairo_t *cr =
im->cr;<BR>! double
dashes[2];<BR> double x =
0;<BR> double y = 0;<BR>
<BR>+ dashes[0] = dash_on;<BR>+
dashes[1] = dash_off;<BR>
cairo_save(cr);<BR>
cairo_new_path(cr);<BR> cairo_set_line_width(cr,
width);<BR>*** ./src/rrd_hw_update.c.orig Sun Jul 27 15:16:02 2008<BR>---
./src/rrd_hw_update.c Sun Jul 27 15:17:20 2008<BR>***************<BR>***
48,53 ****<BR>--- 48,54 ----<BR> unsigned long
dependent_rra_idx, seasonal_cdp_idx;<BR>
unival *coefs =
rrd->cdp_prep[cdp_idx].scratch;<BR> rra_def_t
*current_rra = &(rrd->rra_def[rra_idx]);<BR>+
rrd_value_t seasonal_coef;<BR> <BR> /* save
coefficients from current prediction */<BR>
coefs[CDP_hw_last_intercept].u_val =
coefs[CDP_hw_intercept].u_val;<BR>***************<BR>*** 58,64
****<BR> dependent_rra_idx =
current_rra->par[RRA_dependent_rra_idx].u_cnt;<BR>
seasonal_cdp_idx = dependent_rra_idx * (rrd->stat_head->ds_cnt) +
ds_idx;<BR> <BR>! rrd_value_t seasonal_coef =
(dependent_rra_idx <
rra_idx)<BR> ?
rrd->cdp_prep[seasonal_cdp_idx].scratch[CDP_hw_last_seasonal].u_val<BR>
: rrd->cdp_prep[seasonal_cdp_idx].scratch[CDP_hw_seasonal].u_val;<BR>
<BR>--- 59,65 ----<BR> dependent_rra_idx =
current_rra->par[RRA_dependent_rra_idx].u_cnt;<BR>
seasonal_cdp_idx = dependent_rra_idx * (rrd->stat_head->ds_cnt) +
ds_idx;<BR> <BR>! seasonal_coef =
(dependent_rra_idx <
rra_idx)<BR> ?
rrd->cdp_prep[seasonal_cdp_idx].scratch[CDP_hw_last_seasonal].u_val<BR>
: rrd->cdp_prep[seasonal_cdp_idx].scratch[CDP_hw_seasonal].u_val;<BR>
<BR>Finally, after making these fixes, the "make" failed with the following
error:</FONT></SPAN></DIV>
<DIV><SPAN class=609580822-28072008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=609580822-28072008><FONT face=Arial
size=2>/usr/cisco/packages/perl/perl-5.8.6/perl-gcc/bin/gcc -c
-I../../src -O2 -DVE<BR>RSION=\"1.3\" -DXS_VERSION=\"1.3\"
-fpic
"-I/usr/cisco/packages/perl/perl-5.8.6/<BR>lib/5.8.6/i686-linux/CORE"
-DPERLPATCHLEVEL=8 RRDs.c<BR>/tmp/cccGOw5B.s: Assembler
messages:<BR>/tmp/cccGOw5B.s:2: Warning: Unrecognized .section attribute: want
a,w,x<BR>/tmp/cccGOw5B.s:2: Warning: Unrecognized .section attribute: want
a,w,x<BR>/tmp/cccGOw5B.s:2: Error: Rest of line ignored. First ignored character
is `,'.<BR>/tmp/cccGOw5B.s:1468: Warning: Unrecognized .section attribute: want
a,w,x<BR>/tmp/cccGOw5B.s:1468: Warning: Unrecognized .section attribute: want
a,w,x<BR>/tmp/cccGOw5B.s:1468: Error: Rest of line ignored. First ignored
character is `,'.<BR>/tmp/cccGOw5B.s:2062: Error: Rest of line ignored. First
ignored character is <A href="mailto:`@'">`@'</A>.<BR>/tmp/cccGOw5B.s:2063:
Error: Rest of line ignored. First ignored character is <A
href="mailto:`@'">`@'</A>.<BR>...</FONT></SPAN></DIV>
<DIV><SPAN class=609580822-28072008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=609580822-28072008><FONT face=Arial size=2>Can anyone tell me
what the problem is?</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><FONT face="Lucida Calligraphy" size=2>David
Masterson</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>