[collectd] Collectd 5.0, libperl and AIX 6.1

Pierre-yves Fontaniere pyf at cc.in2p3.fr
Wed Sep 7 15:46:37 CEST 2011

I have problems compiling "collectd 5.0" on "IBM AIX 6.1.6" with

./configure LDFLAGS="-Wl,-brtl" --prefix=/opt/freeware 
--mandir=/opt/freeware/man --disable-dns


With Xlc 10:
"configure script" finds "libperl".
But the compilation fails on :

cc_r -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I. -I. 
-DPKGDATADIR=\"/opt/freeware/share/collectd\" -DHAS_BOOL=1 -D_ALL_SOURCE 
-D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias 
-DXS_VERSION=\"5.0.0\" -DVERSION=\"5.0.0\" -Wno-nonnull -g -c -M perl.c  
-DPIC -o .libs/perl_la-perl.o
cc_r: 1501-210 (S) command option Wno-nonnull contains an incorrect 

 From src/Makefile.am :
# Work-around for issues #41 and #42 - Perl 5.10 incorrectly introduced
# __attribute__nonnull__(3) for Perl_load_module().

"-Wno-nonnull" is only for gcc, isn't it ?


With gcc 4.2.4:
"configure script" cannot find "libperl".
The compilation passes.

Error for libperl is :

configure:41489: checking for perl
configure:41494: result: yes (/bin/perl)
configure:41515: checking for libperl
configure:41551: gcc -o conftest -g -O2  -D_ALL_SOURCE -D_ANSI_C_SOURCE 
-D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN 
-I/usr/opt/perl5/lib64/5.8.8/aix-thread-multi-64all/CORE   -Wl,-brtl   
-brtl -bdynamic -b64 
-L/usr/opt/perl5/lib64/5.8.8/aix-thread-multi-64all/CORE -lperl -lbind 
-lnsl -ldl -lld -lm -lcrypt -lpthreads -lc -lbsd conftest.c >&5
gcc: '-b' must come at the start of the command line

"configure script" seems to ask perl the linker options used for perl 
compilation and to concatenate them to LDFLAGS. Does that mean that we 
must use the same compiler for collectd and for perl ?

I would like, at least, a version compiled with "libperl". But it also 
seems that collectd can not be compiled with xlc.

Does anyone have an idea ?

Thanks for all

More information about the collectd mailing list