[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.  
-DPREFIX=\"/usr/local/stow/collectd-4.3.2\"  
-DCONFIGFILE=\"/usr/local/stow/collectd-4.3.2/etc/collectd.conf\"  
-DLOCALSTATEDIR=\"/usr/local/stow/collectd-4.3.2/var\"  
-DPKGLOCALSTATEDIR=\"/usr/local/stow/collectd-4.3.2/var/lib/collectd\"  
-DPIDFILE=\"/usr/local/stow/collectd-4.3.2/var/run/collectd.pid\"  
-DPLUGINDIR=\"/usr/local/stow/collectd-4.3.2/lib/collectd\"  
-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  
.libs/nut_la-nut.o
nut.c:34:3: error: #error "Unable to determine the UPS connection type."
nut.c:41: error: expected specifier-qualifier-list before  
‘collectd_upsconn_t’
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  
can
make search for includes in it?
    Whom this bug?

    Thank you very much,
    Alex



More information about the collectd mailing list