[collectd] Compilation errors

a.shubnik at btis.by a.shubnik at btis.by
Fri Oct 26 11:16:13 CEST 2007


     Please help with installation last version 'collectd-4.1.3'.
     I have some trouble with compilation process.
     When i try to use option '--enable-iptables' 'with configure' script
it finished OK, but when i then start 'make' i get follow errors:

...
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.  
-I.    -Wall -Werror -g -O2 -MT iptables.lo -MD -MP -MF  
".deps/iptables.Tpo" -c -o iptables.lo iptables.c; \
then mv -f ".deps/iptables.Tpo" ".deps/iptables.Plo"; else rm -f  
".deps/iptables.Tpo"; exit 1; fi
  gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -Werror -g -O2 -MT iptables.lo -MD  
-MP -MF .deps/iptables.Tpo -c iptables.c  -fPIC -DPIC -o .libs/iptables.o
cc1: warnings being treated as errors
iptables.c:198: warning: 'struct ipt_entry' declared inside parameter list
iptables.c:198: warning: its scope is only this definition or declaration,  
which is probably not what you want
iptables.c:198: warning: 'struct ipt_entry_match' declared inside  
parameter list
iptables.c: In function 'submit_match':
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:212: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:215: error: dereferencing pointer to incomplete type
iptables.c:240: error: dereferencing pointer to incomplete type
iptables.c:245: error: dereferencing pointer to incomplete type
iptables.c:248: error: dereferencing pointer to incomplete type
iptables.c: At top level:
iptables.c:254: error: expected ')' before '*' token
iptables.c: In function 'iptables_read':
iptables.c:292: error: 'iptc_handle_t' undeclared (first use in this  
function)
iptables.c:292: error: (Each undeclared identifier is reported only once
iptables.c:292: error: for each function it appears in.)
iptables.c:292: error: expected ';' before 'handle'
iptables.c:302: error: 'handle' undeclared (first use in this function)
iptables.c:302: warning: implicit declaration of function 'iptc_init'
iptables.c:305: warning: implicit declaration of function 'iptc_strerror'
iptables.c:313: warning: implicit declaration of function 'submit_chain'
iptables.c:314: warning: implicit declaration of function 'iptc_free'
make[3]: *** [iptables.lo] Error 1
make[3]: Leaving directory `/usr/local/src/collectd-4.1.3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/collectd-4.1.3/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/collectd-4.1.3/src'
make: *** [all-recursive] Error 1


    And second problem. On x86_64 system i can't compile 'collectd-4.1.3'  
without use
any specific options (all by default). 'configure' script finished without  
errors but
'make' command finished with errors:

...
gcc -shared  .libs/netlink_la-netlink.o  -lnetlink  -Wl,-soname  
-Wl,netlink.so -o .libs/netlink.so
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:  
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/libnetlink.a(libnetlink.o):  
relocation R_X86_64_32 against `a local symbol' can not be used when  
making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/libnetlink.a:  
could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [netlink.la] Error 1
make[3]: Leaving directory `/usr/local/src/collectd-4.1.3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/collectd-4.1.3/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/collectd-4.1.3/src'
make: *** [all-recursive] Error 1


    I can give any additional debug information if needed.

    Thank you very much.
    Aleksandr Shubnik



More information about the collectd mailing list