Compiling w/ DB support - Ya!!!!!

Jamie Bohr jbohr at cos.agilent.com
Mon Nov 24 20:43:16 CET 2003


One step forward and two steps back, don't get very far like that ...

Yah!!!!! I finally got it to compile, Yah!!!!!!! The straw that helped
me the most was autoconf.  I ran autoconf in the directory where Nagios
was downloaded and most everything else was smooth.

I will give full details and instructions on what I did once I get
everything working.  Thank you all who took the time and was patient
with me.

- Jamie
 

On Fri, 2003-11-21 at 17:14, Joe Rhett wrote:
> First of all:
> > --with-mysql-inc=/usr/inlcude/mysql
> 
> Try 'include'
> 
> Also, the headers usually include 'mysql/file.h'.  So you may want to try 
> 	--with-mysql-inc=/usr/include
> 
> if that doesn't work.
> 
> On Fri, Nov 21, 2003 at 04:46:57PM -0700, Jamie Bohr wrote:
> > 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