[Nagios-devel] Problem compiling Nagios with mysql support on

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] Problem compiling Nagios with mysql support on

Post by Guest »

This is a multi-part message in MIME format.

------=_NextPart_000_0044_01C49753.1D9CEDC0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

Ldconfig is supposed to pick up the path from /etc/ld.so.conf. Sometimes it
does and sometimes it doesn't.



Try setting



export LDFLAGS="-L /usr/local/mysql/lib"



I've never figured out why ldconfig doesn't pick up the mysql path..



- Harper



Harper Mann

Groundwork Open Source Solutions

510-599-2075 (cell)



_____

From: [email protected]
[mailto:[email protected]] On Behalf Of Winkles,
William (Bill)
Sent: Friday, September 10, 2004 3:30 PM
To: Kemp, Darren; [email protected]
Subject: RE: [Nagios-devel] Problem compiling Nagios with mysql support on
Solaris 9



Darren,



I am exporting LD_LIBRARY_PATH=/usr/local/lib:/usr/local/mysql/lib:/usr/lib,
but still having the problem.



Any other suggestions?



Thanks.



Bill



_____

From: Kemp, Darren [mailto:[email protected]]
Sent: Friday, September 10, 2004 2:53 PM
To: [email protected]
Subject: RE: [Nagios-devel] Problem compiling Nagios with mysql support on
Solaris 9



Make sure LD knows where your sql libs are.



-dkk





_____

From: [email protected]
[mailto:[email protected]] On Behalf Of Winkles,
William (Bill)
Sent: Friday, September 10, 2004 4:37 PM
To: [email protected]
Subject: [Nagios-devel] Problem compiling Nagios with mysql support on
Solaris 9



All,



I am trying to compile Nagios 1.2 with mysql support on a Solaris 9 box and
keep getting the following error:



ld: fatal: Symbol referencing errors. No output written to nagios

collect2: ld returned 1 exit status



Nagios compiles fine if I don't use mysql.



I am using the following to configure Nagios:

./configure --with-mysql-xdata --with-mysql-inc=/usr/local/mysql/include
--with-mysql-lib=/usr/local/mysql/lib



No errors on the configure, just when I make.



Any suggestions on what I need to do to resolve this issue? I'm using mysql
V 4.0.21. I included the complete make output below.



Thanks.



Bill



Bill Winkles

Lucent Technologies *

Sr. Technical Engineer

Global Network Operations Center - Denver

* +1 720/482-6528 (Voice)

* +1 303/941-2455 (Mobile)





# make all

cd ./base && make

make[1]: Entering directory `/billy/nagios/nagios-1.2/base'

gcc -g -O2 -I/usr/local/mysql/include -DHAVE_CONFIG_H -DNSCORE
-L/usr/local/mysq

l/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/com

ments.c ../xdata/xcddb.c ../common/objects.c ../xdata/xodtemplate.c
../common/st

atusdata.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_fetch_row /var/tmp//cceGv5Hq.o

mysql_query /var/tmp//cceGv5Hq.o

mysql_errno /var/tmp//ccDJD4XD.o

mysql_close /var/tmp//cceGv5Hq.o

mysql_insert_id /var/tmp//ccQzsQ08.o

mysql_free_result /var/tmp//cceGv5Hq.o

mysql_store_result /var/tmp//cceGv5Hq.o

mysql_init /var/tmp//cceGv5Hq.o

mysql_real_connect /var/tmp//cceGv5Hq.o

ld: fatal: Symbol referencing errors. No output written to nagios

collect2: ld returned 1 exit status

make[1]: *** [nagios] Error 1

make[1]: Leaving directory `/billy/nagios/nagios-1.2/base'

make: *** [all] Error 2


------=_NextPart_000_0044_01C49753.1D9CEDC0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked