<html>

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=Generator content="Microsoft Word 11 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {font-family:Arial;
        color:black;}
span.EmailStyle18
        {font-family:Arial;
        color:black;}
span.EmailStyle21
        {font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>As a general rule, if you’re
compiling a program that depends on another program, you’re probably
going to need the lib and include files for the other program. In this case the
–devel rpms.</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>--</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>marc</span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Brian Snead
[mailto:BSnead@infosysnetworks.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, September 24, 2003 12:08 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Philipp.Straka@avl.com;
nagios-users@lists.sourceforge.net</span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>I had the same problems you are
describing. I tried several different ways of installing mysql, libraries and
clients. Finally, the only way I could get Nagios 1.1 to compile with mysql
support was to remove mysql and install the version that came with Redhat 9.0.
Then I let Redhat up2date upgrade the version to 3.23.56-9. This still would
not work, so I downloaded the mysql-devel-3.23.56-9 from rpmfind.net. </span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Then, go into the nagios-1.1 source
directory and 'make clean'</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>then ./configure --with-mysql-xdata
--with-mysql-lib=/usr/lib/mysql --with-mysql-inc=/usr/include/mysql</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>then make all</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Hope this helps.</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Brian.</span></font></p>

</div>

<blockquote style='margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> Philipp.Straka@avl.com
[mailto:Philipp.Straka@avl.com]<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, September 24, 2003 1:47 AM<br>
<b><span style='font-weight:bold'>To:</span></b>
nagios-users@lists.sourceforge.net<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Nagios-users] nagios
compilation problems</span></font></p>

<p class=MsoNormal><span class=EmailStyle17><font size=2 color=black
face=Arial><span style='font-size:10.0pt'>I need help. </span></font></span></p>

<p class=MsoNormal><span class=EmailStyle17><font size=2 color=black
face=Arial><span style='font-size:10.0pt'> </span></font></span></p>

<p class=MsoNormal><span class=EmailStyle18><font size=2 color=black
face=Arial><span style='font-size:10.0pt'>-- When I try to compile, the
compiler tells me, that the files ./xdata/x?ddb.c at line xx produce the error
“no such file”. </span></font></span></p>

<p class=MsoNormal><span class=EmailStyle18><font size=2 color=black
face=Arial><span style='font-size:10.0pt'>-- In the specified line of the c
files, there is an include statement requesting the files “mysql.h”
and “errmsg.h”. </span></font></span></p>

<p class=MsoNormal><span class=EmailStyle18><font size=2 color=black
face=Arial><span style='font-size:10.0pt'>-- I altered the include statement
there from “mysql/mysql.h” to “mysql.h” and supplied
the configure script with “—with-mysql-inc=/usr/local/include”
(left the dir mysql away)</span></font></span><font color=black><span
style='color:black'> </span></font></p>

<p class=MsoNormal><span class=EmailStyle18><font size=2 color=black
face=Arial><span style='font-size:10.0pt'>-- The new error is coming from
“mysql.h”. This file has an include statement in line 107
requesting for the file “my_alloc.h”</span></font></span><font
color=black><span style='color:black'> </span></font></p>

<p class=MsoNormal><span class=EmailStyle18><font size=2 color=black
face=Arial><span style='font-size:10.0pt'>-- The file “my_alloc.h”
I found in the include directory of the src distribution of mysql. </span></font></span></p>

<p class=MsoNormal><span class=EmailStyle18><font size=2 color=black
face=Arial><span style='font-size:10.0pt'>-- When I tried to compile after
having copied this file to the location specified in “mysql.h:107”,
there was another error. It is an “undefined reference to
mysql_init()”, most probably because the “my_alloc.c” file is
not there with the corresponding header file. But I could not find the .c file
anywhere!</span></font></span><font color=black><span style='color:black'> </span></font></p>

<p class=MsoNormal><span class=EmailStyle17><font size=2 color=black
face=Arial><span style='font-size:10.0pt'> </span></font></span></p>

<p class=MsoNormal><span class=EmailStyle17><font size=2 color=black
face=Arial><span style='font-size:10.0pt'>What can I do to get Nagios
up’n’running?</span></font></span></p>

<p class=MsoNormal><span class=EmailStyle17><font size=2 color=black
face=Arial><span style='font-size:10.0pt'> </span></font></span></p>

<p class=MsoNormal><span class=EmailStyle17><font size=2 color=black
face=Arial><span style='font-size:10.0pt'>I would be glad for help! :o)</span></font></span></p>

<p class=MsoNormal><span class=EmailStyle17><font size=2 color=black
face=Arial><span style='font-size:10.0pt'>Phil Straka</span></font></span></p>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'> </span></font></p>

</blockquote>

</div>

</div>

</body>

</html>