[rrd-users] Problems building RRDtool-1.3.0

Bernard Li bernard at vanhpc.org
Tue Jul 29 01:36:00 CEST 2008


Hi David:

On Mon, Jul 28, 2008 at 3:21 PM, David Masterson (damaster)
<damaster at cisco.com> wrote:

> 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:
>
>   ./configure \
>     --prefix=/my/special/dir \            (I use a special directory
> structure for my tools)
>     --enable-static-programs \          (I want rrdtool to work on systems
> that have not been setup)
>     --disable-ruby \                          (I don't have Ruby)
>     --disable-tcl                               (I don't have Tcl)
>
> 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):
>
> *** ./src/rrd_gfx.c.orig Sun Jul 27 15:12:06 2008
> --- ./src/rrd_gfx.c Sun Jul 27 15:14:59 2008
> ***************
> *** 46,55 ****
>       double dash_off)
>   {
>       cairo_t  *cr = im->cr;
> !     double    dashes[] = { dash_on, dash_off };
>       double    x = 0;
>       double    y = 0;
>
>       cairo_save(cr);
>       cairo_new_path(cr);
>       cairo_set_line_width(cr, width);
> --- 46,57 ----
>       double dash_off)
>   {
>       cairo_t  *cr = im->cr;
> !     double    dashes[2];
>       double    x = 0;
>       double    y = 0;
>
> +     dashes[0] = dash_on;
> +     dashes[1] = dash_off;
>       cairo_save(cr);
>       cairo_new_path(cr);
>       cairo_set_line_width(cr, width);
> *** ./src/rrd_hw_update.c.orig Sun Jul 27 15:16:02 2008
> --- ./src/rrd_hw_update.c Sun Jul 27 15:17:20 2008
> ***************
> *** 48,53 ****
> --- 48,54 ----
>       unsigned long dependent_rra_idx, seasonal_cdp_idx;
>       unival   *coefs = rrd->cdp_prep[cdp_idx].scratch;
>       rra_def_t *current_rra = &(rrd->rra_def[rra_idx]);
> +     rrd_value_t seasonal_coef;
>
>       /* save coefficients from current prediction */
>       coefs[CDP_hw_last_intercept].u_val = coefs[CDP_hw_intercept].u_val;
> ***************
> *** 58,64 ****
>       dependent_rra_idx = current_rra->par[RRA_dependent_rra_idx].u_cnt;
>       seasonal_cdp_idx = dependent_rra_idx * (rrd->stat_head->ds_cnt) +
> ds_idx;
>
> !     rrd_value_t seasonal_coef = (dependent_rra_idx < rra_idx)
>           ?
> rrd->cdp_prep[seasonal_cdp_idx].scratch[CDP_hw_last_seasonal].u_val
>           : rrd->cdp_prep[seasonal_cdp_idx].scratch[CDP_hw_seasonal].u_val;
>
> --- 59,65 ----
>       dependent_rra_idx = current_rra->par[RRA_dependent_rra_idx].u_cnt;
>       seasonal_cdp_idx = dependent_rra_idx * (rrd->stat_head->ds_cnt) +
> ds_idx;
>
> !     seasonal_coef = (dependent_rra_idx < rra_idx)
>           ?
> rrd->cdp_prep[seasonal_cdp_idx].scratch[CDP_hw_last_seasonal].u_val
>           : rrd->cdp_prep[seasonal_cdp_idx].scratch[CDP_hw_seasonal].u_val;
>
> Finally, after making these fixes, the "make" failed with the following
> error:
>
> /usr/cisco/packages/perl/perl-5.8.6/perl-gcc/bin/gcc -c  -I../../src  -O2
> -DVE
> RSION=\"1.3\" -DXS_VERSION=\"1.3\" -fpic
> "-I/usr/cisco/packages/perl/perl-5.8.6/
> lib/5.8.6/i686-linux/CORE"  -DPERLPATCHLEVEL=8 RRDs.c
> /tmp/cccGOw5B.s: Assembler messages:
> /tmp/cccGOw5B.s:2: Warning: Unrecognized .section attribute: want a,w,x
> /tmp/cccGOw5B.s:2: Warning: Unrecognized .section attribute: want a,w,x
> /tmp/cccGOw5B.s:2: Error: Rest of line ignored. First ignored character is
> `,'.
> /tmp/cccGOw5B.s:1468: Warning: Unrecognized .section attribute: want a,w,x
> /tmp/cccGOw5B.s:1468: Warning: Unrecognized .section attribute: want a,w,x
> /tmp/cccGOw5B.s:1468: Error: Rest of line ignored. First ignored character
> is `,'.
> /tmp/cccGOw5B.s:2062: Error: Rest of line ignored. First ignored character
> is `@'.
> /tmp/cccGOw5B.s:2063: Error: Rest of line ignored. First ignored character
> is `@'.
> ...

What OS are you trying to install rrdtool on?  If Linux, which
distribution/version?

BTW, rrdtool 1.3.1 was released -- you might want to try that to see
if it works better for you.

Cheers,

Bernard



More information about the rrd-users mailing list