Can't build net/rrdtool

Jeffrey Goldberg jeffrey at goldmark.org
Fri May 25 19:23:04 UTC 2007


On May 25, 2007, at 4:51 AM, Alexey Lebedev wrote:

> Hello!
>
> This is the output of make:
>
> ===>  Building for rrdtool-1.2.23
> gmake  all-recursive
>
[...]
> rrdtoolmodule.c:378: warning: passing arg 2 of `PyErr_SetString' makes
> pointer from integer without a cast
> rrdtoolmodule.c:379: warning: nested extern declaration of
> `rrd_clear_error'
> rrdtoolmodule.c: In function `PyRRD_info':
> rrdtoolmodule.c:397: error: syntax error before "rrd"
> rrdtoolmodule.c:405: error: `rrd' undeclared (first use in this
> function)
> rrdtoolmodule.c:406: warning: nested extern declaration of
> `rrd_get_error'
> rrdtoolmodule.c:406: warning: passing arg 2 of `PyErr_SetString' makes
> pointer from integer without a cast
> rrdtoolmodule.c:407: warning: nested extern declaration of
> `rrd_clear_error'
> rrdtoolmodule.c:448: error: `DS_mrhb_cnt' undeclared (first use in  
> this
> function)
> rrdtoolmodule.c:449: error: `DS_min_val' undeclared (first use in this
> function)
> rrdtoolmodule.c:450: error: `DS_max_val' undeclared (first use in this
> function)
> rrdtoolmodule.c:452: error: `PDP_val' undeclared (first use in this
> function)
> rrdtoolmodule.c:453: error: `PDP_unkn_sec_cnt' undeclared (first  
> use in
> this function)
> rrdtoolmodule.c:469: error: `RRA_cdp_xff_val' undeclared (first use in
> this function)
> rrdtoolmodule.c:481: error: `CDP_val' undeclared (first use in this
> function)
> rrdtoolmodule.c:483: error: `CDP_unkn_pdp_cnt' undeclared (first  
> use in
> this function)
> rrdtoolmodule.c: In function `PyRRD_fetch':
> rrdtoolmodule.c:156: warning: statement with no effect
> error: command 'cc' failed with exit status 1
> gmake[3]: *** [python] Error 1
> gmake[3]: Leaving directory
> `/usr/var/tmp/usr/ports/net/rrdtool/work/rrdtool-1.2.23/bindings'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory
> `/usr/var/tmp/usr/ports/net/rrdtool/work/rrdtool-1.2.23/bindings'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory
> `/usr/var/tmp/usr/ports/net/rrdtool/work/rrdtool-1.2.23'
> gmake: *** [all] Error 2
> *** Error code 2
>
> Stop in /usr/ports/net/rrdtool.
> *** Error code 1
>
> Stop in /usr/ports/net/rrdtool.
> avl at samanka:/usr/ports/net/rrdtool$

There appear to be several problem reports filed about this.  I don't  
know whether the maintainer is responding at all.  (Though I am  
cc'ing this to the port maintainer, damon at freebsd.org)

I have found that I can get rrdtool to build if I disable ruby and  
python support.  Use

   make config

to disable those (maybe just one at a time to see what works).

Of course this work around doesn't work if you need python or ruby  
support.

-j

-- 
Jeffrey Goldberg                        http://www.goldmark.org/jeff/



More information about the freebsd-ports mailing list