Compilation Woes

Rhugga nagios at zulu420.com
Wed Nov 12 16:14:34 CET 2003


I am trying to install version 1.1 onto a Red Hat 9 system. I removed 
the Red Hat version of mysql and installed the binary distribution of 
3.23.58 into /usr/local/mysql-3.23.58-pc-linux-i686/.

I am configuring nagios with the following:

./configure --prefix=/usr/local/nagios --with-nagios-user=nagios 
--with-nagios-grp=nagios --with-init-dir=/etc/init.d 
--with-lockfile=/tmp/nagios.lock --with-mysql-xdata --with-mysql-status 
--with-mysql-comments --with-mysql-extinfo --with-mysql-retention 
--with-mysql-downtime 
--with-mysql-lib=/usr/local/mysql-3.23.58-pc-linux-i686/lib 
--with-mysql-inc=/usr/local/mysql-3.23.58-pc-linux-i686/include 
--enable-DEBUG1 --enable-DEBUG2 --enable-DEBUG5 --enable-DEBUG4

Here is where things go pear shaped when executing 'make all':

syslog:/usr/local/src/nagios-1.1 #make all
cd ./base && make
make[1]: Entering directory `/usr/local/src/nagios-1.1/base'
gcc -g -O2 -I/usr/local/mysql-3.23.58-pc-linux-i686/include 
-DHAVE_CONFIG_H -DNSCORE -L/usr/local/mysql-3.23.58-pc-linux-i686/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
/tmp/ccEhP7oM.o(.text+0x378): In function `xrddb_initialize':
../xdata/xrddb.c:215: undefined reference to `mysql_init'
<SNIP>
collect2: ld returned 1 exit status
make[1]: *** [nagios] Error 1
make[1]: Leaving directory `/usr/local/src/nagios-1.1/base'
make: *** [all] Error 2

Any ideas??

Thx,
CC







-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
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