Compiling w/ DB support

Jamie Bohr jbohr at cos.agilent.com
Sat Nov 22 00:46:57 CET 2003


After getting mysql-devel-3.23.58-1.9 installed I am running into
another snag.

I run the following configure command:

./configure --with-mysql-xdata  --with-mysql-status
--with-mysql-retention --with-mysql-extinfo
--with-mysql-inc=/usr/inlcude/mysql --with-mysql-lib=/usr/lib
--prefix=/opt/monitorsvr

Then run make all and get the following error no mater what I set
--with-mysql-inc and --with-mysql-lib to.

cd ./base && make
make[1]: Entering directory `/tmp/nagios-1.1/base'
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE  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/cchuCjTr.o(.text+0x378): In function `xrddb_initialize':
../xdata/xrddb.c:215: undefined reference to `mysql_init'
/tmp/cchuCjTr.o(.text+0x3f2): In function `xrddb_connect':
../xdata/xrddb.c:252: undefined reference to `mysql_real_connect'
/tmp/cchuCjTr.o(.text+0x40d):../xdata/xrddb.c:254: undefined reference
to `mysql_close'
.
.
.


I know I am getting close - I hope.

Every one have a good weekend.

- Jamie


On Fri, 2003-11-21 at 14:17, jeff vier wrote:
> On Fri, 2003-11-21 at 13:46, Jamie Bohr wrote:
> > Is there a Nagios RPM package that already has MySQL compiled into it? 
> > MySQL.com recommends that precompiled binaries be used.  
> 
> What does one have to do with the other?
> 
> I use MySQL rpms, simply because it is, as a previous post said, a big
> pain in the butt.
> 
> But I compile nagios because it's easy, performs better, and I can
> patch/hack it to my content.
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> 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: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
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