Problems with mysql+nagios+solaris 8

Thales Maia tchagas at uolinc.com
Tue Apr 13 14:22:30 CEST 2004


Hi Javier,

I tryed, look:

The configure script runs fine:

 External Data Routines:
 ------------------------
              Status data:  Database (MySQL)
              Object data:  Template-based (text file)
             Comment data:  Database (MySQL)
            Downtime data:  Database (MySQL)
           Retention data:  Database (MySQL)
          Peformance data:  Default (external commands)
       Extended info data:  Database (MySQL)

So, when make all runs:

../xdata/xrddb.c:41: mysql/mysql.h: No such file or directory
../xdata/xrddb.c:42: mysql/errmsg.h: No such file or directory
../xdata/xcddb.c:49: mysql/mysql.h: No such file or directory
../xdata/xcddb.c:50: mysql/errmsg.h: No such file or directory
../xdata/xsddb.c:46: mysql/mysql.h: No such file or directory
../xdata/xsddb.c:47: mysql/errmsg.h: No such file or directory
../xdata/xdddb.c:49: mysql/mysql.h: No such file or directory
../xdata/xdddb.c:50: mysql/errmsg.h: No such file or directory
make[1]: *** [nagios] Error 1
make[1]: Leaving directory `/home/tchagas/nagios-1.2/base'


The links solved this problem. Editing the mysql include lines in
../xdata/x*.c also solved. But i get e error below. 



On Tue, 2004-04-13 at 00:20, Javier Garcia wrote:
> Hi Thales,
> 
> you don't need to create these links. You can specify the correct path to
> your libraries in the configure script. Type:
> 
> ./configure --with-mysql-lib="your-path-for-mysql-library"
> --with-mysql-inc="your-path-for-mysql-include"
> 
> regards
> 
> ----
> Javier Garcia
> SuSE Linux C.A.
> jgarcia at suse.com.ve
> 0416-8678334
> 
> 
> On Tue, 6 Apr 2004, Thales Maia wrote:
> 
> > Hi all.
> >
> > I'm trying to compile nagios with mysql support on solaris 8 but isn't
> > working.
> >
> > bash-2.05$ make all
> > cd ./base && make
> > make[1]: Entering directory `/home/tchagas/nagios-1.2/base'
> > gcc -g -O2 -I/export/mysql/include -DHAVE_CONFIG_H -DNSCORE
> > -L/export/mysql/lib
> > -lmysqlclient  nagios.c checks.o config.o commands.o flapping.o
> > logging.o notifi
> > cations.o sehandlers.o utils.o sretention.o ../xdata/xrddb.c
> > ../common/comments.
> > c ../xdata/xcddb.c ../common/objects.c ../xdata/xodtemplate.c
> > ../common/statusda
> > ta.c ../xdata/xsddb.c perfdata.o ../xdata/xpddefault.c
> > ../common/downtime.c ../x
> > data/xdddb.c    -lm -o nagios
> > /var/tmp/ccjtORMg.o: In function `xrddb_initialize':
> > /home/tchagas/nagios-1.2/base/../xdata/xrddb.c:215: undefined reference
> > to `mysq
> > l_init'
> > /var/tmp/ccjtORMg.o: In function `xrddb_connect':
> > /home/tchagas/nagios-1.2/base/../xdata/xrddb.c:252: undefined reference
> > to `mysq
> > l_real_connect'
> > /home/tchagas/nagios-1.2/base/../xdata/xrddb.c:254: undefined reference
> > to `mysq
> > l_close'
> > /var/tmp/ccjtORMg.o: In function `xrddb_disconnect':
> > /home/tchagas/nagios-1.2/base/../xdata/xrddb.c:299: undefined reference
> > to `mysq
> > l_close'
> > /var/tmp/ccjtORMg.o: In function `xrddb_query':
> > /home/tchagas/nagios-1.2/base/../xdata/xrddb.c:329: undefined reference
> > to `mysq
> > l_query'
> > /var/tmp/ccjtORMg.o: In function `xrddb_read_program_information':
> > /home/tchagas/nagios-1.2/base/../xdata/xrddb.c:850: undefined reference
> > to `mysq
> > l_store_result'
> > /home/tchagas/nagios-1.2/base/../xdata/xrddb.c:854: undefined reference
> > to `mysq
> > l_fetch_row'
> > /home/tchagas/nagios-1.2/base/../xdata/xrddb.c:867: undefined reference
> > to `mysq
> > l_free_result'
> > /var/tmp/ccjtORMg.o: In function `xrddb_read_host_information':
> > /home/tchagas/nagios-1.2/base/../xdata/xrddb.c:951: undefined reference
> > to `mysq
> > l_store_result'
> > /home/tchagas/nagios-1.2/base/../xdata/xrddb.c:1001: undefined reference
> > to `mys
> > ql_fetch_row'
> > /home/tchagas/nagios-1.2/base/../xdata/xrddb.c:1004: undefined reference
> > to `mys
> > ql_free_result'
> > /var/tmp/ccjtORMg.o: In function `xrddb_read_service_information':
> > /home/tchagas/nagios-1.2/base/../xdata/xrddb.c:1129: undefined reference
> > to `mys
> > ql_store_result'
> > .
> > .
> > .
> > .
> > .
> > .
> > .
> > /home/tchagas/nagios-1.2/base/../xdata/xdddb.c:1280: undefined reference
> > to `mys
> > ql_free_result'
> > collect2: ld returned 1 exit status
> > make[1]: *** [nagios] Error 1
> > make[1]: Leaving directory `/home/tchagas/nagios-1.2/base'
> > make: *** [all] Error 2
> >
> > I've done the links:
> >
> > bash-2.05$ ls -l /export/mysql/include/mysql /export/mysql/lib/mysql/
> > lrwxrwxrwx   1 root     other         10 Apr  6 10:02
> > /export/mysql/include/mysql -> ../include
> > lrwxrwxrwx   1 root     other          6 Apr  6 10:01
> > /export/mysql/lib/mysql/ -> ../lib
> >
> >
> > Sorry by the writting mistakes. I'm not american.
> >
> >
> >
> > --
> > THALES MAIA CHAGAS
> > Sysadmin - UOL S/A
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: IBM Linux Tutorials
> > Free Linux tutorial presented by Daniel Robbins, President and CEO of
> > GenToo technologies. Learn everything from fundamentals to system
> > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&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
> >
-- 
THALES MAIA CHAGAS
Sysadmin - UOL S/A




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&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