<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6618.4">
<TITLE>Problems compiling ndoutils-1.4b1</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi List,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">My box config is as follows</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">SUSE Linux enterprise Server 9.2</FONT>

<BR><FONT SIZE=2 FACE="Arial">Mysql 5.0.27</FONT>

<BR><FONT SIZE=2 FACE="Arial">Php 5.2.0</FONT>

<BR><FONT SIZE=2 FACE="Arial">Apache 2.0.59</FONT>

<BR><FONT SIZE=2 FACE="Arial">Nagios 2.6</FONT>

<BR><FONT SIZE=2 FACE="Arial">Nagios Plugins 1.4.5</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">Im trying to install ndoutils on my SLES 9.2 box and getting an error whilst doing a make. I see the following in my ./configure</FONT></P>

<P><FONT SIZE=2 FACE="Arial">---------------------------------< SNIP >---------------------------------</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">*** MySQL library could not be located... **************************</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">You chose to compile NDBXT with MySQL support, but I was unable to</FONT>

<BR><FONT SIZE=2 FACE="Arial">locate the MySQL library on your system.  If the library is</FONT>

<BR><FONT SIZE=2 FACE="Arial">installed,  use the --with-mysql-lib argument to specify the</FONT>

<BR><FONT SIZE=2 FACE="Arial">location of the MySQL library.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">NOTE: After you install the necessary libraries on your system:</FONT>

<BR><FONT SIZE=2 FACE="Arial">      1. Make sure /etc/ld.so.conf has an entry for the directory in</FONT>

<BR><FONT SIZE=2 FACE="Arial">         which the MySQL libraries are installed.</FONT>

<BR><FONT SIZE=2 FACE="Arial">      2. Run 'ldconfig' to update the run-time linker options.</FONT>

<BR><FONT SIZE=2 FACE="Arial">      3. Run 'make devclean' in the NDBXT distribution to clean out</FONT>

<BR><FONT SIZE=2 FACE="Arial">         any old references to your previous compile.</FONT>

<BR><FONT SIZE=2 FACE="Arial">      4. Rerun the configure script.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">TIP: Try the following....</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">         ./configure --with-mysql-lib=/usr/lib/mysql</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">********************************************************************</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">checking mysql/mysql.h usability... yes</FONT>

<BR><FONT SIZE=2 FACE="Arial">checking mysql/mysql.h presence... yes</FONT>

<BR><FONT SIZE=2 FACE="Arial">checking for mysql/mysql.h... yes</FONT>

<BR><FONT SIZE=2 FACE="Arial">checking for PQconnectdb in -lpq... No</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">---------------------------------< SNIP >---------------------------------</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Now I have done everything it has said in the sections above from ./configure and I still get the error.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I compiled mysql from source and I have installed the following from RPMs</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">MySQL-client-5.0.27-0.glibc23.i386.rpm</FONT>

<BR><FONT SIZE=2 FACE="Arial">MySQL-devel-5.0.27-0.glibc23.i386.rpm</FONT>

<BR><FONT SIZE=2 FACE="Arial">MySQL-shared-5.0.27-0.glibc23.i386.rpm</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">If I run a 'make' I get the following before it bombs out</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">make[2]: Entering directory `/home/welsht2/downloads/nagios/ndoutils-1.4b1/src'</FONT>

<BR><FONT SIZE=2 FACE="Arial">gcc -O0 -g -DHAVE_CONFIG_H -c -o db.o db.c</FONT>

<BR><FONT SIZE=2 FACE="Arial">gcc -O0 -g -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -c -o dbhandlers-2x.o dbhandlers.c</FONT>

<BR><FONT SIZE=2 FACE="Arial">gcc -O0 -g -DHAVE_CONFIG_H  -D BUILD_NAGIOS_2X -o ndo2db-2x ndo2db.c dbhandlers-2x.o io.o utils.o db.o  -L/usr/lib/mysql  -lnsl</FONT></P>

<P><FONT SIZE=2 FACE="Arial">utils.o(.text+0x131): In function `ndo_dbuf_strcat':</FONT>

<BR><FONT SIZE=2 FACE="Arial">/home/welsht2/downloads/nagios/ndoutils-1.4b1/src/utils.c:67: undefined reference to `ceil'</FONT>

<BR><FONT SIZE=2 FACE="Arial">collect2: ld returned 1 exit status</FONT>

<BR><FONT SIZE=2 FACE="Arial">make[2]: *** [ndo2db-2x] Error 1</FONT>

<BR><FONT SIZE=2 FACE="Arial">make[2]: Leaving directory `/home/welsht2/downloads/nagios/ndoutils-1.4b1/src'</FONT>

<BR><FONT SIZE=2 FACE="Arial">make[1]: *** [ndo2db] Error 2</FONT>

<BR><FONT SIZE=2 FACE="Arial">make[1]: Leaving directory `/home/welsht2/downloads/nagios/ndoutils-1.4b1/src'</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Anyone any ideas what ive done wrong. All help gratefully received.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Regards</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Tom Welsh</FONT>
</P>

</BODY>
</HTML>