[Nagiosplug-help] compilation error, conflicting types for `my_connect'

laurent Schweizer laurent.schweizer at eivd.ch
Fri May 14 06:56:10 CEST 2004


Hello,
when i try to compile plugins for nagios I a have this error:

Making all in plugins
make[2]: Entering directory
`/usr/local/src/source/nagios-plugins-1.4.0alpha1/plugins'
if
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I. -
I.. -I.. -I../lib -I../intl -I/usr/include/ldap  -I/usr/include     -g -O2 -
MT check_mysql.o -MD -MP -MF ".deps/check_mysql.Tpo" \
  -c -o check_mysql.o `test -f 'check_mysql.c' || echo './'`check_mysql.c; \
then mv -f ".deps/check_mysql.Tpo" ".deps/check_mysql.Po"; \
else rm -f ".deps/check_mysql.Tpo"; exit 1; \
fi
In file included from /usr/include/mysql/mysql.h:57,
                 from check_mysql.c:25:
/usr/include/mysql/mysql_com.h:181: conflicting types for `my_connect'
netutils.h:50: previous declaration of `my_connect'
make[2]: *** [check_mysql.o] Error 1
make[2]: Leaving directory
`/usr/local/src/source/nagios-plugins-1.4.0alpha1/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/local/src/source/nagios-plugins-1.4.0alpha1'
make: *** [all] Error 2


Thanks

Schweizer Laurent






More information about the Help mailing list