<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40"
xmlns:ns0="urn:schemas-microsoft-com:office:smarttags">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PlaceType"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PlaceName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
/* 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:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@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=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>All,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I am trying to compile Nagios 1.2 with mysql support on a
Solaris 9 box and keep getting the following error:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> ld: fatal: Symbol referencing errors. No output
written to nagios<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>collect2: ld returned 1 exit status<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Nagios compiles fine if I don’t use mysql.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I am using the following to configure Nagios:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>./configure --with-mysql-xdata
--with-mysql-inc=/usr/local/mysql/include --with-mysql-lib=/usr/local/mysql/lib<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>No errors on the configure, just when I make.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Any suggestions on what I need to do to resolve this issue? I’m
using mysql V 4.0.21. I included the complete make output below.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Bill<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><strong><b><font size=2 face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Bill Winkles</span></font></b></strong><o:p></o:p></p>
<p class=MsoNormal><strong><b><font size=2 face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Lucent Technologies</span></font></b></strong><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font><strong><b><font
size=2 color=red face=Wingdings><span style='font-size:10.0pt;font-family:Wingdings;
color:red'>m</span></font></b></strong><o:p></o:p></p>
<p class=MsoNormal><em><i><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Sr. Technical Engineer</span></font></i></em><o:p></o:p></p>
<p class=MsoNormal><em><i><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Global <ns0:PlaceName w:insAuthor="Winks"
w:insDate="2004-09-10T14:28:00Z" w:endInsAuthor="Winks"
w:endInsDate="2004-09-10T14:28:00Z"><st1:PlaceName w:st="on">Network</st1:PlaceName></ns0:PlaceName>
<ns0:PlaceName w:insAuthor="Winks" w:insDate="2004-09-10T14:28:00Z"
w:endInsAuthor="Winks" w:endInsDate="2004-09-10T14:28:00Z"><st1:PlaceName
w:st="on">Operations</st1:PlaceName></ns0:PlaceName> <ns0:PlaceType
w:insAuthor="Winks" w:insDate="2004-09-10T14:28:00Z" w:endInsAuthor="Winks"
w:endInsDate="2004-09-10T14:28:00Z"><st1:PlaceType w:st="on">Center</st1:PlaceType></ns0:PlaceType> -
<ns0:City w:insAuthor="Winks" w:insDate="2004-09-10T14:28:00Z"
w:endInsAuthor="Winks" w:endInsDate="2004-09-10T14:28:00Z"><ns0:place
w:insAuthor="Winks" w:insDate="2004-09-10T14:28:00Z" w:endInsAuthor="Winks"
w:endInsDate="2004-09-10T14:28:00Z"><st1:City w:st="on"><st1:place w:st="on">Denver</st1:place></st1:City></ns0:place></ns0:City></span></font></i></em><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=navy face=Wingdings><span
style='font-size:10.0pt;font-family:Wingdings;color:navy'>(<FONT FACE="Courier New"></FONT> </span></font><font
size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:black'>+1 720/482-6528 (Voice)</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=navy face=Wingdings><span
style='font-size:10.0pt;font-family:Wingdings;color:navy'>(<FONT FACE="Courier New"></FONT> </span></font><font
size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:black'>+1 303/941-2455 (</span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'><ns0:City w:insAuthor="Winks"
w:insDate="2004-09-10T14:28:00Z" w:endInsAuthor="Winks"
w:endInsDate="2004-09-10T14:28:00Z"><ns0:place w:insAuthor="Winks"
w:insDate="2004-09-10T14:28:00Z" w:endInsAuthor="Winks"
w:endInsDate="2004-09-10T14:28:00Z"><st1:place w:st="on"><st1:City w:st="on"><font
color=black><span style='color:black'>Mobile</span></font></st1:City></st1:place></ns0:place></ns0:City><font
color=black><span style='color:black'>)</span></font></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'># make all<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>cd ./base && make<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>make[1]: Entering directory `/billy/nagios/nagios-1.2/base'<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>gcc -g -O2 -I/usr/local/mysql/include -DHAVE_CONFIG_H -DNSCORE
-L/usr/local/mysq<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>l/lib -lmysqlclient nagios.c checks.o config.o commands.o
flapping.o logging.o<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>notifications.o sehandlers.o utils.o sretention.o ../xdata/xrddb.c
../common/com<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>ments.c ../xdata/xcddb.c ../common/objects.c ../xdata/xodtemplate.c
../common/st<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>atusdata.c ../xdata/xsddb.c perfdata.o ../xdata/xpddefault.c
../common/downtime.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>c ../xdata/xdddb.c -lm -o nagios<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Undefined
first referenced<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> symbol
in file<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>mysql_fetch_row
/var/tmp//cceGv5Hq.o<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>mysql_query
/var/tmp//cceGv5Hq.o<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>mysql_errno
/var/tmp//ccDJD4XD.o<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>mysql_close
/var/tmp//cceGv5Hq.o<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>mysql_insert_id
/var/tmp//ccQzsQ08.o<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>mysql_free_result
/var/tmp//cceGv5Hq.o<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>mysql_store_result
/var/tmp//cceGv5Hq.o<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>mysql_init
/var/tmp//cceGv5Hq.o<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>mysql_real_connect
/var/tmp//cceGv5Hq.o<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>ld: fatal: Symbol referencing errors. No output written to nagios<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>collect2: ld returned 1 exit status<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>make[1]: *** [nagios] Error 1<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>make[1]: Leaving directory `/billy/nagios/nagios-1.2/base'<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>make: *** [all] Error 2<o:p></o:p></span></font></p>
</div>
</body>
</html>