[collectd] Collectd with NUT error

a.shubnik at btis.by a.shubnik at btis.by
Mon Mar 31 11:32:11 CEST 2008

    Hello Florian!
    I had been tested last collectd-4.3.2 version and found that as in  
previous versions
i MUST use 'CPPFLAGS=-I/usr/local/ups/include' option with 'configure'  
script for compiling
collectd with 'libupsclient' support without following errors:

  gcc -DHAVE_CONFIG_H -I. -I. -I.  
-I/usr/local/include -Wall -Werror -I/usr/local/ups/include -g -O2 -MT  
nut_la-nut.lo -MD -MP -MF .deps/nut_la-nut.Tpo -c nut.c  -fPIC -DPIC -o  
nut.c:34:3: error: #error "Unable to determine the UPS connection type."
nut.c:41: error: expected specifier-qualifier-list before  
nut.c: In function ‘free_nut_ups_t’:
nut.c:61: error: ‘nut_ups_t’ has no member named ‘conn’
nut.c:63: error: ‘nut_ups_t’ has no member named ‘conn’

    Sorry, but i don't understand why we pointing NUT root directory twice  
so as
i use '--with-libupsclient=/usr/local/ups' option also and i think script  
make search for includes in it?
    Whom this bug?

    Thank you very much,

More information about the collectd mailing list