Compiling MySQL NEB Module

Fran=?utf-8?B?w6c=?=ois Laupretre francois.laupretre-prestataire at calyon.com
Wed Jun 8 16:38:48 CEST 2005


Which version of mysql do you use ?

In my configuration (mysql 4.1.10a), inserter.c includes mysql.h, which
includes mysql_com.h, where you find :

#define CLIENT_MULTI_STATEMENTS 65536

So, I confirm that you don't have to change the code. Instead, check your
mysql client.

> -----Original Message-----
> From: Mohr James [mailto:james.mohr at elaxy.com] 
> Sent: Wednesday, June 08, 2005 4:08 PM
> To: Nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Compiling MySQL NEB Module
> 
> 
> 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
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050608/fce3138c/attachment.html>
-------------- next part --------------
Ce message et ses pièces jointes (le "message") est destiné à l'usage    
exclusif de son destinataire.                                            
Si vous recevez ce message par erreur, merci d'en aviser immédiatement   
l'expéditeur  et de le détruire ensuite. Le présent message  pouvant  
être altéré à notre insu,  CALYON Corporate and Investment Bank                              
ne peut pas être engagé par son contenu. Tous droits réservés. 
          
This message and/or any  attachments (the "message") is intended for     
the sole use of its addressee.                                            
If you are not the addressee, please immediately notify the sender and    
then destroy the message.  As this message and/or any attachments may 
have been altered without our knowledge,  its content  is not legally 
binding on CALYON Corporate and Investment Bank. All rights reserved.                                                                


More information about the Users mailing list