Nagios-1.1 and Mysql-4.0.17

viseth chaing chaingvi at esstin.uhp-nancy.fr
Fri Jan 2 16:03:07 CET 2004



Hi Everyone,

   First, I wish you a happy new year 2004.
   Second, can you help me to figure out why when compilling Nagios-1.1=20
to run with Mysql-4.0.17, it didn't want to compile without error:

   here is the commande line I provided:

  >

> ./configure --with-command-grp=3Dnagiocmd --with-gd-lib=3D/usr/lib=20
> --with-gd-inc=3D/usr/include --with-mysql-lib=3D/usr/local/mysql/lib/my=
sql=20
> --with-mysql-inc=3D/usr/local/mysql/include/mysql --with-mysql-xdata

   And the outcome seems to be good

  >

> [root at icom12 nagios-1.1]# make all
> cd ./base && make
> make[1]: Entre dans le r=E9pertoire `/usr/local/nagios-1.1/base'
> gcc -g -O2 -I/usr/local/mysql/include/mysql -DHAVE_CONFIG_H -DNSCORE=20
> -L/usr/local/mysql/lib/mysql -lmysqlclient  nagios.c checks.o config.o=20
> commands.o flapping.o logging.o notifications.o sehandlers.o utils.o=20
> sretention.o ../xdata/xrddb.c ../common/comments.c ../xdata/xcddb.c=20
> ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c=20
> ../xdata/xsddb.c perfdata.o ../xdata/xpddefault.c ../common/downtime.c=20
> ../xdata/xdddb.c    -lm -o nagios
> sretention.o: In function `save_state_information':
> /usr/local/nagios-1.1/base/sretention.c:86: undefined reference to=20
> `xrddefault_save_state_information'
> sretention.o: In function `read_initial_state_information':
> /usr/local/nagios-1.1/base/sretention.c:122: undefined reference to=20
> `xrddefault_read_state_information'
> collect2: ld a retourn=E9 1 code d'=E9tat d'ex=E9cution
> make[1]: *** [nagios] Erreur 1
> make[1]: Quitte le r=E9pertoire `/usr/local/nagios-1.1/base'
> make: *** [all] Erreur 2

     An here I got some error messages. I try to stick with the drill to=20
follow but I didn't work.

     Any help would be greatly appreciated,

     many thx,

                     Viseth

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
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