[Nagiosplug-help] Complie Error on Plugin 1.4A (MYSQL)
Ben Clewett
Ben at clewett.org.uk
Wed Sep 8 03:42:00 CEST 2004
This may be of some help.
There is a known issue with MySQL where it has a undocumented exported
call of it's own 'my_connect' or 'connect' or something similar.
You could try replacing the 'my_connect' in netutils.h:50 with
'nagios_connect'. Ensure all Nagios calls are replaced with this call.
This *may* be a fix if it works :)
Ben
extern.Lars.Oeschey at AUDI.DE wrote:
> Same here. It happened after I uninstalled mysql 3.23 and installed 4.0,
> since PerfParse needs this. Seems to be some header changes in the
> mysql-devel stuff, is there perhaps some fix for this?
>
> Lars
>
> -----Original Message-----
> *From:* nagiosplug-help-admin at lists.sourceforge.net
> [mailto:nagiosplug-help-admin at lists.sourceforge.net] *On Behalf Of
> *Christopher D. Chandler
> *Sent:* Monday, August 30, 2004 7:32 PM
> *To:* nagiosplug-help at lists.sourceforge.net
> *Subject:* [Nagiosplug-help] Complie Error on Plugin 1.4A (MYSQL)
>
> All,
>
>
>
> I am trying to complie the new plugins and getting the following error:
>
>
>
> make[1]: Entering directory
> `/downloads/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/include -I/usr/include
> -I/usr/kerberos/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[1]: *** [check_mysql.o] Error 1
>
> make[1]: Leaving directory
> `/downloads/nagios-plugins-1.4.0alpha1/plugins'
>
> make: *** [install-recursive] Error 1
>
> [root at dh24 nagios-plugins-1.4.0alpha1]#
>
> You have new mail in /var/spool/mail/root
>
> [root at dh24 nagios-plugins-1.4.0alpha1]#
>
>
>
> Thanks - Chris
>
>
>
>
>
> **Christopher D. Chandler**** **Managing Partner
>
> Office: 919-481-9876
> Mobile: 919-274-7684
>
>
>
> chris at dhinnovations.com <mailto:chris at dhinnovations.com>
>
>
>
>
>
> **DH Innovations, LLC**
> Post Office Box 5335 | Cary, North Carolina 27512
>
>
>
More information about the Help
mailing list