Compiling MySQL NEB Module

Ben bench at silentmedia.com
Wed Jun 8 18:41:44 CEST 2005


Assuming you're talking about nagios-db, then please keep in mind that the
makefiles are only guides. They may work for you, and they may not. :)  
You should modify them as needed to fit your environment. You shouldn't
have to actually touch any code, though..... then again, I didn't do the
mysql module, so I can't really talk about it that well.

On Wed, 8 Jun 2005, Mohr James wrote:

> Hi All!
> 
> When running make on the MySQL NEB Module I get:
> 
> inserter.c: In function `nebmodule_init':
> inserter.c:130: error: `CLIENT_MULTI_STATEMENTS' undeclared (first use
> in this function)
> inserter.c:130: error: (Each undeclared identifier is reported only once
> inserter.c:130: error: for each function it appears in.)
> make: *** [all] Error 1
> 
> I changed the makefile to point to the correct nagios include directory
> and the mysql include directory was correct from the start:
> 
> all:
>         gcc -g -O2 -Wall -o inserter.o inserter.c -shared
> -I/opt/INSTALL/nagios/nagios.src/nagios-2.0b3/include
> -I/usr/include/mysql -lmysqlclient -fPIC
> 
> 
> I don't want to change the code to explizitely define it myself until I
> am sure that is what I need to do. Any help is greatly appreaciated.
> 
> Regards,
> 
> Jim Mohr
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
> a projector? How fast can you ride your desk chair down the office luge track?
> If you want to score the big prize, get to know the little guy.
> Play to win an NEC 61" plasma display: http://www.necitguy.com/?r 
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
> 




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list