[collectd] Build collectd-5.0.2 on AIX 5.3 wich gcc 4.6 => email.c:379:1: error: no return statement in function returning non-void [-Werror=return-type]

phoebus phoebus frphoebus at yahoo.fr
Mon Feb 20 17:55:51 CET 2012


Hi,


I try to push collectd on on my employer. It's oK to have a POC to compare to another commercial product.So i go ahead of show it this a good product and perhaps install on all AIX boxes (more than 300).

My configuration:

Collectd: v5.0.2
AIX: 5300-12-01-1016
Compiler: gcc v4.6.2  (i use gcc because i don't have IBM compiler available).

rpm installed for gcc and rrdtool (from www.perzl.org) : rpm -qa (output)
cdrecord-1.9-7
mkisofs-1.13-4
expat-2.0.1-3
zlib-1.2.6-1
libart_lgpl-2.3.21-1
pkg-config-0.25-2
libdbi-0.8.4-1
freetype2-2.4.8-1
libpng-1.5.8-1
pixman-0.22.2-1
libxml2-2.7.8-2
fontconfig-2.8.0-2
sudo-1.7.2p2-1
cvs-1.11.17-3
AIX-rpm-5.3.12.1-2
bash-4.2-5
gettext-0.17-1
glib2-2.28.6-1
info-4.13a-2
libgcc-4.6.2-1
gcc-4.6.2-1
dejavu-sans-mono-fonts-2.33-1
dejavu-lgc-sans-mono-fonts-2.33-1
libXrender-0.9.6-1
atk-1.32.0-1
libjpeg-8c-1
jasper-1.900.1-2
jbigkit-libs-2.0-2
libdatrie-0.2.4-1
libdatrie-devel-0.2.4-1
libthai-0.1.15-1
libthai-devel-0.1.15-1
libcroco-0.6.1-1
libXcursor-1.1.11-1
xz-libs-5.0.3-1
pango-1.24.5-1
cairo-1.10.2-1
libtiff-4.0.0-1
librsvg2-2.26.0-1
zlib-devel-1.2.6-1
gtk2-2.18.9-2
openssl-1.0.0g-1
rrdtool-1.4.7-1
freetype2-devel-2.4.8-1
libpng-devel-1.5.8-1
libxml2-devel-2.7.8-2
libdbi-devel-0.8.4-1
libart_lgpl-devel-2.3.21-1
libXrender-devel-0.9.6-1
expat-devel-2.0.1-3
fontconfig-devel-2.8.0-2
cairo-devel-1.10.2-1
bzip2-1.0.6-1
tcl-8.5.11-1
db4-4.7.25-2
gdbm-1.10-1
gmp-5.0.4-1
readline-6.2-3
sqlite-3.7.9-1
python-2.6.7-1
python-libs-2.6.7-1
glib2-devel-2.28.6-1
atk-devel-1.32.0-1
pango-devel-1.24.5-1
gtk2-devel-2.18.9-2
openssl-devel-1.0.0g-1
tcl-devel-8.5.11-1
rrdtool-devel-1.4.7-1
libgomp-4.6.2-1
libstdc++-4.6.2-1
libstdc++-devel-4.6.2-1
mpfr-3.1.0-1
libmpc-0.9-1
gcc-cpp-4.6.2-1
gcc-c++-4.6.2-1


I read the mailing list history and the following thread before do the build.:

* http://mailman.verplant.org/pipermail/collectd/2009-November/003378.html
* http://mailman.verplant.org/pipermail/collectd/2010-October/004226.html


Task done:* ./configure LDFLAGS="-Wl,-brtl" --prefix=/home/tools/bertaud/collectd \
--mandir=/home/tools/bertaud/collectd/man \
--disable-dns 2>&1 \
| tee configcollectd.log
* make 2>&1 | tee makecollectd.log

I have the following error during make phase:

"
libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -DPREFIX=\"/home/tools/bertaud/collectd\" -DCONFIGFILE=\"/home/tools/bertaud/collectd/etc/collectd.conf\" -DLOCALSTATEDIR=\"/home/tools/bertaud/collectd/var\" -DPKGLOCALSTATEDIR=\"/home/tools/bertaud/collectd/var/lib/collectd\" -DPIDFILE=\"/home/tools/bertaud/collectd/var/run/collectd.pid\" -DPLUGINDIR=\"/home/tools/bertaud/collectd/lib/collectd\" -DPKGDATADIR=\"/home/tools/bertaud/collectd/share/collectd\" -Wall -Werror -g -O2 -MT email.lo -MD -MP -MF .deps/email.Tpo -c email.c  -DPIC -o .libs/email.o
email.c: In function 'collect':
email.c:379:1: error: no return statement in function returning non-void [-Werror=return-type]
email.c: In function 'open_connection':
email.c:552:1: error: no return statement in function returning non-void [-Werror=return-type]
cc1: all warnings being treated as errors
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 2.
Stop.
make: 1254-004 The error code from the last command is 1.
"
I don't fine the issue in reading the source code in to file email.c line 379 and 552.
If someone can provides some feedback to progress to build collectd on AIX.

PS: I can provide the configure and make log files if necessary. Due to size files, i can't enclosed the files in this email to the mailing list.

Regards,
Phoebus




More information about the collectd mailing list