unable to compile nagios with --with-mysql-xdata

Alvin Anh Trinh atrinh at ureach.com
Thu Mar 11 14:06:29 CET 2004


Hi,

I'm trying to compile nagios 1.2 with mysql support on Solaris
8.  After I executed "make all", I received the following error:

bash-2.03# make all
cd ./base && make
gcc -g -O2 -I/opt/local/mysql/include -DHAVE_CONFIG_H -DNSCORE 
-c  checks.c
gcc -g -O2 -I/opt/local/mysql/include -DHAVE_CONFIG_H -DNSCORE 
-c  config.c
gcc -g -O2 -I/opt/local/mysql/include -DHAVE_CONFIG_H -DNSCORE 
-c  commands.c
gcc -g -O2 -I/opt/local/mysql/include -DHAVE_CONFIG_H -DNSCORE 
-c  flapping.c
gcc -g -O2 -I/opt/local/mysql/include -DHAVE_CONFIG_H -DNSCORE 
-c  logging.c
gcc -g -O2 -I/opt/local/mysql/include -DHAVE_CONFIG_H -DNSCORE 
-c  notifications.c
gcc -g -O2 -I/opt/local/mysql/include -DHAVE_CONFIG_H -DNSCORE 
-c  sehandlers.c
gcc -g -O2 -I/opt/local/mysql/include -DHAVE_CONFIG_H -DNSCORE 
-c  utils.c
gcc -g -O2 -I/opt/local/mysql/include -DHAVE_CONFIG_H -DNSCORE 
-c  sretention.c
gcc -g -O2 -I/opt/local/mysql/include -DHAVE_CONFIG_H -DNSCORE 
-c  perfdata.c
gcc -g -O2 -I/opt/local/mysql/include -DHAVE_CONFIG_H -DNSCORE
-L/opt/local/mysql/lib -lmysqlclient nagios.c checks.o config.o
commands.o flapping.o logging.o notifications.o sehandlers.o
utils.o sretention.o ../xdata/xrddb.c ../common/comments.c
../xdata/xcddb.c ../common/objects.c ../xdata/xodtemplate.c
../common/statusdata.c ../xdata/xsddb.c perfdata.o
../xdata/xpddefault.c ../common/downtime.c ../xdata/xdddb.c   
-lm -o nagios
Undefined                       first referenced
 symbol                             in file
mysql_close                         /var/tmp//ccKcu3wT.o
mysql_free_result                   /var/tmp//ccKcu3wT.o
mysql_fetch_row                     /var/tmp//ccKcu3wT.o
mysql_real_connect                  /var/tmp//ccKcu3wT.o
mysql_insert_id                     /var/tmp//cclmbfkx.o
mysql_errno                         /var/tmp//cctoKXi1.o
mysql_store_result                  /var/tmp//ccKcu3wT.o
mysql_query                         /var/tmp//ccKcu3wT.o
mysql_init                          /var/tmp//ccKcu3wT.o
ld: fatal: Symbol referencing errors. No output written to
nagios
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `nagios'
Current working directory /opt/src/tools/nagios-1.2/base
*** Error code 1
make: Fatal error: Command failed for target `all'
bash-2.03#


Any ideas?

Thanks in advance,

A.


________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag


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