[collectd] collectd 4.0.3 available

Daniel Leite dleite at portoeditora.pt
Wed Jun 20 21:52:16 CEST 2007


Hi

	i'm trying to compile this version on a new solaris and i got
this:

make[3]: Entering directory `/usr/share/src/collectd-4.0.3/src'
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT apache.lo -MD -MP -MF ".deps/apache.Tpo" -c -o apache.lo apache.c; \
        then mv -f ".deps/apache.Tpo" ".deps/apache.Plo"; else rm -f ".deps/apache.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -Werror -g -O2 -MT apache.lo -MD -MP -MF .deps/apache.Tpo -c apache.c  -fPIC -DPIC -o .libs/apache.o
/bin/bash ../libtool --tag=CC --mode=link gcc -Wall -Werror -g -O2   -o apache.la -rpath /opt/collectd/lib/collectd -module -avoid-version  apache.lo  
rm -fr  .libs/apache.la .libs/apache.lai .libs/apache.so
gcc -shared -Wl,-h -Wl,apache.so -o .libs/apache.so  .libs/apache.o  -lc 
creating apache.la
(cd .libs && rm -f apache.la && ln -s ../apache.la apache.la)
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT apcups.lo -MD -MP -MF ".deps/apcups.Tpo" -c -o apcups.lo apcups.c; \
        then mv -f ".deps/apcups.Tpo" ".deps/apcups.Plo"; else rm -f ".deps/apcups.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -Werror -g -O2 -MT apcups.lo -MD -MP -MF .deps/apcups.Tpo -c apcups.c  -fPIC -DPIC -o .libs/apcups.o
In file included from collectd.h:26,
                 from apcups.c:32:
config.h:774:1: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/stdlib_iso.h:30,
                 from /usr/include/stdlib.h:18,
                 from apcups.c:30:
/usr/include/sys/feature_tests.h:188:1: this is the location of the previous definition
make[3]: *** [apcups.lo] Error 1
make[3]: Leaving directory `/usr/share/src/collectd-4.0.3/src'


this one i disabled apcups to fix...


make[2]: Entering directory `/usr/share/src/collectd-4.0.3/src'
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT cpu.lo -MD -MP -MF ".deps/cpu.Tpo" -c -o cpu.lo cpu.c; \
        then mv -f ".deps/cpu.Tpo" ".deps/cpu.Plo"; else rm -f ".deps/cpu.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -Werror -g -O2 -MT cpu.lo -MD -MP -MF .deps/cpu.Tpo -c cpu.c  -fPIC -DPIC -o .libs/cpu.o
cpu.c: In function `cpu_read':
cpu.c:343: warning: `return' with no value, in function returning non-void
make[2]: *** [cpu.lo] Error 1
make[2]: Leaving directory `/usr/share/src/collectd-4.0.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/share/src/collectd-4.0.3/src'
make: *** [all] Error 2


this one i put return (-1);


make[3]: Entering directory `/usr/share/src/collectd-4.0.3/src'
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT email.lo -MD -MP -MF ".deps/email.Tpo" -c -o email.lo email.c; \
        then mv -f ".deps/email.Tpo" ".deps/email.Plo"; else rm -f ".deps/email.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -Werror -g -O2 -MT email.lo -MD -MP -MF .deps/email.Tpo -c email.c  -fPIC -DPIC -o .libs/email.o
email.c: In function `open_connection':
email.c:545: error: too many arguments to function `getgrnam_r'
email.c:545: warning: assignment makes integer from pointer without a cast
make[3]: *** [email.lo] Error 1
make[3]: Leaving directory `/usr/share/src/collectd-4.0.3/src'


this one i also disables email support


make[3]: Entering directory `/usr/share/src/collectd-4.0.3/src'
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT exec.lo -MD -MP -MF ".deps/exec.Tpo" -c -o exec.lo exec.c; \
        then mv -f ".deps/exec.Tpo" ".deps/exec.Plo"; else rm -f ".deps/exec.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -Werror -g -O2 -MT exec.lo -MD -MP -MF .deps/exec.Tpo -c exec.c  -fPIC -DPIC -o .libs/exec.o
exec.c: In function `exec_child':
exec.c:119: error: too many arguments to function `getpwnam_r'
exec.c:119: warning: assignment makes integer from pointer without a cast
make[3]: *** [exec.lo] Error 1
make[3]: Leaving directory `/usr/share/src/collectd-4.0.3/src'

also disabled it

make[3]: Entering directory `/usr/share/src/collectd-4.0.3/src'
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT interface.lo -MD -MP -MF ".deps/interface.Tpo" -c -o interface.lo interface.c; \
        then mv -f ".deps/interface.Tpo" ".deps/interface.Plo"; else rm -f ".deps/interface.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -Werror -g -O2 -MT interface.lo -MD -MP -MF .deps/interface.Tpo -c interface.c  -fPIC -DPIC -o .libs/interface.o
interface.c: In function `interface_read':
interface.c:320: warning: `return' with no value, in function returning non-void
make[3]: *** [interface.lo] Error 1
make[3]: Leaving directory `/usr/share/src/collectd-4.0.3/src'

again return (-1)


make[3]: Entering directory `/usr/share/src/collectd-4.0.3/src'
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT memory.lo -MD -MP -MF ".deps/memory.Tpo" -c -o memory.lo memory.c; \
        then mv -f ".deps/memory.Tpo" ".deps/memory.Plo"; else rm -f ".deps/memory.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -Werror -g -O2 -MT memory.lo -MD -MP -MF .deps/memory.Tpo -c memory.c  -fPIC -DPIC -o .libs/memory.o
memory.c: In function `memory_read':
memory.c:308: error: `mem_locked' undeclared (first use in this function)
memory.c:308: error: (Each undeclared identifier is reported only once
memory.c:308: error: for each function it appears in.)
make[3]: *** [memory.lo] Error 1
make[3]: Leaving directory `/usr/share/src/collectd-4.0.3/src'

i make this change, not really sure if its valid as i'm dont know C :)

-        memory_submit ("locked", mem_locked);
+        memory_submit ("locked", mem_lock);

make[3]: Entering directory `/usr/share/src/collectd-4.0.3/src'
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT swap.lo -MD -MP -MF ".deps/swap.Tpo" -c -o swap.lo swap.c; \
        then mv -f ".deps/swap.Tpo" ".deps/swap.Plo"; else rm -f ".deps/swap.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -Werror -g -O2 -MT swap.lo -MD -MP -MF .deps/swap.Tpo -c swap.c  -fPIC -DPIC -o .libs/swap.o
swap.c: In function `swap_read':
swap.c:198: error: storage size of 'ai' isn't known
swap.c:200: warning: implicit declaration of function `swapctl'
swap.c:200: error: `SC_AINFO' undeclared (first use in this function)
swap.c:200: error: (Each undeclared identifier is reported only once
swap.c:200: error: for each function it appears in.)
swap.c:198: warning: unused variable `ai'
make[3]: *** [swap.lo] Error 1
make[3]: Leaving directory `/usr/share/src/collectd-4.0.3/src'

saddly i had to disable the swap support


make[3]: Entering directory `/usr/share/src/collectd-4.0.3/src'
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.  -DPREFIX='"/opt/collectd"'  -Wall -Werror -g -O2 -MT unixsock_la-unixsock.lo -MD -MP -MF ".deps/unixsock_la-unixsock.Tpo" -c -o unixsock_la-unixsock.lo `test -f 'unixsock.c' || echo './'`unixsock.c; \
        then mv -f ".deps/unixsock_la-unixsock.Tpo" ".deps/unixsock_la-unixsock.Plo"; else rm -f ".deps/unixsock_la-unixsock.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I. -DPREFIX=\"/opt/collectd\" -Wall -Werror -g -O2 -MT unixsock_la-unixsock.lo -MD -MP -MF .deps/unixsock_la-unixsock.Tpo -c unixsock.c  -fPIC -DPIC -o .libs/unixsock_la-unixsock.o
unixsock.c: In function `us_open_socket':
unixsock.c:387: error: too many arguments to function `getgrnam_r'
unixsock.c:387: warning: assignment makes integer from pointer without a cast
make[3]: *** [unixsock_la-unixsock.lo] Error 1
make[3]: Leaving directory `/usr/share/src/collectd-4.0.3/src'

disabled the unixsock support

make[3]: Entering directory `/usr/share/src/collectd-4.0.3/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT collectd-nagios.o -MD -MP -MF ".deps/collectd-nagios.Tpo" -c -o collectd-nagios.o collectd-nagios.c; \
        then mv -f ".deps/collectd-nagios.Tpo" ".deps/collectd-nagios.Po"; else rm -f ".deps/collectd-nagios.Tpo"; exit 1; fi
collectd-nagios.c: In function `parse_range':
collectd-nagios.c:103: error: `NAN' undeclared (first use in this function)
collectd-nagios.c:103: error: (Each undeclared identifier is reported only once
collectd-nagios.c:103: error: for each function it appears in.)
collectd-nagios.c: In function `main':
collectd-nagios.c:418: error: `NAN' undeclared (first use in this function)
make[3]: *** [collectd-nagios.o] Error 1
make[3]: Leaving directory `/usr/share/src/collectd-4.0.3/src'

removes manually from the Makefile

i installed and tried to configure and didnt work (sending data to a
remote collectd4 server)

doing a truss i get this:
(...)
open64("/opt/collectd4/lib/collectd/types.db", O_RDONLY) = 4
fstat64(4, 0xFFBFCC50)                          = 0
fstat64(4, 0xFFBFCAF8)                          = 0
ioctl(4, TCGETA, 0xFFBFCBDC)                    Err#25 ENOTTY
read(4, " a p a c h e _ b y t e s".., 8192)     = 2837
read(4, 0x0003C19C, 8192)                       = 0
llseek(4, 0, SEEK_CUR)                          = 2837
close(4)                                        = 0
ioctl(3, KSTAT_IOC_CHAIN_ID, 0x00000000)        = 1325
nanosleep(0xFFBFEF58, 0xFFBFEF58) (sleeping...)
nanosleep(0xFFBFEF58, 0xFFBFEF58)               = 0
ioctl(3, KSTAT_IOC_CHAIN_ID, 0x00000000)        = 1325
nanosleep(0xFFBFEF58, 0xFFBFEF58) (sleeping...)
nanosleep(0xFFBFEF58, 0xFFBFEF58)               = 0
ioctl(3, KSTAT_IOC_CHAIN_ID, 0x00000000)        = 1325
nanosleep(0xFFBFEF58, 0xFFBFEF58) (sleeping...)

and repeat again and again...  it doesnt seems to be doing anything 8)

so maybe there is some bug and i'm missing some lib? AFAIK, the config
should work, its working on a linux machine without any problem...

thanks for the help and collectd

best regards,
-- 
Daniel Leite
DTI - Divisão Técnica e de Infra-estruturas

___________________________________

Bloco Gráfico
Rua da Restauração, 387 - 4050-506 PORTO
Telef.: 22 608 83 58 * Fax: 22 608 83 59
E-mail: dleite at portoeditora.pt

A Herança do Vazio - O romance vencedor do "Man Booker Prize 2006"
http://www.portoeditora.pt/ficha.asp?ID=04123

Uma poderosa saga familiar no cenário dos Himalaias



More information about the collectd mailing list