Compile with MySQL support problem

Jonathan Rozes jrozes at vinton.com
Mon Nov 25 20:54:30 CET 2002


For whatever reason, the mysql libraries aren't being linked into the
binary. I seem to recall the configure script not being too robust in the
way it determines where the mysql headers and libraries are.

jonathan

> -----Original Message-----
> From: ForMatPrO ForMatPrO [mailto:formatpro at yahoo.co.uk]
> Sent: Monday, November 25, 2002 11:44 AM
> To: Nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Compile with MySQL support problem
> 
> 
> Hi everyone,
> 
> I've tried to compile nagios with Mysql database
> support and I keep getting "undefined reference to
> `mysql_" errors :(
> 
> I used Nagios 1.0 with Redhat 8.0
> 
> Does anyone have a clue how I could get it to work?
> 
> this is just a part of what I get when I "make all":
> 
> [root at fazer nagios-1.0]# make all
> cd ./base && make
> make[1]: Entering directory `/root/nagios-1.0/base'
> gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE  nagios.c checks.o
> config.o commands.o flaping.o logging.o
> notifications.o sehandlers.o utils.o sretention.o
> ../xdata/xrdd.c ../common/comments.c ../xdata/xcddb.c
> ../common/objects.c ../xdata/xodtemplae.c
> ../common/statusdata.c ../xdata/xsddb.c perfdata.o
> ../xdata/xpddefault.c ..common/downtime.c
> ../xdata/xdddb.c    -lm -o nagios
> /tmp/ccdjcZ3n.o: In function `xrddb_initialize':
> /root/nagios-1.0/base/../xdata/xrddb.c:215: undefined
> reference to `mysql_init'/tmp/ccdjcZ3n.o: In function
> `xrddb_connect':
> /root/nagios-1.0/base/../xdata/xrddb.c:252: undefined
> reference to `mysql_real_onnect'
> /root/nagios-1.0/base/../xdata/xrddb.c:254: undefined
> reference to `mysql_close/tmp/ccdjcZ3n.o: In function
> `xrddb_disconnect':
> /root/nagios-1.0/base/../xdata/xrddb.c:299: undefined
> reference to `mysql_close/tmp/ccdjcZ3n.o: In function
> `xrddb_query':
> /root/nagios-1.0/base/../xdata/xrddb.c:329: undefined
> reference to `mysql_query/tmp/ccdjcZ3n.o: In function
> `xrddb_read_program_information':
> /root/nagios-1.0/base/../xdata/xrddb.c:850: undefined
> reference to `mysql_storeresult'
> /root/nagios-1.0/base/../xdata/xrddb.c:854: undefined
> reference to `mysql_fetchrow'
> /root/nagios-1.0/base/../xdata/xrddb.c:867: undefined
> reference to `mysql_free_esult'
> /tmp/ccdjcZ3n.o: In function
> `xrddb_read_host_information':
> /root/nagios-1.0/base/../xdata/xrddb.c:951: undefined
> reference to `mysql_storeresult'
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Get the new Palm Tungsten T 
> handheld. Power & Color in a compact size! 
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> 


-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en




More information about the Users mailing list