Hi
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. -DPREFIX=\"/opt/freeware\" -DCONFIGFILE=\"/opt/freeware/etc/collectd.conf\" -DLOCALSTATEDIR=\"/opt/freeware/var\" -DPKGLOCALSTATEDIR=\"/opt/freeware/var/lib/collectd\" -DPIDFILE=\"/opt/freeware/var/run/collectd.pid\" -DPLUGINDIR=\"/opt/freeware/lib/collectd\" -DPKGDATADIR=\"/opt/freeware/share/collectd\" -DHAS_BOOL=1 -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q64 -DUSE_64_BIT_ALL -q64 -I/usr/opt/perl5/lib64/5.8.8/aix-thread-multi-64all/CORE -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 subargument

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 -DNEED_PTHREAD_INIT -q64 -DUSE_64_BIT_ALL -q64 -I/usr/opt/perl5/lib64/5.8.8/aix-thread-multi-64all/CORE -Wl,-brtl -bE:/usr/opt/perl5/lib64/5.8.8/aix-thread-multi-64all/CORE/perl.exp -brtl -bdynamic -b64 /usr/opt/perl5/lib64/5.8.8/aix-thread-multi-64all/auto/DynaLoader/DynaLoader.a -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
Pierre-yves

_______________________________________________
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd

Reply via email to