Problems with mysql+nagios+solaris 8

Javier Garcia jgarcia at suse.com.ve
Tue Apr 13 05:20:44 CEST 2004



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
>


-------------------------------------------------------
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